57 myForceInsert(forceInsert) {
59 myJunction->incRef(
"GNEChange_TLS");
64 myTlDef =
new NBOwnTLDef(tlID ==
"" ? myJunction->getMicrosimID() : tlID, 0, type);
GNEJunction * myJunction
we need the junction because it is the target of our change commands
the function-object for an editing operation (abstract base)
GNENet * getNet() const
get Net in which this element is placed
The base class for traffic light logic definitions.
bool myForceInsert
check if forceInsert is enabled
NBTrafficLightDefinition * myTlDef
the traffic light to be created/deleted. We assume no responsiblity for the pointer ...
~GNEChange_TLS()
Destructor.
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
bool isTestingModeEnabled() const
check if netedit is running in testing mode
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
T get(const std::string &str) const
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
A traffic light logics which must be computed (only nodes/edges are given)
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
GNEViewNet * getViewNet() const
get view net
SumoXMLTag getTag() const
get XML Tag assigned to this object