Eclipse SUMO - Simulation of Urban MObility
V5/cs/cResult.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 
7 namespace PHEMlightdll
8 {
9  public class VehicleResult
10  {
11  #region Construtor
12  public VehicleResult(string vehicle,
13  string cycle,
14  double time,
15  double speed,
16  double grad,
17  double power,
18  double pPos,
19  double pNormRated,
20  double pNormDrive,
21  double acc,
22  Dictionary<string, double> Emi)
23  {
24  _vehicle = vehicle;
25  Cycle = cycle;
26  _time = time;
27  _speed = speed;
28  _grad = grad;
29  _power = power;
30  _pPos = pPos;
31  PNormRated = pNormRated;
32  PNormDrive = pNormDrive;
33  _accelaration = acc;
34  _emissionData = new EmissionData(Emi);
35  }
36  #endregion
37 
38  #region Vehicle
39  private string _vehicle;
40  public string Vehicle => _vehicle;
41  #endregion
42 
43  #region Cycle
44  public string Cycle { get; set; }
45  #endregion
46 
47  #region Time
48  private double _time;
49  public double Time => _time;
50  #endregion
51 
52  #region Speed
53  private double _speed;
54  public double Speed => _speed;
55  #endregion
56 
57  #region Grad
58  private double _grad;
59  public double Grad => _grad;
60  #endregion
61 
62  #region Power
63  private double _power;
64  public double Power => _power;
65  #endregion
66 
67  #region PPos
68  private double _pPos;
69  public double PPos => _pPos;
70  #endregion
71 
72  #region PNormRated
73  public double PNormRated { get; set; }
74  #endregion
75 
76  #region PNormDrive
77  public double PNormDrive { get; set; }
78  #endregion
79 
80  #region Accelaration
81  private double _accelaration;
82  public double Accelaration => _accelaration;
83  #endregion
84 
85  #region EmissionData
88  #endregion
89  }
90 
91  public class EmissionData
92  {
93  #region Constructor
94  public EmissionData(Dictionary<string, double> Emi)
95  {
96  _Emi = Emi;
97  }
98  #endregion
99 
100  #region Emi
101  private Dictionary<string, double> _Emi = new Dictionary<string, double>();
102  public Dictionary<string, double> Emi => _Emi;
103  #endregion
104  }
105 
106  public class cErgEntry
107  {
108  //Declaration
109  public string Head;
110  public string Unit;
111 
112  //Create a new cErgEntry class
113  public cErgEntry(string HeadStr, string UnitStr)
114  {
115  Head = HeadStr;
116  Unit = UnitStr;
117  }
118  }
119 }
Dictionary< string, double > _Emi
EmissionData(Dictionary< string, double > Emi)
Dictionary< string, double > Emi
VehicleResult(string vehicle, string cycle, double time, double speed, double grad, double power, double pPos, double pNormRated, double pNormDrive, double acc, Dictionary< string, double > Emi)
string Unit
cErgEntry(string HeadStr, string UnitStr)
string Head
C++ TraCI client API implementation.
Definition: Vehicle.h:34