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
SUMOVTypeParameter.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Structure representing possible vehicle parameter
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef SUMOVTypeParameter_h
23
#define SUMOVTypeParameter_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <string>
36
#include <map>
37
#include "
SUMOVehicleClass.h
"
38
#include "
RGBColor.h
"
39
#include "
SUMOTime.h
"
40
41
42
// ===========================================================================
43
// class declarations
44
// ===========================================================================
45
class
OutputDevice
;
46
class
OptionsCont
;
47
48
49
// ===========================================================================
50
// value definitions
51
// ===========================================================================
52
const
int
VTYPEPARS_LENGTH_SET
= 1;
53
const
int
VTYPEPARS_MINGAP_SET
= 2;
54
const
int
VTYPEPARS_MAXSPEED_SET
= 2 << 2;
55
const
int
VTYPEPARS_PROBABILITY_SET
= 2 << 3;
56
const
int
VTYPEPARS_SPEEDFACTOR_SET
= 2 << 4;
57
const
int
VTYPEPARS_SPEEDDEVIATION_SET
= 2 << 5;
58
const
int
VTYPEPARS_EMISSIONCLASS_SET
= 2 << 6;
59
const
int
VTYPEPARS_COLOR_SET
= 2 << 7;
60
const
int
VTYPEPARS_VEHICLECLASS_SET
= 2 << 8;
61
const
int
VTYPEPARS_WIDTH_SET
= 2 << 9;
62
const
int
VTYPEPARS_HEIGHT_SET
= 2 << 10;
63
const
int
VTYPEPARS_SHAPE_SET
= 2 << 11;
64
const
int
VTYPEPARS_OSGFILE_SET
= 2 << 12;
65
const
int
VTYPEPARS_IMGFILE_SET
= 2 << 13;
66
67
68
// ===========================================================================
69
// struct definitions
70
// ===========================================================================
75
class
SUMOVTypeParameter
{
76
public
:
81
SUMOVTypeParameter
();
82
83
88
bool
wasSet
(
int
what)
const
{
89
return
(
setParameter
& what) != 0;
90
}
91
92
98
void
write
(
OutputDevice
& dev)
const
;
99
102
void
validateCFParameter
()
const
;
103
104
110
SUMOReal
get
(
const
SumoXMLAttr
attr,
const
SUMOReal
defaultValue)
const
;
111
112
114
std::string
id
;
115
117
SUMOReal
length
;
119
SUMOReal
minGap
;
121
SUMOReal
maxSpeed
;
123
SUMOReal
defaultProbability
;
125
SUMOReal
speedFactor
;
127
SUMOReal
speedDev
;
129
SUMOEmissionClass
emissionClass
;
131
RGBColor
color
;
133
SUMOVehicleClass
vehicleClass
;
134
135
138
140
SUMOReal
width
;
141
143
SUMOReal
height
;
144
146
SUMOVehicleShape
shape
;
147
149
std::string
osgFile
;
150
152
std::string
imgFile
;
154
155
157
SumoXMLTag
cfModel
;
158
160
typedef
std::map<SumoXMLAttr, SUMOReal>
CFParams
;
161
CFParams
cfParameter
;
162
164
std::string
lcModel
;
165
167
int
setParameter
;
168
169
171
mutable
bool
saved
;
172
174
mutable
bool
onlyReferenced
;
175
176
};
177
178
#endif
179
180
/****************************************************************************/
181
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
utils
common
SUMOVTypeParameter.h
Generated on Sun Jun 16 2013 07:08:34 for SUMO - Simulation of Urban MObility by
1.8.1.2