文件名称:请根据观察者模式,用Java语言设计并实现气象站程序。
文件大小:11KB
文件格式:RAR
更新时间:2020-12-24 05:46:13
观察者模式 Java语言 气象站程序
请根据观察者模式,用Java语言设计并实现气象站程序。其中,部分代码已经写好,包括: • 观察者接口 • 主题接口 • 显示板接口 • 测试程序 请在此框架下,继续完成CurrentConditionsDisplay、ForecastDisplay、StatisticsDisplay等显示板类, 以及气象数据类(WeatherData), 使程序最终运行结果如下图所示(XXXX为本人学号): Currents conditions:80.0F degress and 65.0% humidity (by 1508060330) Avg/Max/Min:temperature = 80.0/80.0/80.0/ (by 1508060330) Forecast (by 1508060330):improving weather on the way Currents conditions:82.0F degress and 70.0% humidity (by 1508060330) Avg/Max/Min:temperature = 81.0/82.0/80.0/ (by 1508060330) Forecast (by 1508060330):watch out for cooler,rainy weather Currents conditions:78.0F degress and 90.0% humidity (by 1508060330) Avg/Max/Min:temperature = 80.0/82.0/78.0/ (by 1508060330) Forecast (by 1508060330):more of the same
【文件预览】:
WeatherStation
----.project(390B)
----src()
--------cn()
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----.classpath(301B)
----bin()
--------cn()