Saturday, October 9, 2010

Weather Capture System Interface


The Malawi Polytechnic


Computing and Statistics Department


DEVELOPING A WEATHER CAPTURE SYSTEM INTERFACE
(Using Java Programming Language)

PRESENTED TO:
Mr. B. Kankuzi



Benjamin Sam Mkandawire (MSE/06/PE/0020)




OCTOBER 2010

WEATHER CAPTURE SYSTEM INTERFACE
INTRODUCTION
The main object of this java program was to come up with a Weather Capture System Interface (WCSY) used in weather stations to capture the weather forecast. The program has been written using java language, which is an Object Oriented Programming language (OOP). The term Object-Oriented Programming (OOP) means many different things. But at its heart, object-oriented programming is a type of computer programming based on the premise that all programs are essentially computer-based simulations of real-world objects or abstract concepts. For instance, Business programs can be thought of as simulations of business processes-such as order taking, customer service, shipping, and billing. An invoice isn't just a piece of paper; it's a paper that represents a transaction that has occurred between a company and one of its customers. Thus a computer-based invoice is really just a simulation of that transaction.

As a consequence, I have developed a simple java interface which captures weather forecasts in five different areas namely: Chichiri, Mimosa, Bunda College, Kamuzu International Airport and Mzuzu University. This interface captures humidity, temperature and rainfall.

ATTRIBUTES
The interface includes the name of the weather station, as an attribute and also a button labeled capture forecast. Once the analyst clicks on the button, and then appears a full window which displays the areas to be forecast and some types of weather that can be captured. In addition, the weather station contains the fields which demand the weather analyst to fill the date of forecast, to fill the day’s weather and then display the forecast for the public to view.
The analyst enters the required forecasts, and then after doing that, he/she is then able to display the weather forecast that has been forecast, so that the public are able to view the day’s weather forecast. This is done by pressing the VIEW BUTTON which displays the captured weather for that particular day. 

If it happens that there is incorrect input of forecast, the interface allows analyst to clear the entered forecast. This is done by pressing the CLEAR button and after that, then, appears a message which says “YOUR FORECASTS HAS BEEN CLEARED”, thus the analyst is in a position to clear the entries and start afresh.
If satisfied, the analyst can save the weather forecast to the hard disk (or database) by clicking the SUBMIT button so that the weather station can have access to the information and when the analyst wants to quit the program, there is an EXIT button which allows to quit.
SNAPSHOTS 
Different snap shots of the weather station have been taken to further explain how the station captures its forecasts. Therefore, from the figures below you will be able to have at least a grasp of how the weather is being forecast at the weather station. As already explained, the interface contains the fields where the analyst will enter the weather forecast and the day’s date.

Thus the figures below show how the weather is being captured from the weather station in five different areas mentioned in the preliminary part.


Figure 1: The Opening Window of Ben Sam Weather Station.

This is an opening window for Ben Sam weather station. This prompts the analyst to capture the weather forecast; this is done by pressing on any green part. This has been designed so, with the aim of making the interface to be user friendly. In contrast, if the EXIT button is pressed, then the weather station closes.

Figure 2: View of the Interface.
This is before entering any weather forecast, the interface looks as below. Then the analyst is able to enter the day’s date in the date field and also enter special weather captures in different area’s fields.



Figure 3: The Interface with fields filled with the weather forecast.

Once the weather forecast has been entered the interface will look as in figure 3 above. While if it happens that the forecast captured was incorrectly captured and then there is need to recapture the weather forecast. The interface is capable of doing that, a clear message appears as in figure 4 below, once the CLEAR button has been pressed.

Figure 4: Displays the clear message.


Figure 5: Display the forecast weather
Once you click on VIEW WEATHER button, you have the window which displays the forecasted weather as shown in table 5 below.

Figure 6A: How to save the weather forecast.
The SUBMIT button, this is a button which is used to save the file to the hard disk. As a weather station, it might require the weather forecast at a later time. So if you have confirmed and the weather captured is correct (i.e. they are displayed on the text area box), you can click on SUBMIT button to save the file. As soon as you click it, the Save dialog box pops up for you to enter the name of the file you are saving and the location you want to save your file. The figure below, shows how the interface looks after clicking the SUBMIT button.



Figure 6B: How to save the weather forecast.
Once you type you file name on file name text field, then the file can now be save in the specified location. But most often, the default location is in “Documents” although there is a chance of choosing any required location.

In contrast, the interface has an EXIT button to the lowest end, which allows closing the interface. This is done by pressing/clicking it.

Figure 7: Saving a file which already exists
Once you typed in a file name that already exists in the specified location an error message appears as shown in figure below. Thus there is a need to save with a new file name in order to proceed. Otherwise, an error message appears.

CONCLUSION

In conclusion, the major objective of the project was to develop a weather capture system interface (using Java Programming Language-OOP). Thus a weather station that captures different weather forecasts in different areas was developed. The interface does some basic features like saving, viewing the captured forecast, just among others. But however, as time goes the interface will be modified to include more areas and more weather forecasts and even the interface itself will be improved so that it looks more attractive than the first version and shall include more features. Again this shall be done by using the same programming language.





.



2 comments: