 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 myForceInsert(forceInsert) {
49 myJunction->incRef(
"GNEChange_TLS");
50 if (myTlDef ==
nullptr) {
54 myTlDef =
new NBOwnTLDef(tlID ==
"" ? myJunction->getMicrosimID() : tlID, 0, type);
FXString redoName() const
get Redo name
bool unreferenced()
check if object ins't referenced
const std::string getID() const
function to support debugging
void requiereSaveNet(bool value)
inform that net has to be saved
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
GNEJunction * myJunction
we need the junction because it is the target of our change commands
A traffic light logics which must be computed (only nodes/edges are given)
static OptionsCont & getOptions()
Retrieves the options.
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
T get(const std::string &str) const
NBTrafficLightDefinition * myTlDef
the traffic light to be created/deleted. We assume no responsiblity for the pointer
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
void decRef(const std::string &debugMsg="")
Decrease reference.
bool myForceInsert
check if forceInsert is enabled
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
~GNEChange_TLS()
Destructor.
const std::string & getTagStr() const
get tag assigned to this object in string format
FXString undoName() const
return undoName
the function-object for an editing operation (abstract base)
The base class for traffic light logic definitions.