Ejemplo n.º 1
0
 public Device()
 {
     _binarySwitch      = new ToggleSwitchModel(this);
     _multilevelSwitch  = new DimmerSwitchModel(this);
     _colorSwitch       = new ColorSwitchModel(this);
     _thermostat        = new ThermostatModel(this);
     _binarySensor      = new BinarySensorModel(this);
     _powerSensor       = new MultilevelSensorModel <IPower>(this);
     _temperatureSensor = new MultilevelSensorModel <ITemperature>(this);
     _humiditySensor    = new MultilevelSensorModel <IHumidity>(this);
     _illuminanceSensor = new MultilevelSensorModel <IIlluminance>(this);
 }
Ejemplo n.º 2
0
 public Device()
 {
     _binarySwitch = new ToggleSwitchModel(this);
     _multilevelSwitch = new DimmerSwitchModel(this);
     _colorSwitch = new ColorSwitchModel(this);
     _thermostat = new ThermostatModel(this);
     _binarySensor = new BinarySensorModel(this);
     _powerSensor = new MultilevelSensorModel<IPower>(this);
     _temperatureSensor = new MultilevelSensorModel<ITemperature>(this);
     _humiditySensor = new MultilevelSensorModel<IHumidity>(this);
     _illuminanceSensor = new MultilevelSensorModel<IIlluminance>(this);
 }