Projekt

Obecné

Profil

Stáhnout (1.34 KB) Statistiky
| Větev: | Tag: | Revize:
1
using System;
2

    
3
namespace ServerApp.Parser.InputData
4
{
5
    /// <summary>
6
    /// Data from weather data file
7
    /// 
8
    /// Csv format:
9
    ///     "30.04.2019 16:19:01";20.3;5.3;0;19
10
    ///     [date time];[temperature];[wind];[rain];[luminance]
11
    /// </summary>
12
    /// <author>Alex Konig</author>
13
    class WeatherInstance
14
    {
15
        /// <summary> Date and time </summary>
16
        // index 0
17
        public DateTime dateTime;
18
        /// <summary> Temperature in °C </summary>
19
        // index 1
20
        public double temp;
21
        /// <summary> Wind in m/s </summary>
22
        // index 2
23
        public double wind;
24
        /// <summary> Rain (0 if none, 1 if rain) </summary>
25
        // index 3
26
        public int rain;
27
        /// <summary>  Luminance in klux </summary>
28
        // index 4
29
        public double lum;
30

    
31
        /// <summary>
32
        /// Constructor
33
        /// </summary>
34
        /// <param name="date"></param>
35
        /// <param name="temp"></param>
36
        /// <param name="wind"></param>
37
        /// <param name="rain"></param>
38
        /// <param name="lum"></param>
39
        public WeatherInstance(DateTime date, double temp, double wind, int rain, double lum)
40
        {
41
            this.dateTime = date;
42
            this.temp = temp;
43
            this.wind = wind;
44
            this.rain = rain;
45
            this.lum = lum;
46
        }
47
    }
48
}
(5-5/5)