Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-14.log failed

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
study:java:design_pattern:observer [2008/08/12 15:55] bananastudy:java:design_pattern:observer [2009/07/08 07:40] (現在) banana
行 15: 行 15:
 한번 직접 살펴보죠. 한번 직접 살펴보죠.
  
 +{{keywords>Observer Pattern}}
  
 ===== Class Diagram ===== ===== Class Diagram =====
 {{:study:java:design_pattern:observer.jpg|}} {{:study:java:design_pattern:observer.jpg|}}
  
-===== Design of a system of weather report =====+===== Design of weather report system =====
 {{:study:java:design_pattern:forecast.jpg|}} {{:study:java:design_pattern:forecast.jpg|}}
  
行 87: 行 88:
 } }
 </code> </code>
 +
  
 ===== snippet of CurrentConditionsDisplay ===== ===== snippet of CurrentConditionsDisplay =====
行 113: 行 115:
 } }
 </code> </code>
 +
 +===== Test class =====
 +<code java>
 +public class WeatherStation{
 +    public static void main(String[] args){
 +         WeatherData weatherData = new WeatherData();
 +
 +         CurrentConditionsDisplay currentDisplay =
 +              new CurrentConditionsDisplay(weatherData);
 +         StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
 +         ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
 +
 +         weatherData.setMeasurements(80, 65, 30.4f);
 +         weatherData.setMeasurements(82, 70, 29.2f);
 +         weatherData.setMeasurements(78, 90, 29.2f);
 +    }
 +}
 +</code>
 +
  

QR Code
QR Code study:java:design_pattern:observer (generated for current page)