![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_RerouterItem.h>


Public Member Functions | |
| GNEChange_RerouterItem (GNERerouterInterval *rerouterInterval, bool forward) | |
| Constructor. More... | |
| GNEChange_RerouterItem (GNEClosingReroute *closingReroute, bool forward) | |
| Constructor. More... | |
| GNEChange_RerouterItem (GNEClosingLaneReroute *closingLaneReroute, bool forward) | |
| Constructor. More... | |
| GNEChange_RerouterItem (GNEDestProbReroute *destProbReroute, bool forward) | |
| Constructor. More... | |
| GNEChange_RerouterItem (GNERouteProbReroute *routeProbReroute, bool forward) | |
| Constructor. More... | |
| GNEChange_RerouterItem (GNEParkingAreaReroute *parkingAreaReroute, bool forward) | |
| Constructor. More... | |
| virtual FXuint | size () const |
| return actual size More... | |
| ~GNEChange_RerouterItem () | |
| Destructor. More... | |
inherited from GNEChange | |
get undo Name | |
| FXString | undoName () const |
| return undoName More... | |
| FXString | redoName () const |
| get Redo name More... | |
| void | undo () |
| undo action More... | |
| void | redo () |
| redo action 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 | |
| GNEClosingLaneReroute * | myClosingLaneReroute |
| modified Closing lane Reroute More... | |
| GNEClosingReroute * | myClosingReroute |
| modified Closing Reroute More... | |
| GNEDestProbReroute * | myDestProbReroute |
| modified Closing Interval More... | |
| GNEParkingAreaReroute * | myParkingAreaReroute |
| modified parkingAreaReroute More... | |
| GNERerouterInterval * | myRerouterInterval |
| modified rerouter interval More... | |
| GNERouteProbReroute * | myRouteProbReroute |
| modified Route Probability Reroute More... | |
A change to the network selection
Definition at line 51 of file GNEChange_RerouterItem.h.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNERerouterInterval * | rerouterInterval, |
| bool | forward | ||
| ) |
Constructor.
| [in] | rerouterInterval | rerouter interval to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 47 of file GNEChange_RerouterItem.cpp.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNEClosingReroute * | closingReroute, |
| bool | forward | ||
| ) |
Constructor.
| [in] | closingReroute | Closing Reroute to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 59 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::incRef(), and myClosingReroute.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNEClosingLaneReroute * | closingLaneReroute, |
| bool | forward | ||
| ) |
Constructor.
| [in] | closingLaneReroute | Closing Lane Reroute to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 71 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::incRef(), and myClosingLaneReroute.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNEDestProbReroute * | destProbReroute, |
| bool | forward | ||
| ) |
Constructor.
| [in] | destProbReroute | Destiny Probability Reroute to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 83 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::incRef(), and myDestProbReroute.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNERouteProbReroute * | routeProbReroute, |
| bool | forward | ||
| ) |
Constructor.
| [in] | routeProbReroute | Route Probability Reroute to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 95 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::incRef(), and myRouteProbReroute.
| GNEChange_RerouterItem::GNEChange_RerouterItem | ( | GNEParkingAreaReroute * | parkingAreaReroute, |
| bool | forward | ||
| ) |
Constructor.
| [in] | ParkingAreaReroute | to be added |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 106 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::incRef(), and myParkingAreaReroute.
| GNEChange_RerouterItem::~GNEChange_RerouterItem | ( | ) |
Destructor.
Definition at line 120 of file GNEChange_RerouterItem.cpp.
References GNEReferenceCounter::decRef(), OptionsCont::getBool(), OptionsCont::getOptions(), myClosingLaneReroute, myClosingReroute, myDestProbReroute, myParkingAreaReroute, myRerouterInterval, myRouteProbReroute, GNEReferenceCounter::unreferenced(), and WRITE_WARNING.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 280 of file GNEChange_RerouterItem.cpp.
References GNERerouterInterval::addClosingLaneReroute(), GNERerouterInterval::addClosingReroute(), GNERerouterInterval::addDestProbReroute(), GNERerouterInterval::addParkingAreaReroute(), GNERerouter::addRerouterInterval(), GNERerouterInterval::addRouteProbReroute(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNERouteProbReroute::getRerouterIntervalParent(), GNEDestProbReroute::getRerouterIntervalParent(), GNEParkingAreaReroute::getRerouterIntervalParent(), GNEClosingReroute::getRerouterIntervalParent(), GNEClosingLaneReroute::getRerouterIntervalParent(), GNERerouterInterval::getRerouterParent(), myClosingLaneReroute, myClosingReroute, myDestProbReroute, GNEChange::myForward, GNEChange::myNet, myParkingAreaReroute, myRerouterInterval, myRouteProbReroute, GNERerouterInterval::removeClosingLaneReroute(), GNERerouterInterval::removeClosingReroute(), GNERerouterInterval::removeDestProbReroute(), GNERerouterInterval::removeParkingAreaReroute(), GNERerouter::removeRerouterInterval(), GNERerouterInterval::removeRouteProbReroute(), GNENet::requiereSaveAdditionals(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 400 of file GNEChange_RerouterItem.cpp.
References GNEAttributeCarrier::getTag(), myClosingLaneReroute, myClosingReroute, myDestProbReroute, myParkingAreaReroute, myRerouterInterval, myRouteProbReroute, and toString().
|
virtualinherited |
return actual size
Definition at line 46 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 180 of file GNEChange_RerouterItem.cpp.
References GNERerouterInterval::addClosingLaneReroute(), GNERerouterInterval::addClosingReroute(), GNERerouterInterval::addDestProbReroute(), GNERerouterInterval::addParkingAreaReroute(), GNERerouter::addRerouterInterval(), GNERerouterInterval::addRouteProbReroute(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNERouteProbReroute::getRerouterIntervalParent(), GNEDestProbReroute::getRerouterIntervalParent(), GNEParkingAreaReroute::getRerouterIntervalParent(), GNEClosingReroute::getRerouterIntervalParent(), GNEClosingLaneReroute::getRerouterIntervalParent(), GNERerouterInterval::getRerouterParent(), myClosingLaneReroute, myClosingReroute, myDestProbReroute, GNEChange::myForward, GNEChange::myNet, myParkingAreaReroute, myRerouterInterval, myRouteProbReroute, GNERerouterInterval::removeClosingLaneReroute(), GNERerouterInterval::removeClosingReroute(), GNERerouterInterval::removeDestProbReroute(), GNERerouterInterval::removeParkingAreaReroute(), GNERerouter::removeRerouterInterval(), GNERerouterInterval::removeRouteProbReroute(), GNENet::requiereSaveAdditionals(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 380 of file GNEChange_RerouterItem.cpp.
References GNEAttributeCarrier::getTag(), myClosingLaneReroute, myClosingReroute, myDestProbReroute, myParkingAreaReroute, myRerouterInterval, myRouteProbReroute, and toString().
|
private |
modified Closing lane Reroute
Definition at line 117 of file GNEChange_RerouterItem.h.
Referenced by GNEChange_RerouterItem(), redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().
|
private |
modified Closing Reroute
Definition at line 114 of file GNEChange_RerouterItem.h.
Referenced by GNEChange_RerouterItem(), redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().
|
private |
modified Closing Interval
Definition at line 120 of file GNEChange_RerouterItem.h.
Referenced by GNEChange_RerouterItem(), redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 80 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::undoName().
|
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 75 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), redo(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_CalibratorItem::~GNEChange_CalibratorItem(), GNEChange_Crossing::~GNEChange_Crossing(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
modified parkingAreaReroute
Definition at line 123 of file GNEChange_RerouterItem.h.
Referenced by GNEChange_RerouterItem(), redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().
|
private |
modified rerouter interval
Definition at line 111 of file GNEChange_RerouterItem.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().
|
private |
modified Route Probability Reroute
Definition at line 126 of file GNEChange_RerouterItem.h.
Referenced by GNEChange_RerouterItem(), redo(), redoName(), undo(), undoName(), and ~GNEChange_RerouterItem().