![]() |
SUMO - Simulation of Urban MObility
|
A place on the road net (at a certain lane and position on it) where the E3 area begins. 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. More... | |
MSE3EntryReminder (const MSCrossSection &crossSection, MSE3Collector &collector) | |
Constructor. More... | |
virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) |
Internal notification about the vehicle moves. More... | |
void | setDescription (const std::string &description) |
Methods inherited from MSMoveReminder. | |
bool | notifyMove (SUMOVehicle &veh, SUMOReal, SUMOReal newPos, SUMOReal) |
Checks whether the vehicle enters. More... | |
bool | notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason) |
Processes state changes of a vehicle. More... | |
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. More... | |
Protected Attributes | |
std::string | myDescription |
a description of this moveReminder More... | |
MSLane *const | myLane |
Lane on which the reminder works. More... | |
Private Member Functions | |
MSE3EntryReminder (const MSE3EntryReminder &) | |
Invalidated copy constructor. More... | |
MSE3EntryReminder & | operator= (const MSE3EntryReminder &) |
Invalidated assignment operator. More... | |
Private Attributes | |
MSE3Collector & | myCollector |
The parent collector. More... | |
SUMOReal | myPosition |
The position on the lane. More... | |
A place on the road net (at a certain lane and position on it) where the E3 area begins.
Definition at line 71 of file MSE3Collector.h.
|
inherited |
Definition of a vehicle state.
Definition at line 95 of file MSMoveReminder.h.
MSE3Collector::MSE3EntryReminder::MSE3EntryReminder | ( | const MSCrossSection & | crossSection, |
MSE3Collector & | collector | ||
) |
Constructor.
[in] | crossSection | The position at which the entry lies |
[in] | collector | The detector the entry belongs to |
Definition at line 51 of file MSE3Collector.cpp.
|
private |
Invalidated copy constructor.
|
inlineinherited |
Definition at line 215 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSBaseVehicle::addStops().
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 89 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), MSE2Collector::detectorUpdate(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSMeanData::MeanDataValues::notifyMove(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_ArealDetector::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, MSTriggeredRerouter, MSMeanData_Net::MSLaneMeanDataValues, MSCalibrator::VehicleRemover, MSDevice_Tripinfo, MSMeanData_Amitran::MSLaneMeanDataValues, MSDevice_Battery, MSDevice_Example, MSMeanData::MeanDataValues, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSDevice_BTreceiver, MSDevice_Vehroutes, MSDevice_BTsender, MSRouteProbe, MSDevice_Person, and MSDevice_Container.
Definition at line 130 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
|
virtual |
Processes state changes of a vehicle.
If the reported vehicle is known, and the reason indicates a removal from the network (permanent or temporary), the vehicle is removed from the list of vehicles to regard.
[in] | veh | The leaving vehicle. |
[in] | lastPos | Position on the lane when leaving. |
[in] | reason | The reason for the state change |
Reimplemented from MSMoveReminder.
Definition at line 76 of file MSE3Collector.cpp.
References Named::getID(), SUMOVehicle::getID(), myCollector, MSE3Collector::myEnteredContainer, MSMoveReminder::NOTIFICATION_ARRIVED, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
|
virtual |
Checks whether the vehicle enters.
As soon as the reported vehicle enters the detector area (position>myPosition) the entering time is computed and both are added to the parent detector using "enter".
[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 58 of file MSE3Collector.cpp.
References MSE3Collector::enter(), MSNet::getInstance(), myCollector, MSE3Collector::myEnteredContainer, myPosition, 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 203 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
Referenced by MSMoveReminder::MSMoveReminder(), and MSMeanData::MeanDataValues::notifyMove().
|
private |
Invalidated assignment operator.
|
inlineinherited |
Definition at line 211 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSMeanData::init(), and MSCalibrator::MSCalibrator().
|
private |
The parent collector.
Definition at line 118 of file MSE3Collector.h.
Referenced by notifyLeave(), and notifyMove().
|
protectedinherited |
a description of this moveReminder
Definition at line 229 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 227 of file MSMoveReminder.h.
Referenced by MSE2Collector::detectorUpdate(), MSMoveReminder::getLane(), MSE2Collector::MSE2Collector(), MSMoveReminder::MSMoveReminder(), MSE2Collector::by_vehicle_position_sorter::operator()(), and MSMeanData::MeanDataValueTracker::reset().
|
private |
The position on the lane.
Definition at line 121 of file MSE3Collector.h.
Referenced by notifyMove().