Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/foreign/PHEMlight/cpp/Constants.h
169684 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2016-2025 German Aerospace Center (DLR) and others.
4
// PHEMlight module
5
// Copyright (C) 2016-2017 Technische Universitaet Graz, https://www.tugraz.at/
6
// This program and the accompanying materials are made available under the
7
// terms of the Eclipse Public License 2.0 which is available at
8
// https://www.eclipse.org/legal/epl-2.0/
9
// This Source Code may also be made available under the following Secondary
10
// Licenses when the conditions for such availability set forth in the Eclipse
11
// Public License 2.0 are satisfied: GNU General Public License, version 2
12
// or later which is available at
13
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
14
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
15
/****************************************************************************/
16
/// @file Constants.h
17
/// @author Martin Dippold
18
/// @author Michael Behrisch
19
/// @date July 2016
20
///
21
//
22
/****************************************************************************/
23
#pragma once
24
#include <config.h>
25
26
#include <string>
27
28
29
namespace PHEMlightdll {
30
class Constants {
31
32
public:
33
// Calculation constant
34
static const double GRAVITY_CONST;
35
static const double AIR_DENSITY_CONST;
36
static const double NORMALIZING_SPEED;
37
static const double NORMALIZING_ACCELARATION;
38
static const double SPEED_DCEL_MIN;
39
static const double ZERO_SPEED_ACCURACY;
40
static const double DRIVE_TRAIN_EFFICIENCY_All;
41
static const double DRIVE_TRAIN_EFFICIENCY_CB;
42
43
// Strings
44
static const std::string HeavyVehicle;
45
46
// Vehiclestrings
47
static const std::string strPKW;
48
static const std::string strLNF;
49
static const std::string strLKW;
50
static const std::string strLSZ;
51
static const std::string strRB;
52
static const std::string strLB;
53
static const std::string strMR2;
54
static const std::string strMR4;
55
static const std::string strKKR;
56
57
// Fuelstrings
58
static const std::string strGasoline;
59
static const std::string strDiesel;
60
static const std::string strCNG;
61
static const std::string strLPG;
62
static const std::string strHybrid;
63
static const std::string strBEV;
64
65
// Euroclasses
66
static const std::string strEU;
67
68
// Sizeclasse
69
static const std::string strSI;
70
static const std::string strSII;
71
static const std::string strSIII;
72
73
/// @brief get drive train efficiency
74
const static double& getDRIVE_TRAIN_EFFICIENCY();
75
76
/// @brief set drive train efficiency
77
static void setDRIVE_TRAIN_EFFICIENCY(const double& value);
78
79
private:
80
// Drive train efficiency
81
static double myDRIVE_TRAIN_EFFICIENCY;
82
};
83
}
84
85