Пример #1
0
 public TemperaturePredictor(IPredictors p, WeatherData data = null)
 {
     if (p != null)
     {
         m_nextpredictor = p;
     }
     if (data == null)
     {
         throw new UnstableAdapter("Input not given");
     }
     m_data = data;
 }
Пример #2
0
 public CloudPredictor(IPredictors p)
 {
     m_nextpredictor = p;
     m_data          = m_nextpredictor.getData();
 }
Пример #3
0
 public RainPredictor(IPredictors p)
 {
     m_nextpredictor = p;
     m_data          = m_nextpredictor.getData();
 }