Sensors OOD
Keywords: BeagleBone Black, Python, Tkinter, Raspberry Pi, RPi, Arduino, Security System, Home AutomationMarch 25, 2013 (Table of Contents)
This system will be Object Oriented (OO). This page will be concerned with the Object Oriented Design (OOD) of the Sensors. It will make use of Polymorphism.
The root type: Sensor
A Sensor Object:
- It has the following Attributes:
- Name
- Zone
- Description
- It has the following States:
- Ignored
- Alarm
- Alert
- Normal
- It has the following Transition Listeners
- ListenerOnTransitionToAlert
- ListenerOnTrasitionToAlarm
- LietenerOnTrasitionToNormal
- ListenerOnTrasitionToIgnored
- It has the following Listener Methods
- RegisterAlertListener
- NotifyAlertListener
- RegisterAlarmListener
- NotifyAlarmListener
- RegisterNormalListener
- NotifyNormalListener
- RegisterIgnoreListener
- NotifyIgnoreListener
- It has the following Sensor Control Methods
- SetSensorToAlarmMode
- SetSensorToAlertMode
- SetSensorToIgnoreMode
- It has the following Sensor Test Methods
- TestSetSensorToAlarm
- TestSetSensorToAlert
- TestSetSensorToNormal
- TestSetSensorToIgnore
Sensor Children Types:
- A Magnetic Contact is a type of Sensor.
- It has the following states:
- Contact State
- Open
- Closed
- It has the following Sensor Normal Methods
- DefineNormalAsOpenContact
- DefineNormalAsClosedContact
- It has the following children types:
- A Door Sensor is a type of Magnetic Contact Sensor
- A Window Sensor is a type of Magnetic Contact Sensor
- A Voltage Transition Sensor is a type of Sensor
- It has the following state transitions:
- Transition from Voltage Low to Voltage High
- Transition from Voltage High to Voltage Low
- It has the following Sensor Normal Methods
- DefineNormalAsLow
- DefineNormalAsHigh
- It has the following children types:
- A Doorbell Sensor is a type of Voltage Transition Sensor
- A Carbon Monoxide Detector Sensor is a type of Voltage Transition Sensor
- A Smoke Detector Sensor is a type of Voltage Transition Sensor
- A Water Detector Sensor is a type of Voltage Transition Sensor
- A HVAC Temperature Controller Sensor is a type of Voltage Transition Sensor
- A Household AC Power Sensor is a type of Voltage Transition Sensor
- To be classified:
- Networked Sensor
- Video Camera Sensor
- Access Keypad
- Door Speaker/Microphone