Hardware/Sensor.cs
changeset 110 411b72b73d8f
parent 109 70d0c3102424
child 134 8b3b9b2e28e5
     1.1 --- a/Hardware/Sensor.cs	Thu May 06 19:20:38 2010 +0000
     1.2 +++ b/Hardware/Sensor.cs	Sun May 09 16:22:13 2010 +0000
     1.3 @@ -205,5 +205,14 @@
     1.4        public float Value { get { return value; } }
     1.5        public DateTime Time { get { return time; } }
     1.6      }
     1.7 +
     1.8 +    public void Accept(IVisitor visitor) {
     1.9 +      visitor.VisitSensor(this);
    1.10 +    }
    1.11 +
    1.12 +    public void Traverse(IVisitor visitor) {
    1.13 +      foreach (IParameter parameter in parameters)
    1.14 +        parameter.Accept(visitor);
    1.15 +    }
    1.16    }
    1.17  }