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
NIXMLTrafficLightsHandler.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// Importer for traffic lights stored in XML
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
10
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef NIXMLTrafficLightsHandler_h
21
#define NIXMLTrafficLightsHandler_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include <
utils/xml/SUMOSAXHandler.h
>
34
#include <
netbuild/NBConnection.h
>
35
36
37
// ===========================================================================
38
// class declarations
39
// ===========================================================================
40
class
NBEdge
;
41
class
NBEdgeCont
;
42
class
MsgHandler
;
43
class
NBLoadedSUMOTLDef
;
44
class
NBTrafficLightLogicCont
;
45
46
47
// ===========================================================================
48
// class definitions
49
// ===========================================================================
57
class
NIXMLTrafficLightsHandler
:
public
SUMOSAXHandler
{
58
public
:
62
NIXMLTrafficLightsHandler
(
NBTrafficLightLogicCont
& tlCont,
NBEdgeCont
& ec) ;
63
64
66
~NIXMLTrafficLightsHandler
() ;
67
68
69
protected
:
71
72
80
void
myStartElement
(
int
element,
const
SUMOSAXAttributes
& attrs) ;
81
82
89
void
myEndElement
(
int
element) ;
91
92
93
94
private
:
96
NBTrafficLightLogicCont
&
myTLLCont
;
97
99
NBEdgeCont
&
myEdgeCont
;
100
102
NBLoadedSUMOTLDef
*
myCurrentTL
;
103
105
bool
myResetPhases
;
106
111
NBLoadedSUMOTLDef
*
initTrafficLightLogic
(
const
SUMOSAXAttributes
& attrs,
NBLoadedSUMOTLDef
* currentTL);
112
114
void
addTlConnection
(
const
SUMOSAXAttributes
& attrs);
115
117
void
removeTlConnection
(
const
SUMOSAXAttributes
& attrs);
118
120
NBEdge
*
retrieveEdge
(
const
SUMOSAXAttributes
& attrs,
SumoXMLAttr
attr,
bool
& ok);
121
123
int
retrieveLaneIndex
(
const
SUMOSAXAttributes
& attrs,
SumoXMLAttr
attr,
NBEdge
* edge,
bool
& ok);
124
125
126
127
private
:
129
NIXMLTrafficLightsHandler
(
const
NIXMLTrafficLightsHandler
& s);
130
132
NIXMLTrafficLightsHandler
&
operator=
(
const
NIXMLTrafficLightsHandler
& s);
133
134
135
};
136
137
138
#endif
139
140
/****************************************************************************/
141
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
netimport
NIXMLTrafficLightsHandler.h
Generated on Mon Mar 24 2014 09:53:13 for SUMO - Simulation of Urban MObility by
1.8.1.2