Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
dll_code/cResult.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace PHEMlightdll
8{
9 public class VehicleResult
10 {
11 #region Construtor
12 public VehicleResult(double time,
13 double speed,
14 double grad,
15 double power,
16 double pPos,
17 double pNormRated,
18 double pNormDrive,
19 double acc,
20 double fc,
21 double fcel,
22 double cO2,
23 double nOx,
24 double hC,
25 double pM,
26 double cO)
27 {
28 _time = time;
29 _speed = speed;
30 _grad = grad;
31 _power = power;
32 _pPos = pPos;
33 _pNormRated = pNormRated;
34 _pNormDrive = pNormDrive;
35 _accelaration = acc;
37 fcel,
38 cO2,
39 nOx,
40 hC,
41 pM,
42 cO);
43 }
44 #endregion
45
46 //--------------------------------------------------------------------------------------------------
47 // GeneralState
48 //--------------------------------------------------------------------------------------------------
49
50 #region Time
51 private double _time;
52 public double Time
53 {
54 get
55 {
56 return _time;
57 }
58 }
59 #endregion
60
61 #region Speed
62 private double _speed;
63 public double Speed
64 {
65 get
66 {
67 return _speed;
68 }
69 }
70 #endregion
71
72 #region Grad
73 private double _grad;
74 public double Grad
75 {
76 get
77 {
78 return _grad;
79 }
80 }
81 #endregion
82
83 #region Power
84 private double _power;
85 public double Power
86 {
87 get
88 {
89 return _power;
90 }
91 }
92 #endregion
93
94 #region PPos
95 private double _pPos;
96 public double PPos
97 {
98 get
99 {
100 return _pPos;
101 }
102 }
103 #endregion
104
105 #region PNormRated
106 private double _pNormRated;
107 public double PNormRated
108 {
109 get
110 {
111 return _pNormRated;
112 }
113 set
114 {
115 _pNormRated = value;
116 }
117 }
118 #endregion
119
120 #region PNormDrive
121 private double _pNormDrive;
122 public double PNormDrive
123 {
124 get
125 {
126 return _pNormDrive;
127 }
128 set
129 {
130 _pNormDrive = value;
131 }
132 }
133 #endregion
134
135 #region Accelaration
136 private double _accelaration;
137 public double Accelaration
138 {
139 get
140 {
141 return _accelaration;
142 }
143 }
144 #endregion
145
146 //--------------------------------------------------------------------------------------------------
147 // EmissionData
148 //--------------------------------------------------------------------------------------------------
149
150 #region EmissionData
153 {
154 get
155 {
156 return _emissionData;
157 }
158 }
159 #endregion
160 }
161
162 public class EmissionData
163 {
164
165 #region Constructor
166 public EmissionData(double fc,
167 double fcel,
168 double cO2,
169 double nOx,
170 double hC,
171 double pM,
172 double cO)
173 {
174 _fc = fc;
175 _fcel = fcel;
176 _cO2 = cO2;
177 _nOx = nOx;
178 _hC = hC;
179 _pM = pM;
180 _cO = cO;
181 }
182 #endregion
183
184 //--------------------------------------------------------------------------------------------------
185 // GeneralState
186 //--------------------------------------------------------------------------------------------------
187
188 #region FC
189 private double _fc;
190 public double FC
191 {
192 get
193 {
194 return _fc;
195 }
196 }
197 #endregion
198
199 #region FCel
200 private double _fcel;
201 public double FCel
202 {
203 get
204 {
205 return _fcel;
206 }
207 }
208 #endregion
209
210 #region CO2
211 private double _cO2;
212 public double CO2
213 {
214 get
215 {
216 return _cO2;
217 }
218 }
219 #endregion
220
221 #region NOx
222 private double _nOx;
223 public double NOx
224 {
225 get
226 {
227 return _nOx;
228 }
229 }
230 #endregion
231
232 #region HC
233 private double _hC;
234 public double HC
235 {
236 get
237 {
238 return _hC;
239 }
240 }
241 #endregion
242
243 #region PM
244 private double _pM;
245 public double PM
246 {
247 get
248 {
249 return _pM;
250 }
251 }
252 #endregion
253
254 #region CO
255 private double _cO;
256 public double CO
257 {
258 get
259 {
260 return _cO;
261 }
262 }
263 #endregion
264 }
265}
EmissionData(double fc, double fcel, double cO2, double nOx, double hC, double pM, double cO)
VehicleResult(double time, double speed, double grad, double power, double pPos, double pNormRated, double pNormDrive, double acc, double fc, double fcel, double cO2, double nOx, double hC, double pM, double cO)