Eclipse SUMO - Simulation of Urban MObility
NIVissimVehTypeClass.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// -------------------
16
/****************************************************************************/
17
#ifndef NIVissimVehTypeClass_h
18
#define NIVissimVehTypeClass_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <string>
27
#include <map>
28
#include <
utils/common/RGBColor.h
>
29
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
37
class
NIVissimVehTypeClass
{
38
public
:
39
NIVissimVehTypeClass
(
int
id
,
const
std::string& name,
40
const
RGBColor
& color, std::vector<int>& types);
41
~NIVissimVehTypeClass
();
42
static
bool
dictionary
(
int
id
,
const
std::string& name,
43
const
RGBColor
& color, std::vector<int>& types);
44
static
bool
dictionary
(
int
id
,
NIVissimVehTypeClass
* o);
45
static
NIVissimVehTypeClass
*
dictionary
(
int
name);
46
static
void
clearDict
();
47
double
meanSpeed
()
const
;
48
private
:
49
int
myID
;
50
std::string
myName
;
51
RGBColor
myColor
;
52
std::vector<int>
myTypes
;
53
private
:
54
typedef
std::map<int, NIVissimVehTypeClass*>
DictType
;
55
static
DictType
myDict
;
56
};
57
58
59
#endif
60
61
/****************************************************************************/
62
NIVissimVehTypeClass::clearDict
static void clearDict()
Definition:
NIVissimVehTypeClass.cpp:78
NIVissimVehTypeClass
Definition:
NIVissimVehTypeClass.h:37
NIVissimVehTypeClass::myDict
static DictType myDict
Definition:
NIVissimVehTypeClass.h:55
NIVissimVehTypeClass::~NIVissimVehTypeClass
~NIVissimVehTypeClass()
Definition:
NIVissimVehTypeClass.cpp:38
NIVissimVehTypeClass::NIVissimVehTypeClass
NIVissimVehTypeClass(int id, const std::string &name, const RGBColor &color, std::vector< int > &types)
Definition:
NIVissimVehTypeClass.cpp:32
NIVissimVehTypeClass::meanSpeed
double meanSpeed() const
NIVissimVehTypeClass::myID
int myID
Definition:
NIVissimVehTypeClass.h:49
RGBColor.h
RGBColor
Definition:
RGBColor.h:39
NIVissimVehTypeClass::dictionary
static bool dictionary(int id, const std::string &name, const RGBColor &color, std::vector< int > &types)
Definition:
NIVissimVehTypeClass.cpp:42
NIVissimVehTypeClass::myTypes
std::vector< int > myTypes
Definition:
NIVissimVehTypeClass.h:52
NIVissimVehTypeClass::myColor
RGBColor myColor
Definition:
NIVissimVehTypeClass.h:51
NIVissimVehTypeClass::myName
std::string myName
Definition:
NIVissimVehTypeClass.h:50
config.h
NIVissimVehTypeClass::DictType
std::map< int, NIVissimVehTypeClass * > DictType
Definition:
NIVissimVehTypeClass.h:54
src
netimport
vissim
tempstructs
NIVissimVehTypeClass.h
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20