public override void Sum(WeatherForecastSummary weatherForecastSummary) { weatherForecastSummary.RainyDays++; if (Perimeter > weatherForecastSummary.Perimeter) { weatherForecastSummary.Perimeter = Perimeter; weatherForecastSummary.DayOfMaximumInstability = DayNumber; } }
public WeatherForecastSummary GetWeatherForecastSummary(int days) { WeatherForecastSummary summary = new WeatherForecastSummary(); var solarSystem = _galaxyRepository.GetSolarSystem(); for (var number = 0; number <= days; number++) { Day day = GetDayFromNumberOfTheDay(solarSystem, number); summary.IncrementDay(day); } return(summary); }
public override void Sum(WeatherForecastSummary weatherForecastSummary) { weatherForecastSummary.OptimalDays++; }
public abstract void Sum(WeatherForecastSummary weatherForecastSummary);
public override void Sum(WeatherForecastSummary weatherForecastSummary) { //Do not anything. }
public override void Sum(WeatherForecastSummary weatherForecastSummary) { weatherForecastSummary.DroughtDays++; }