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; }
public CloudPredictor(IPredictors p) { m_nextpredictor = p; m_data = m_nextpredictor.getData(); }
public RainPredictor(IPredictors p) { m_nextpredictor = p; m_data = m_nextpredictor.getData(); }