![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_TLS.h>
Public Member Functions | |
GNEChange_TLS (GNEJunction *junction, NBTrafficLightDefinition *tlDef, bool forward, bool forceInsert=false, const std::string tlID="") | |
Constructor for creating/deleting an edge. More... | |
void | redo () |
FXString | redoName () const |
virtual FXuint | size () const |
void | undo () |
FXString | undoName () const |
~GNEChange_TLS () | |
Destructor. More... | |
Protected Attributes | |
bool | myForward |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More... | |
GNENet * | myNet |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More... | |
Private Attributes | |
bool | myForceInsert |
GNEJunction * | myJunction |
NBTrafficLightDefinition * | myTlDef |
A network change in which a traffic light is created or deleted
Definition at line 49 of file GNEChange_TLS.h.
GNEChange_TLS::GNEChange_TLS | ( | GNEJunction * | junction, |
NBTrafficLightDefinition * | tlDef, | ||
bool | forward, | ||
bool | forceInsert = false , |
||
const std::string | tlID = "" |
||
) |
Constructor for creating/deleting an edge.
[in] | junction | The junction to which the traffic light belong |
[in] | tlDef | The traffic light definition (may be 0 on creation) |
[in] | forward | Whether to create/delete (true/false) |
[in] | tlID | The id for the newly created tlDef (set to junction id if * "" is given) |
Definition at line 53 of file GNEChange_TLS.cpp.
References StringBijection< T >::get(), OptionsCont::getOptions(), and SUMOXMLDefinitions::TrafficLightTypes.
GNEChange_TLS::~GNEChange_TLS | ( | ) |
Destructor.
Definition at line 69 of file GNEChange_TLS.cpp.
References GNEReferenceCounter::decRef(), myJunction, and GNEReferenceCounter::unreferenced().
|
virtual |
Reimplemented from GNEChange.
Definition at line 87 of file GNEChange_TLS.cpp.
References GNEJunction::addTrafficLight(), myForceInsert, GNEChange::myForward, myJunction, myTlDef, and GNEJunction::removeTrafficLight().
|
virtual |
Reimplemented from GNEChange.
Definition at line 105 of file GNEChange_TLS.cpp.
References GNEChange::myForward.
|
inlinevirtualinherited |
Definition at line 62 of file GNEChange.h.
|
virtual |
Reimplemented from GNEChange.
Definition at line 78 of file GNEChange_TLS.cpp.
References GNEJunction::addTrafficLight(), myForceInsert, GNEChange::myForward, myJunction, myTlDef, and GNEJunction::removeTrafficLight().
|
virtual |
Reimplemented from GNEChange.
Definition at line 96 of file GNEChange_TLS.cpp.
References GNEChange::myForward.
|
private |
Definition at line 79 of file GNEChange_TLS.h.
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 86 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Edge::redo(), GNEChange_Junction::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Connection::redo(), GNEChange_Selection::redoName(), GNEChange_Edge::redoName(), GNEChange_Junction::redoName(), redoName(), GNEChange_Lane::redoName(), GNEChange_Connection::redoName(), GNEChange_Selection::undo(), GNEChange_Edge::undo(), GNEChange_Junction::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Connection::undo(), GNEChange_Selection::undoName(), GNEChange_Edge::undoName(), GNEChange_Junction::undoName(), undoName(), GNEChange_Lane::undoName(), and GNEChange_Connection::undoName().
|
private |
Definition at line 73 of file GNEChange_TLS.h.
Referenced by redo(), undo(), and ~GNEChange_TLS().
|
protectedinherited |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)
Definition at line 73 of file GNEChange.h.
Referenced by GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange::redo(), GNEChange_Junction::undo(), and GNEChange_Edge::undo().
|
private |
Definition at line 77 of file GNEChange_TLS.h.