/// <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; }
/// <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; }