Example #1
0
        protected ParameterFunction(MeasurableParameter measurableParameter)
        {
            MeasurableParameter = measurableParameter;
            CurrentFunctionValue = MeasurableParameter.Optimal;
            Random = new Random();

            Weather.WeatherTypeChanged += @enum => 
            {
                WeatherType = @enum;
            };
        }
Example #2
0
 public void SetWeatherType(WeatherTypesEnum weatherType)
 {
     WeatherType = weatherType;
 }
Example #3
0
 public static void SetWeather(WeatherTypesEnum type)
 {
     WeatherType = type;
     OnWeatherTypeChanged();
 }