This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: o In the constructor function of each class, you need to initialize the private attributes. o Create multiple Sensor objects in one instance of the SensorSystem and a Sink object. o The sense() method senses temperature from the surroundings. The sensed information is sent to the sink by the send function. o Sensors can receive data from others sensors. The information is obtained through the receive method. o The checkLimit() method checks the currentTemp with the tempThresh and notifies (true/false) if the limit is exceeded or not. If true, then sendCommand should send a notification to the specific sensor to carry out a Beep. o The SensorSystem is the controlling point of the system. Primary objects (sensors, sink) need to be instantiated here....
View Full Document
This note was uploaded on 08/25/2011 for the course EEL 5881 taught by Professor Staff during the Spring '09 term at University of Florida.
- Spring '09