SUMO - Simulation of Urban MObility
|
A place on the road net (at a certain lane and position on it) where the E3 area ends. More...
#include <MSE3Collector.h>
Public Types | |
enum | Notification { NOTIFICATION_DEPARTED, NOTIFICATION_JUNCTION, NOTIFICATION_SEGMENT, NOTIFICATION_LANE_CHANGE, NOTIFICATION_TELEPORT, NOTIFICATION_PARKING, NOTIFICATION_ARRIVED, NOTIFICATION_VAPORIZED, NOTIFICATION_TELEPORT_ARRIVED } |
Definition of a vehicle state. More... |
Public Member Functions | |
const std::string & | getDescription () const |
const MSLane * | getLane () const |
Returns the lane the reminder works on. | |
MSE3LeaveReminder (const MSCrossSection &crossSection, MSE3Collector &collector) | |
Constructor. | |
virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) |
Internal notification about the vehicle moves. | |
void | setDescription (const std::string &description) |
methods from MSMoveReminder | |
bool | notifyMove (SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal) |
Checks whether the vehicle leaves. | |
bool | notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason) |
Processes state changes of a vehicle. | |
Interface methods, to be derived by subclasses | |
virtual bool | notifyEnter (SUMOVehicle &veh, Notification reason) |
Checks whether the reminder is activated by a vehicle entering the lane. |
Protected Attributes | |
std::string | myDescription |
a description of this moveReminder | |
MSLane *const | myLane |
Lane on which the reminder works. |
Private Member Functions | |
MSE3LeaveReminder (const MSE3LeaveReminder &) | |
Invalidated copy constructor. | |
MSE3LeaveReminder & | operator= (const MSE3LeaveReminder &) |
Invalidated assignment operator. |
Private Attributes | |
MSE3Collector & | myCollector |
The parent collector. | |
SUMOReal | myPosition |
The position on the lane. |
A place on the road net (at a certain lane and position on it) where the E3 area ends.
Definition at line 138 of file MSE3Collector.h.
|
inherited |
Definition of a vehicle state.
Definition at line 95 of file MSMoveReminder.h.
MSE3Collector::MSE3LeaveReminder::MSE3LeaveReminder | ( | const MSCrossSection & | crossSection, |
MSE3Collector & | collector | ||
) |
Constructor.
[in] | crossSection | The position at which the exit lies |
[in] | collector | The detector the exit belongs to |
Definition at line 92 of file MSE3Collector.cpp.
|
private |
Invalidated copy constructor.
|
inlineinherited |
Definition at line 214 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 89 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by MSE2Collector::detectorUpdate(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), TraCIServerAPI_InductionLoop::processGet(), and MSMeanData::writeEdge().
|
inlinevirtualinherited |
Checks whether the reminder is activated by a vehicle entering the lane.
Lane change means in this case that the vehicle changes to the lane the reminder is placed at.
[in] | veh | The entering vehicle. |
[in] | reason | how the vehicle enters the lane |
Reimplemented in MSMeanData::MeanDataValueTracker, MSE2Collector, MSDevice_Routing, MSMeanData_Net::MSLaneMeanDataValues, MSCalibrator::VehicleRemover, MSTriggeredRerouter, MSMeanData_Amitran::MSLaneMeanDataValues, MSDevice_Example, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSMeanData::MeanDataValues, MSDevice_Vehroutes, MSDevice_BTsender, MSRouteProbe, MSDevice_Person, MSDevice_Tripinfo, and MSDevice_BTreceiver.
Definition at line 130 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
|
virtual |
Processes state changes of a vehicle.
Checks whether the vehicle has changed lanes and this reminder needs to be removed
[in] | veh | The leaving vehicle (unused). |
[in] | lastPos | Position on the lane when leaving (unused). |
[in] | reason | The reason for the state change |
Reimplemented from MSMoveReminder.
Definition at line 120 of file MSE3Collector.cpp.
References MSMoveReminder::NOTIFICATION_LANE_CHANGE.
|
virtual |
Checks whether the vehicle leaves.
As soon as the reported vehicle leaves the detector area (position-length>myPosition) the leaving time is computed and both are made known to the parent detector using "leave".
[in] | veh | The vehicle in question. |
[in] | oldPos | Position before the move-micro-timestep. |
[in] | newPos | Position after the move-micro-timestep. |
[in] | newSpeed | Unused here. |
Reimplemented from MSMoveReminder.
Definition at line 99 of file MSE3Collector.cpp.
References MSNet::getInstance(), STEPS2TIME, and SUMOReal.
|
inlinevirtualinherited |
Internal notification 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.
[in] | veh | Vehicle that asks this reminder. |
[in] | timeOnLane | time the vehicle spent on the lane. |
[in] | speed | Moving speed. |
Reimplemented in MSMeanData::MeanDataValueTracker, MSMeanData_Net::MSLaneMeanDataValues, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSMeanData_Amitran::MSLaneMeanDataValues, and MSMeanData_Emissions::MSLaneMeanDataValues.
Definition at line 202 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
|
private |
Invalidated assignment operator.
|
inlineinherited |
Definition at line 210 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSCalibrator::MSCalibrator().
|
private |
The parent collector.
Definition at line 183 of file MSE3Collector.h.
|
protectedinherited |
a description of this moveReminder
Definition at line 223 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 221 of file MSMoveReminder.h.
Referenced by MSE2Collector::detectorUpdate(), MSMoveReminder::getLane(), MSE2Collector::MSE2Collector(), and MSMoveReminder::MSMoveReminder().
|
private |
The position on the lane.
Definition at line 186 of file MSE3Collector.h.