请根据观察者模式,用Java语言设计并实现气象站程序。

上传者: jinmie0193 | 上传时间: 2019-12-21 20:00:21 | 文件大小: 11KB | 文件类型: rar
请根据观察者模式,用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

文件下载

资源详情

[{"title":"( 19 个子文件 11KB ) 请根据观察者模式,用Java语言设计并实现气象站程序。","children":[{"title":"WeatherStation","children":[{"title":".project <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"cn","children":[{"title":"edu","children":[{"title":"qust","children":[{"title":"dp","children":[{"title":"object","children":[{"title":"CurrentConditionsDisplay.java <span style='color:#111;'> 1003B </span>","children":null,"spread":false},{"title":"StatisticsDisplay.java <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"WeatherStation.java <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"WeatherData.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"ForecastDisplay.java <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"Interface","children":[{"title":"Observer.java <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"Subject.java <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"DisplayElement.java <span style='color:#111;'> 100B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"cn","children":[{"title":"edu","children":[{"title":"qust","children":[{"title":"dp","children":[{"title":"object","children":[{"title":"CurrentConditionsDisplay.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"WeatherData.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"StatisticsDisplay.class <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"ForecastDisplay.class <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"WeatherStation.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"Interface","children":[{"title":"DisplayElement.class <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"Subject.class <span style='color:#111;'> 246B </span>","children":null,"spread":false},{"title":"Observer.class <span style='color:#111;'> 148B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明