EEL5881_SEI_Fall08_HW2

EEL5881_SEI_Fall08_HW2 - o In the constructor function of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EEL 5881- Fall 2008 Homework #2 Due: November 12, 2008 A hard copy has to be handed in to the instructor at the beginning of the class period. If and only if you cannot attend the class, you may email the link for the soft copy of the assignment to the instructor in which the assignment can be downloaded. No late submission will be accepted. Problem statement: Implement the classes as shown in the following diagram. You can use any programming language which supports object oriented programming such as Java/C++ for implementation. This is similar to the sensor network system described in Homework#1 (you could refer to it for additional understanding).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The following are the detailed instructions of what you are expected to deliver: 1. Provide an implementation of all the classes. o Every class should have a constructor.
Background image of page 2
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

EEL5881_SEI_Fall08_HW2 - o In the constructor function of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online