文件名称:Observer
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- wuji****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
股票的价格随着时间会在一定范围内波动,对于每个股票,股民需要三种报告:股票的当前价格;股票价格的统计分析报告(最低价、最高价、均价);股票价格趋势预测(建议采用移动平均预测法)。根据实际情况,也可能需要增加其他类型的报告。提示:股价变动用随机数模拟:java.util.Random。代码运用观察者模式,编写了上述股票行情程序,当股票价格变动时,实现各种报告的更新。-The price of the stock will over time in a certain range, for each stock, investors need to three report: the current price of stock Stock price statistics analysis report (the lowest price, maximum price, average price) Stock price trend prediction (recommended moving average prediction method). According to actual condition, also may need to increase the other types of reports. Tip: share price changes with Random simulation: Java. Util. Random. Code using spectator mode, write the stock market program, when the stock price changes, realize all kinds of report of updates.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Observer
........\Application.java
........\DisplayReport.java
........\Observer.java
........\PriceForecast.java
........\PriceNow.java
........\PriceStatistics.java
........\Stock.java
........\Subject.java
........\Application.java
........\DisplayReport.java
........\Observer.java
........\PriceForecast.java
........\PriceNow.java
........\PriceStatistics.java
........\Stock.java
........\Subject.java