def __init__(self, power, duty_cycle, data, message_topic, frequency_of_message):
     Sensor.__init__(self, power, duty_cycle, data, message_topic, frequency_of_message)
 def __init__(self, env):
     Sensor.__init__(self, "Outdoor Brightness Sensor", env.ambient_light)
 def __init__(self, env):
     Sensor.__init__(self, "User Locator", "livingroom")
 def __init__(self, header):
     Sensor.__init__(self, header)
Example #5
0
 def __init__(self, init_name, init_value, init_room_name):
     Sensor.__init__(self, init_name, init_value)
     self.room_name = init_room_name
 def __init__(self, env):
     Sensor.__init__(self, "Power Meter", env.power_consumed_instant)
Example #7
0
 def __init__(self, env):
     Sensor.__init__(self, "Motion Sensor", env.motion_detected)
 def __init__(self, env):
     Sensor.__init__(self, "Power Rate", env.electricity_rate)
 def __init__(self, env):
     Sensor.__init__(self, "Presence Sensor", env.presence_detected)