SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
HelpersPHEMlight.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// Helper methods for PHEMlight-based emission computation
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11
// Copyright (C) 2013-2012 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef HelpersPHEMlight_h
22
#define HelpersPHEMlight_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <vector>
35
#include <limits>
36
#include <cmath>
37
#include <
utils/common/StdDefs.h
>
38
#include "
PollutantsInterface.h
"
39
#include "
PHEMCEPHandler.h
"
40
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
49
class
HelpersPHEMlight
:
public
PollutantsInterface::Helper
{
50
public
:
51
static
const
int
PHEMLIGHT_BASE
= 2 << 16;
52
53
56
HelpersPHEMlight
();
57
58
63
SUMOEmissionClass
getClassByName
(
const
std::string& eClass,
const
SUMOVehicleClass
vc);
64
65
74
SUMOEmissionClass
getClass
(
const
SUMOEmissionClass
base,
const
std::string& vClass,
const
std::string& fuel,
const
std::string& eClass,
const
double
weight)
const
;
75
80
std::string
getAmitranVehicleClass
(
const
SUMOEmissionClass
c)
const
;
81
86
std::string
getFuel
(
const
SUMOEmissionClass
c)
const
;
87
92
int
getEuroClass
(
const
SUMOEmissionClass
c)
const
;
93
99
SUMOReal
getWeight
(
const
SUMOEmissionClass
c)
const
;
100
108
SUMOReal
getMaxAccel
(
SUMOEmissionClass
c,
double
v,
double
a,
double
slope);
109
110
118
SUMOReal
compute
(
const
SUMOEmissionClass
c,
const
PollutantsInterface::EmissionType
e,
const
double
v,
const
double
a,
const
double
slope)
const
;
119
120
private
:
122
int
myIndex
;
123
};
124
125
126
#endif
127
128
/****************************************************************************/
129
tmp
buildd
sumo-0.21.0+dfsg
src
utils
emissions
HelpersPHEMlight.h
Generated on Thu Nov 20 2014 19:49:54 for SUMO - Simulation of Urban MObility by
1.8.1.2