You and your teammate work for the Environmental Protection Agency. You have been asked to place sensors in the environment, to capture needed information about air quality and water quality. Your initial task is to monitor Lake Guntersville, near Guntersville, Alabama. All data has to be received at the EPA central computing facility, located in Olin B. King Technology Hall on the UAH campus in Huntsville, AL. In order to save the cost of expensive networking equipment, you will use the Internet to transfer your data. Since you have recently learned CORBA, you will use CORBA as your interconnection medium.
You will employ three sensors, one for air quality, one for water quality, and one for temperature. The air and water quality sensors will return number(s) between 0 and 10, with 10 being highest water/air quality and 0 being lowest. The temperature will be described in either degrees Fahrenheit or degrees Celsius (settable at server). You will pass a string to the water quality sensor, telling for which quarter of the lake you wish to read the water quality (East, West, North, South). The air quality sensor will return, in an array, air quality values (from 0 to 10, as described above) for various heights in the atmosphere (groundlevel, 6 feet high, 20 feet high, 100 feet high). The temperature will return a temperature value, and will also return a string (or a characterit cannot be a short or long or other numeric value) that says whether this value is Fahrenheit or Celsius.
Thus, you will write sensor simulators. In this case, however, all that “simulator” means is that each sensor value will be settable at the server. Your client will read the sensor values from the servers and will display them in a readable format. Each sensor value will be read separately. For example, the air quality sensor value will be updated separately from the water quality sensor value, and from the temperature value.