SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
GNEChange_TLS.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// A network change in which a traffic light is created or deleted
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10
// Copyright (C) 2001-2016 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 GNEChange_TLS_h
21
#define GNEChange_TLS_h
22
23
// ===========================================================================
24
// included modules
25
// ===========================================================================
26
#ifdef _MSC_VER
27
#include <
windows_config.h
>
28
#else
29
#include <
config.h
>
30
#endif
31
32
#include <fx.h>
33
#include <
utils/foxtools/fxexdefs.h
>
34
#include "
GNEChange.h
"
35
36
// ===========================================================================
37
// class declarations
38
// ===========================================================================
39
class
NBTrafficLightDefinition
;
40
class
GNEJunction
;
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
49
class
GNEChange_TLS
:
public
GNEChange
{
50
FXDECLARE_ABSTRACT(
GNEChange_TLS
)
51
52
public
:
59
GNEChange_TLS
(
GNEJunction
* junction,
NBTrafficLightDefinition
* tlDef,
bool
forward,
bool
forceInsert =
false
,
const
std::string tlID =
""
);
60
62
~GNEChange_TLS
();
63
64
FXString
undoName
()
const
;
65
FXString
redoName
()
const
;
66
void
undo
();
67
void
redo
();
68
69
70
private
:
71
/* we need the junction because it is the target of our change commands
72
* we assume shared responsiblity for the junction via reference counting */
73
GNEJunction
*
myJunction
;
74
75
/* the traffic light to be created/deleted. We assume no responsiblity for the pointer
76
* since it is hard to track by which NBnodes a tlDef is used (may be more than one). */
77
NBTrafficLightDefinition
*
myTlDef
;
78
79
bool
myForceInsert
;
80
};
81
82
#endif
83
/****************************************************************************/
GNEChange_TLS::myJunction
GNEJunction * myJunction
Definition:
GNEChange_TLS.h:73
GNEChange
the function-object for an editing operation (abstract base)
Definition:
GNEChange.h:48
GNEChange_TLS::redo
void redo()
Definition:
GNEChange_TLS.cpp:87
windows_config.h
fxexdefs.h
NBTrafficLightDefinition
The base class for traffic light logic definitions.
Definition:
NBTrafficLightDefinition.h:75
GNEChange_TLS::myForceInsert
bool myForceInsert
Definition:
GNEChange_TLS.h:79
GNEChange_TLS::myTlDef
NBTrafficLightDefinition * myTlDef
Definition:
GNEChange_TLS.h:77
config.h
GNEChange_TLS::~GNEChange_TLS
~GNEChange_TLS()
Destructor.
Definition:
GNEChange_TLS.cpp:69
GNEChange_TLS::undo
void undo()
Definition:
GNEChange_TLS.cpp:78
GNEChange.h
GNEChange_TLS::redoName
FXString redoName() const
Definition:
GNEChange_TLS.cpp:105
GNEChange_TLS::undoName
FXString undoName() const
Definition:
GNEChange_TLS.cpp:96
GNEChange_TLS::GNEChange_TLS
GNEChange_TLS(GNEJunction *junction, NBTrafficLightDefinition *tlDef, bool forward, bool forceInsert=false, const std::string tlID="")
Constructor for creating/deleting an edge.
Definition:
GNEChange_TLS.cpp:53
GNEJunction
Definition:
GNEJunction.h:61
GNEChange_TLS
Definition:
GNEChange_TLS.h:49
src
netedit
GNEChange_TLS.h
Generated on Sun May 15 2016 06:29:44 for SUMO - Simulation of Urban MObility by
1.8.11