コード例 #1
0
 public StatisticsDisplay(WeatherData weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }
コード例 #2
0
 public HeatIndexDisplay(WeatherData weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }
コード例 #3
0
 public ForecastDisplay(WeatherData weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }