コード例 #1
0
 public WeatherModel()
 {
     DateAndTime             = DateTime.Now;
     OutdoorTemperatureModel = new OutdoorTemperatureModel();
     IndoorTemperatureModel  = new IndoorTemperatureModel();
     BarometerModel          = new BarometerModel();
     WindModel     = new WindModel();
     RainfallModel = new RainfallModel();
 }
コード例 #2
0
 public WeatherModel(DateTime dateAndTime, OutdoorTemperatureModel outdoorTempModel, IndoorTemperatureModel indoorTempModel, BarometerModel barometerModel, WindModel windModel, RainfallModel rainfallModel, RecentExtremesModel recentExtremesModel)
 {
     DateAndTime             = dateAndTime;
     OutdoorTemperatureModel = outdoorTempModel;
     IndoorTemperatureModel  = indoorTempModel;
     BarometerModel          = barometerModel;
     WindModel     = windModel;
     RainfallModel = rainfallModel;
 }
コード例 #3
0
 public void WeatherModelFromRawData(int no, DateTime time, double interval, double indoorTemp, double indoorHumidity, double outdoorTemp, double outdoorHumidity, double relativePressure, double absolutePressure, double windSpeed, double gust, string windDirection, double dewPoint, double windChill, double hourRainfall, double dayRainfall, double weekRainfall, double totalRainfall)
 {
     WeatherModelId          = no;
     DateAndTime             = time;
     Interval                = interval;
     IndoorTemperatureModel  = new IndoorTemperatureModel(indoorTemp, indoorHumidity, time);
     OutdoorTemperatureModel = new OutdoorTemperatureModel(outdoorTemp, outdoorHumidity, time);
     BarometerModel          = new BarometerModel(relativePressure, absolutePressure, time);
     WindModel               = new WindModel(windSpeed, gust, windDirection, dewPoint, windChill, time);
     RainfallModel           = new RainfallModel(hourRainfall, dayRainfall, weekRainfall, totalRainfall, time);
 }