コード例 #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
ファイル: DoorSensor.cs プロジェクト: toto9898/ISMAU
 /// <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;
 }