The BeachStatistic applet is a supporting
applet whose purpose is to display the number of visitors who
come to the beach during a particular period of time. BeachStatistic
and BeachParking class are not very different in terms their functionalities.
The BeachStatistic inherits from
Chart class which is a descendant of Applet class. The Chart
applet can be found in demo/BarChart in the Java Development
Kit. The purpose of BeachStatistic is to make sure the data
is checked for errors before extracting them. BeachStatistic
must correctly put this data into the variables provided
by the Chart class.
When the statistic button in BeachInfo
applet is pressed, it will notify
BeachStatistic that it is time to update
itself with a new information. This information is contained in
a ChartData object. ParkingData is then checked for errors. If
the data is valid, the bar chart is drawn using this data.
Funded by Committee of University Teaching And Staff Development (CUTSD) through
DEETYA, 1998