Hardware/Sensor.cs
changeset 247 6dc755f1970e
parent 195 0ee888c485d5
child 298 96263190189a
     1.1 --- a/Hardware/Sensor.cs	Wed Dec 08 19:23:13 2010 +0000
     1.2 +++ b/Hardware/Sensor.cs	Thu Jan 20 21:31:54 2011 +0000
     1.3 @@ -57,6 +57,7 @@
     1.4      private readonly Queue<SensorValue> values =
     1.5        new Queue<SensorValue>(MAX_MINUTES * 15);
     1.6      private readonly ISettings settings;
     1.7 +    private IControl control;
     1.8      
     1.9      private float sum;
    1.10      private int count;
    1.11 @@ -186,5 +187,14 @@
    1.12        foreach (IParameter parameter in parameters)
    1.13          parameter.Accept(visitor);
    1.14      }
    1.15 +
    1.16 +    public IControl Control {
    1.17 +      get {
    1.18 +        return control;
    1.19 +      }
    1.20 +      internal set {
    1.21 +        this.control = value;
    1.22 +      }
    1.23 +    }
    1.24    }
    1.25  }