示例#1
0
 /// <summary>
 /// This constructor sets the boundaries
 /// </summary>
 /// <param name="data"></param>
 /// <param name="rangeBoundaries"></param>
 public BoundedSensor(SensorData data, RangeBoundaries <T> rangeBoundaries)
     : base(data)
 {
     Boundaries = rangeBoundaries;
 }
示例#2
0
 /// <summary>
 /// Constructs the object with the given data
 /// </summary>
 /// <param name="data"></param>
 public DoorSensor(SensorData data)
     : base(data)
 {
     // true will be the default state of the door/window
     IsClosed = true;
 }