#include <MSRouteProbe.h>

Definition at line 71 of file MSRouteProbe.h.
Public Member Functions | |
| EntryReminder (MSLane *const lane, MSRouteProbe &collector) throw () | |
| Constructor. | |
| const MSLane *const | getLane () const throw () |
| Returns the lane the reminder works on. | |
Interface methods, to be derived by subclasses | |
| virtual bool | isStillActive (MSVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) throw () |
| Checks whether the reminder still has to be notified about the vehicle moves. | |
| virtual void | notifyLeave (MSVehicle &veh, bool isArrival, bool isLaneChange) throw () |
| Called if the vehicle leaves the reminder's lane. | |
Methods inherited from MSMoveReminder | |
| bool | notifyEnter (MSVehicle &veh, bool isEmit, bool isLaneChange) throw () |
| Returns whether the vehicle shall be aware of this entry. | |
Protected Attributes | |
| MSLane *const | myLane |
| Lane on which the reminder works. | |
Private Member Functions | |
| EntryReminder (const EntryReminder &) | |
| Invalidated copy constructor. | |
| EntryReminder & | operator= (const EntryReminder &) |
| Invalidated assignment operator. | |
Private Attributes | |
| MSRouteProbe & | myCollector |
| The parent collector. | |
| MSRouteProbe::EntryReminder::EntryReminder | ( | MSLane *const | lane, | |
| MSRouteProbe & | collector | |||
| ) | throw () |
Constructor.
| [in] | lane | The lane the entry belongs to |
| [in] | collector | The detector the entry belongs to |
Definition at line 52 of file MSRouteProbe.cpp.
00053 : MSMoveReminder(lane), myCollector(collector) {}
| MSRouteProbe::EntryReminder::EntryReminder | ( | const EntryReminder & | ) | [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 }
| virtual bool MSMoveReminder::isStillActive | ( | MSVehicle & | veh, | |
| SUMOReal | oldPos, | |||
| SUMOReal | newPos, | |||
| SUMOReal | newSpeed | |||
| ) | throw () [inline, virtual, inherited] |
Checks whether the reminder still has to be notified about the vehicle moves.
Indicator if the reminders is still active for the passed vehicle/parameters. If false, the vehicle will erase this reminder from it's reminder-container.
| veh | Vehicle that asks this reminder. | |
| oldPos | Position before move. | |
| newPos | Position after move with newSpeed. | |
| newSpeed | Moving speed. |
Reimplemented in MSE2Collector, MSE3Collector::MSE3EntryReminder, MSE3Collector::MSE3LeaveReminder, MSInductLoop, MSMeanData::MeanDataValueTracker, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSMeanData_HBEFA::MSLaneMeanDataValues, MSMeanData_Net::MSLaneMeanDataValues, and MSTriggeredRerouter::Setter.
Definition at line 101 of file MSMoveReminder.h.
| bool MSRouteProbe::EntryReminder::notifyEnter | ( | MSVehicle & | veh, | |
| bool | isEmit, | |||
| bool | isLaneChange | |||
| ) | throw () [virtual] |
Returns whether the vehicle shall be aware of this entry.
Returns true if the vehicle is in front of the entry, so that it may enter it in later steps.
| [in] | veh | The vehicle that enters the lane |
| [in] | isEmit | whether the vehicle was just emitted into the net |
| [in] | isLaneChange | whether the vehicle changed to the lane |
Reimplemented from MSMoveReminder.
Definition at line 57 of file MSRouteProbe.cpp.
00057 { 00058 myCollector.addRoute(veh.getRoute()); 00059 return false; 00060 }
| 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.
| EntryReminder& MSRouteProbe::EntryReminder::operator= | ( | const EntryReminder & | ) | [private] |
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(), MSTriggeredRerouter::Setter::isStillActive(), MSTriggeredRerouter::Setter::notifyEnter(), and MSMeanData::MeanDataValueTracker::reset().
1.5.6