#include <MSTriggeredRerouter.h>

Definition at line 87 of file MSTriggeredRerouter.h.
Public Member Functions | |
| const MSLane *const | getLane () const throw () |
| Returns the lane the reminder works on. | |
| Setter (MSTriggeredRerouter *const parent, MSLane *const lane) throw () | |
| Constructor. | |
| ~Setter () throw () | |
| Destructor. | |
Methods inherited from MSMoveReminder | |
| bool | isStillActive (MSVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) throw () |
| Tries to reroute the vehicle. | |
| bool | notifyEnter (MSVehicle &veh, bool isEmit, bool isLaneChange) throw () |
| Tries to reroute the vehicle. | |
Interface methods, to be derived by subclasses | |
| virtual void | notifyLeave (MSVehicle &veh, bool isArrival, bool isLaneChange) throw () |
| Called if the vehicle leaves the reminder's lane. | |
Protected Attributes | |
| MSLane *const | myLane |
| Lane on which the reminder works. | |
Private Member Functions | |
| Setter & | operator= (const Setter &) |
| Invalidated assignment operator. | |
| Setter (const Setter &) | |
| Invalidated copy constructor. | |
Private Attributes | |
| MSTriggeredRerouter *const | myParent |
| The rerouter used for rerouting the vehicle. | |
| MSTriggeredRerouter::Setter::Setter | ( | MSTriggeredRerouter *const | parent, | |
| MSLane *const | lane | |||
| ) | throw () |
Constructor.
| [in] | parent | The rerouter responsible for this actor |
| [in] | lane | The lane this actor is placed at |
Definition at line 62 of file MSTriggeredRerouter.cpp.
00064 : MSMoveReminder(lane), myParent(parent) {}
| MSTriggeredRerouter::Setter::~Setter | ( | ) | throw () |
| MSTriggeredRerouter::Setter::Setter | ( | const Setter & | ) | [private] |
Invalidated copy constructor.
| const MSLane* const MSMoveReminder::getLane | ( | ) | const throw () [inline, inherited] |
Returns the lane the reminder works on.
Definition at line 80 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUINet::initDetectors(), MSMeanData_Net::MSLaneMeanDataValues::isStillActive(), MSMeanData_HBEFA::MSLaneMeanDataValues::isStillActive(), MSMeanData_Harmonoise::MSLaneMeanDataValues::isStillActive(), MSE2Collector::update(), and MSMeanData::writeEdge().
00080 { 00081 return myLane; 00082 }
| bool MSTriggeredRerouter::Setter::isStillActive | ( | MSVehicle & | veh, | |
| SUMOReal | oldPos, | |||
| SUMOReal | newPos, | |||
| SUMOReal | newSpeed | |||
| ) | throw () [virtual] |
Tries to reroute the vehicle.
Calls parent's "reroute"-method with the vehicle as one of the parameters. Returns false - the vehicle will not be rerouted again.
| [in] | veh | The regarded vehicle |
| [in] | oldPos | Position before the move-micro-timestep. |
| [in] | newPos | Position after the move-micro-timestep. |
| [in] | newSpeed | The vehicle's current speed |
Reimplemented from MSMoveReminder.
Definition at line 71 of file MSTriggeredRerouter.cpp.
References MSLane::getEdge(), MSMoveReminder::myLane, myParent, and MSTriggeredRerouter::reroute().
| bool MSTriggeredRerouter::Setter::notifyEnter | ( | MSVehicle & | veh, | |
| bool | isEmit, | |||
| bool | isLaneChange | |||
| ) | throw () [virtual] |
Tries to reroute the vehicle.
Calls parent's "reroute"-method with the vehicle as one of the parameters. Returns false - the vehicle will not be rerouted again.
| [in] | veh | The entering vehicle. |
| [in] | isEmit | true means emit, false: lane change |
Reimplemented from MSMoveReminder.
Definition at line 79 of file MSTriggeredRerouter.cpp.
References MSLane::getEdge(), MSMoveReminder::myLane, myParent, and MSTriggeredRerouter::reroute().
| virtual void MSMoveReminder::notifyLeave | ( | MSVehicle & | veh, | |
| bool | isArrival, | |||
| bool | isLaneChange | |||
| ) | throw () [inline, virtual, inherited] |
Called if the vehicle leaves the reminder's lane.
Informs if vehicle leaves reminder lane (due to lane change, removal from the network, or leaving to the next lane). The default is to do nothing.
| [in] | veh | The leaving vehicle. |
| [in] | isArrival | whether the vehicle arrived at its destination |
| [in] | isLaneChange | whether the vehicle changed from the lane |
Reimplemented in MSE2Collector, MSInductLoop, MSMeanData::MeanDataValueTracker, and MSMeanData_Net::MSLaneMeanDataValues.
Definition at line 119 of file MSMoveReminder.h.
Invalidated assignment operator.
MSLane* const MSMoveReminder::myLane [protected, inherited] |
Lane on which the reminder works.
Definition at line 141 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getLane(), isStillActive(), notifyEnter(), and MSMeanData::MeanDataValueTracker::reset().
MSTriggeredRerouter* const MSTriggeredRerouter::Setter::myParent [private] |
The rerouter used for rerouting the vehicle.
Definition at line 140 of file MSTriggeredRerouter.h.
Referenced by isStillActive(), and notifyEnter().
1.5.6