moel@110: /* moel@110: moel@344: This Source Code Form is subject to the terms of the Mozilla Public moel@344: License, v. 2.0. If a copy of the MPL was not distributed with this moel@344: file, You can obtain one at http://mozilla.org/MPL/2.0/. moel@110: moel@344: Copyright (C) 2009-2010 Michael Möller moel@344: moel@110: */ moel@110: moel@110: using System; moel@110: using System.Collections.Generic; moel@110: using OpenHardwareMonitor.Hardware; moel@110: moel@110: namespace OpenHardwareMonitor.GUI { moel@110: public class UpdateVisitor : IVisitor { moel@110: public void VisitComputer(IComputer computer) { moel@110: computer.Traverse(this); moel@110: } moel@110: moel@110: public void VisitHardware(IHardware hardware) { moel@110: hardware.Update(); moel@110: foreach (IHardware subHardware in hardware.SubHardware) moel@110: subHardware.Accept(this); moel@110: } moel@110: moel@110: public void VisitSensor(ISensor sensor) { } moel@110: moel@110: public void VisitParameter(IParameter parameter) { } moel@110: } moel@110: }