Eclipse SUMO - Simulation of Urban MObility
Constants.cs
Go to the documentation of this file.
1 #define FLEET
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
7 
8 namespace PHEMlightdll
9 {
10  public class Constants
11  {
12  //Calculation constant
13  public const double GRAVITY_CONST = 9.81;
14  public const double AIR_DENSITY_CONST = 1.182;
15  public const double NORMALIZING_SPEED = 19.444;
16  public const double NORMALIZING_ACCELARATION = 0.45;
17  public const double SPEED_DCEL_MIN = 10 / 3.6;
18  public const double ZERO_SPEED_ACCURACY = 0.5;
19  public const double DRIVE_TRAIN_EFFICIENCY_All = 0.9;
20  public const double DRIVE_TRAIN_EFFICIENCY_CB = 0.8;
21 
22  #if FLEET
23  //Fleetmix constants
24  public const double SPEED_ROTATIONAL_INCREMENT = 10 / 3.6;
25  public const double POWER_FC_INCREMENT = 0.1;
26  public const double POWER_POLLUTANT_INCREMENT = 0.3;
27  public const double NNORM_INCREMENT = 0.05;
28  #endif
29 
30  //Strings
31  public const string HeavyVehicle = "HV";
32 
33  //Vehiclestrings
34  public const string strPKW = "PC";
35  public const string strLNF = "LCV";
36  public const string strLKW = "HDV_RT";
37  public const string strLSZ = "HDV_TT";
38  public const string strRB = "HDV_CO";
39  public const string strLB = "HDV_CB";
40  public const string strMR2 = "MC_2S";
41  public const string strMR4 = "MC_4S";
42  public const string strKKR = "MOP";
43 
44  //Fuelstrings
45  public const string strGasoline = "G";
46  public const string strDiesel = "D";
47  public const string strCNG = "CNG";
48  public const string strLPG = "LPG";
49  public const string strHybrid = "HEV";
50  public const string strBEV = "BEV";
51 
52  //Euroclasses
53  public const string strEU = "EU";
54 
55  //Sizeclasse
56  public const string strSI = "I";
57  public const string strSII = "II";
58  public const string strSIII = "III";
59 
60  #if FLEET
61  //Fleetmix
62  private const string strAggPC = "PC";
63  private const string strAggBUS = "BUS";
64  private const string strAggHDV = "HDV";
65  private const string strAggTW = "TW";
66  public static string[] AGGREGATED_VEHICLECLASSES = new string[] { strAggPC,
67  strAggHDV,
68  strAggBUS,
69  strAggTW};
70  #endif
71 
72  //Drive train efficiency
73  public static double _DRIVE_TRAIN_EFFICIENCY;
74  public static double DRIVE_TRAIN_EFFICIENCY
75  {
76  get { return _DRIVE_TRAIN_EFFICIENCY; }
77  set { _DRIVE_TRAIN_EFFICIENCY = value; }
78  }
79 
80  }
81 }
PHEMlightdll::Constants::DRIVE_TRAIN_EFFICIENCY_CB
static const double DRIVE_TRAIN_EFFICIENCY_CB
Definition: Constants.h:39
PHEMlightdll::Constants::strEU
static const std::string strEU
Definition: Constants.h:65
PHEMlightdll::Constants::NORMALIZING_SPEED
static const double NORMALIZING_SPEED
Definition: Constants.h:34
PHEMlightdll::Constants::strLSZ
static const std::string strLSZ
Definition: Constants.h:49
PHEMlightdll::Constants::strBEV
static const std::string strBEV
Definition: Constants.h:62
PHEMlightdll::Constants.SPEED_ROTATIONAL_INCREMENT
const double SPEED_ROTATIONAL_INCREMENT
Definition: Constants.cs:24
PHEMlightdll::Constants::strMR2
static const std::string strMR2
Definition: Constants.h:52
PHEMlightdll::Constants.DRIVE_TRAIN_EFFICIENCY
static double DRIVE_TRAIN_EFFICIENCY
Definition: Constants.cs:75
PHEMlightdll::Constants::NORMALIZING_ACCELARATION
static const double NORMALIZING_ACCELARATION
Definition: Constants.h:35
PHEMlightdll::Constants.POWER_FC_INCREMENT
const double POWER_FC_INCREMENT
Definition: Constants.cs:25
PHEMlightdll::Constants::strSI
static const std::string strSI
Definition: Constants.h:68
PHEMlightdll::Constants::strLNF
static const std::string strLNF
Definition: Constants.h:47
PHEMlightdll::Constants::strLPG
static const std::string strLPG
Definition: Constants.h:60
PHEMlightdll::Constants.strAggPC
const string strAggPC
Definition: Constants.cs:62
PHEMlightdll::Constants.strAggHDV
const string strAggHDV
Definition: Constants.cs:64
PHEMlightdll::Constants.strAggTW
const string strAggTW
Definition: Constants.cs:65
PHEMlightdll::Constants::strRB
static const std::string strRB
Definition: Constants.h:50
PHEMlightdll::Constants::_DRIVE_TRAIN_EFFICIENCY
static double _DRIVE_TRAIN_EFFICIENCY
Definition: Constants.h:74
PHEMlightdll::Constants::strCNG
static const std::string strCNG
Definition: Constants.h:59
PHEMlightdll::Constants::strLKW
static const std::string strLKW
Definition: Constants.h:48
PHEMlightdll
Definition: CEP.cpp:26
PHEMlightdll::Constants::GRAVITY_CONST
static const double GRAVITY_CONST
Definition: Constants.h:32
PHEMlightdll::Constants::strHybrid
static const std::string strHybrid
Definition: Constants.h:61
PHEMlightdll::Constants::strDiesel
static const std::string strDiesel
Definition: Constants.h:58
PHEMlightdll::Constants::strKKR
static const std::string strKKR
Definition: Constants.h:54
PHEMlightdll::Constants::DRIVE_TRAIN_EFFICIENCY_All
static const double DRIVE_TRAIN_EFFICIENCY_All
Definition: Constants.h:38
PHEMlightdll::Constants::strGasoline
static const std::string strGasoline
Definition: Constants.h:57
PHEMlightdll::Constants.strAggBUS
const string strAggBUS
Definition: Constants.cs:63
PHEMlightdll::Constants.AGGREGATED_VEHICLECLASSES
static string[] AGGREGATED_VEHICLECLASSES
Definition: Constants.cs:66
PHEMlightdll::Constants::HeavyVehicle
static const std::string HeavyVehicle
Definition: Constants.h:43
PHEMlightdll::Constants::SPEED_DCEL_MIN
static const double SPEED_DCEL_MIN
Definition: Constants.h:36
PHEMlightdll::Constants::strMR4
static const std::string strMR4
Definition: Constants.h:53
PHEMlightdll::Constants::AIR_DENSITY_CONST
static const double AIR_DENSITY_CONST
Definition: Constants.h:33
PHEMlightdll::Constants.POWER_POLLUTANT_INCREMENT
const double POWER_POLLUTANT_INCREMENT
Definition: Constants.cs:26
PHEMlightdll::Constants::strSIII
static const std::string strSIII
Definition: Constants.h:70
PHEMlightdll::Constants::strLB
static const std::string strLB
Definition: Constants.h:51
PHEMlightdll::Constants::strSII
static const std::string strSII
Definition: Constants.h:69
PHEMlightdll::Constants::strPKW
static const std::string strPKW
Definition: Constants.h:46
PHEMlightdll::Constants::ZERO_SPEED_ACCURACY
static const double ZERO_SPEED_ACCURACY
Definition: Constants.h:37
PHEMlightdll::Constants.NNORM_INCREMENT
const double NNORM_INCREMENT
Definition: Constants.cs:27