Beispiel #1
0
        public static IBinaryStateOutputActuator BinaryStateOutput(this IArea room, Enum id)
        {
            if (room == null)
            {
                throw new ArgumentNullException(nameof(room));
            }

            return(room.Actuator <IBinaryStateOutputActuator>(ActuatorIdFactory.Create(room, id)));
        }
Beispiel #2
0
        public static IRollerShutter RollerShutter(this IArea area, Enum id)
        {
            if (area == null)
            {
                throw new ArgumentNullException(nameof(area));
            }

            return(area.Actuator <RollerShutter>(ActuatorIdFactory.Create(area, id)));
        }
        public static ITemperatureSensor TemperatureSensor(this IArea room, Enum id)
        {
            if (room == null)
            {
                throw new ArgumentNullException(nameof(room));
            }

            return(room.Actuator <TemperatureSensor>(ActuatorIdFactory.Create(room, id)));
        }
        public static Lamp Lamp(this IArea room, Enum id)
        {
            if (room == null)
            {
                throw new ArgumentNullException(nameof(room));
            }

            return(room.Actuator <Lamp>(ActuatorIdFactory.Create(room, id)));
        }
        public static RollerShutterButtons RollerShutterButtons(this IArea room, Enum id)
        {
            if (room == null)
            {
                throw new ArgumentNullException(nameof(room));
            }

            return(room.Actuator <RollerShutterButtons>(ActuatorIdFactory.Create(room, id)));
        }
Beispiel #6
0
        public static IMotionDetector MotionDetector(this IArea room)
        {
            if (room == null)
            {
                throw new ArgumentNullException(nameof(room));
            }

            return(room.Actuator <IMotionDetector>());
        }