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
/****************************************************************************/
16
// -------------------
17
/****************************************************************************/
18
#ifndef NIVissimVehTypeClass_h
19
#define NIVissimVehTypeClass_h
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
#include <string>
28
#include <map>
29
#include <
utils/common/RGBColor.h
>
30
31
32
// ===========================================================================
33
// class definitions
34
// ===========================================================================
38
class
NIVissimVehTypeClass
{
39
public
:
40
NIVissimVehTypeClass
(
int
id
,
const
std::string& name,
41
const
RGBColor
& color, std::vector<int>& types);
42
~NIVissimVehTypeClass
();
43
static
bool
dictionary
(
int
id
,
const
std::string& name,
44
const
RGBColor
& color, std::vector<int>& types);
45
static
bool
dictionary
(
int
id
,
NIVissimVehTypeClass
* o);
46
static
NIVissimVehTypeClass
*
dictionary
(
int
name);
47
static
void
clearDict
();
48
double
meanSpeed
()
const
;
49
private
:
50
int
myID
;
51
std::string
myName
;
52
RGBColor
myColor
;
53
std::vector<int>
myTypes
;
54
private
:
55
typedef
std::map<int, NIVissimVehTypeClass*>
DictType
;
56
static
DictType
myDict
;
57
};
58
59
60
#endif
61
62
/****************************************************************************/
63
NIVissimVehTypeClass::clearDict
static void clearDict()
Definition:
NIVissimVehTypeClass.cpp:79
NIVissimVehTypeClass
Definition:
NIVissimVehTypeClass.h:38
NIVissimVehTypeClass::myDict
static DictType myDict
Definition:
NIVissimVehTypeClass.h:56
NIVissimVehTypeClass::~NIVissimVehTypeClass
~NIVissimVehTypeClass()
Definition:
NIVissimVehTypeClass.cpp:39
NIVissimVehTypeClass::NIVissimVehTypeClass
NIVissimVehTypeClass(int id, const std::string &name, const RGBColor &color, std::vector< int > &types)
Definition:
NIVissimVehTypeClass.cpp:33
NIVissimVehTypeClass::meanSpeed
double meanSpeed() const
NIVissimVehTypeClass::myID
int myID
Definition:
NIVissimVehTypeClass.h:50
RGBColor.h
RGBColor
Definition:
RGBColor.h:40
NIVissimVehTypeClass::dictionary
static bool dictionary(int id, const std::string &name, const RGBColor &color, std::vector< int > &types)
Definition:
NIVissimVehTypeClass.cpp:43
NIVissimVehTypeClass::myTypes
std::vector< int > myTypes
Definition:
NIVissimVehTypeClass.h:53
NIVissimVehTypeClass::myColor
RGBColor myColor
Definition:
NIVissimVehTypeClass.h:52
NIVissimVehTypeClass::myName
std::string myName
Definition:
NIVissimVehTypeClass.h:51
config.h
NIVissimVehTypeClass::DictType
std::map< int, NIVissimVehTypeClass * > DictType
Definition:
NIVissimVehTypeClass.h:55
src
netimport
vissim
tempstructs
NIVissimVehTypeClass.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16