![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A device which collects info on the vehicle trip (mainly on departure and arrival) More...
#include <MSDevice_Tripinfo.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, NOTIFICATION_PARKING_REROUTE } |
Definition of a vehicle state. More... | |
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
const std::string | deviceName () const |
return the name for this type of device More... | |
void | generateOutput () const |
Called on writing tripinfo output. More... | |
const std::string & | getDescription () const |
SUMOVehicle & | getHolder () const |
Returns the vehicle that holds this device. More... | |
const std::string & | getID () const |
Returns the id. More... | |
const MSLane * | getLane () const |
Returns the lane the reminder works on. More... | |
SUMOVehicle::NumericalID | getNumericalID () const |
virtual std::string | getParameter (const std::string &key) const |
try to retrieve the given parameter from this device. Throw exception for unsupported key More... | |
void | loadState (const SUMOSAXAttributes &attrs) |
Loads the state of the device from the given description. More... | |
void | saveState (OutputDevice &out) const |
Saves the state of the device. More... | |
void | setDescription (const std::string &description) |
void | setID (const std::string &newID) |
resets the id More... | |
virtual void | setParameter (const std::string &key, const std::string &value) |
try to set the given parameter for this device. Throw exception for unsupported key More... | |
~MSDevice_Tripinfo () | |
Destructor. More... | |
Methods called on vehicle movement / state change, overwriting MSDevice | |
bool | notifyMove (SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed) |
Checks for waiting steps when the vehicle moves. More... | |
bool | notifyEnter (SUMOTrafficObject &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0) |
Saves departure info on insertion. More... | |
bool | notifyLeave (SUMOTrafficObject &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0) |
Saves arrival info. More... | |
Interface methods, to be derived by subclasses | |
void | updateDetector (SUMOTrafficObject &veh, double entryPos, double leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp) |
Static Public Member Functions | |
static void | addPedestrianData (double walkLength, SUMOTime walkDuration, SUMOTime walkTimeLoss) |
record tripinfo data for pedestrians More... | |
static void | addRideData (double rideLength, SUMOTime rideDuration, SUMOVehicleClass vClass, const std::string &line, SUMOTime waitingTime) |
record tripinfo data for rides More... | |
static void | buildTransportableDevices (MSTransportable &p, std::vector< MSTransportableDevice *> &into) |
Build devices for the given person, if needed. More... | |
static void | buildVehicleDevices (SUMOVehicle &v, std::vector< MSVehicleDevice *> &into) |
Build devices for the given vehicle, if needed. More... | |
static bool | checkOptions (OptionsCont &oc) |
check device-specific options More... | |
static void | cleanup () |
resets counters More... | |
static void | cleanupAll () |
perform cleanup for all devices More... | |
static void | generateOutputForUnfinished () |
generate output for vehicles which are still in the network More... | |
static double | getAvgDepartDelay () |
static double | getAvgDuration () |
static double | getAvgRideDuration () |
static double | getAvgRideRouteLength () |
static double | getAvgRideWaitingTime () |
static double | getAvgRouteLength () |
accessors for GUINet-Parameters More... | |
static double | getAvgTimeLoss () |
static double | getAvgWaitingTime () |
static double | getAvgWalkDuration () |
static double | getAvgWalkRouteLength () |
static double | getAvgWalkTimeLoss () |
static std::mt19937 * | getEquipmentRNG () |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static void | insertOptions (OptionsCont &oc) |
Inserts options for building devices. More... | |
static std::string | printStatistics () |
get statistics for printing to stdout More... | |
Protected Member Functions | |
void | notifyMoveInternal (const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double) |
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal() More... | |
void | removeFromVehicleUpdateValues (SUMOTrafficObject &veh) |
Static Protected Member Functions | |
Helper methods for device assignment | |
static void | insertDefaultAssignmentOptions (const std::string &deviceName, const std::string &optionsTopic, OptionsCont &oc, const bool isPerson=false) |
Adds common command options that allow to assign devices to vehicles. More... | |
template<class DEVICEHOLDER > | |
static bool | equippedByDefaultAssignmentOptions (const OptionsCont &oc, const std::string &deviceName, DEVICEHOLDER &v, bool outputOptionSet, const bool isPerson=false) |
Determines whether a vehicle should get a certain device. More... | |
Helper methods for parsing parameters | |
static std::string | getStringParam (const SUMOVehicle &v, const OptionsCont &oc, std::string paramName, std::string deflt, bool required) |
static double | getFloatParam (const SUMOVehicle &v, const OptionsCont &oc, std::string paramName, double deflt, bool required) |
static bool | getBoolParam (const SUMOVehicle &v, const OptionsCont &oc, std::string paramName, bool deflt, bool required) |
Protected Attributes | |
std::string | myDescription |
a description of this moveReminder More... | |
SUMOVehicle & | myHolder |
The vehicle that stores the device. More... | |
std::string | myID |
The name of the object. More... | |
MSLane *const | myLane |
Lane on which the reminder works. More... | |
Private Member Functions | |
MSDevice_Tripinfo (SUMOVehicle &holder, const std::string &id) | |
Constructor. More... | |
MSDevice_Tripinfo (const MSDevice_Tripinfo &) | |
Invalidated copy constructor. More... | |
MSDevice_Tripinfo & | operator= (const MSDevice_Tripinfo &) |
Invalidated assignment operator. More... | |
Private Attributes | |
bool | myAmWaiting |
Whether the vehicle is currently waiting. More... | |
std::string | myArrivalLane |
The lane the vehicle arrived at. More... | |
double | myArrivalPos |
The position on the lane the vehicle arrived at. More... | |
double | myArrivalPosLat |
The lateral position on the lane the vehicle arrived at. More... | |
double | myArrivalSpeed |
The speed when arriving. More... | |
SUMOTime | myArrivalTime |
The vehicle's arrival time. More... | |
std::string | myDepartLane |
The lane the vehicle departed at. More... | |
double | myDepartPosLat |
The lateral depart position. More... | |
double | myDepartSpeed |
The speed on departure. More... | |
SUMOTime | myMesoTimeLoss |
The time loss when compared to the desired and allowed speed. More... | |
SUMOTime | myParkingStarted |
The time when parking started. More... | |
double | myRouteLength |
The route length. More... | |
SUMOTime | myStoppingTime |
The overall intentional stopping time. More... | |
int | myWaitingCount |
The overall number of unintended stops. More... | |
SUMOTime | myWaitingTime |
The overall waiting time. More... | |
Static Private Attributes | |
static std::set< const MSDevice_Tripinfo *, ComparatorNumericalIdLess > | myPendingOutput |
devices which may still need to produce output More... | |
static int | myRideAbortCount |
static int | myRideBikeCount |
static int | myRideBusCount |
static int | myRideCount |
static int | myRideRailCount |
static SUMOTime | myTotalDepartDelay |
static SUMOTime | myTotalDuration |
static SUMOTime | myTotalRideDuration |
static double | myTotalRideRouteLength |
static double | myTotalRideWaitingTime |
static double | myTotalRouteLength |
static SUMOTime | myTotalTimeLoss |
static SUMOTime | myTotalWaitingTime |
static SUMOTime | myTotalWalkDuration |
static double | myTotalWalkRouteLength |
static SUMOTime | myTotalWalkTimeLoss |
static double | myVehicleCount |
global tripinfo statistics More... | |
static SUMOTime | myWaitingDepartDelay |
static int | myWalkCount |
A device which collects info on the vehicle trip (mainly on departure and arrival)
Each device collects departure time, lane and speed and the same for arrival.
Definition at line 48 of file MSDevice_Tripinfo.h.
|
inherited |
Definition of a vehicle state.
Definition at line 89 of file MSMoveReminder.h.
MSDevice_Tripinfo::~MSDevice_Tripinfo | ( | ) |
|
private |
Constructor.
[in] | holder | The vehicle that holds this device |
[in] | id | The ID of the device |
Definition at line 87 of file MSDevice_Tripinfo.cpp.
Referenced by buildVehicleDevices(), and deviceName().
|
private |
Invalidated copy constructor.
|
static |
record tripinfo data for pedestrians
Definition at line 316 of file MSDevice_Tripinfo.cpp.
References myTotalWalkDuration, myTotalWalkRouteLength, myTotalWalkTimeLoss, and myWalkCount.
Referenced by MSPerson::MSPersonStage_Walking::tripInfoOutput().
|
static |
record tripinfo data for rides
Definition at line 325 of file MSDevice_Tripinfo.cpp.
References isRailway(), myRideAbortCount, myRideBikeCount, myRideBusCount, myRideCount, myRideRailCount, myTotalRideDuration, myTotalRideRouteLength, myTotalRideWaitingTime, and SVC_BICYCLE.
Referenced by MSPerson::MSPersonStage_Driving::tripInfoOutput().
|
inlineinherited |
Adds this object to the given container.
Definition at line 127 of file Named.h.
References Named::StoringVisitor::add().
|
staticinherited |
Build devices for the given person, if needed.
[in] | p | The person for which a device may be built |
Definition at line 112 of file MSDevice.cpp.
References MSTransportableDevice_FCD::buildDevices(), and MSTransportableDevice_Routing::buildDevices().
Referenced by MSTransportable::MSTransportable().
|
static |
Build devices for the given vehicle, if needed.
The options are read and evaluated whether a tripinfo-device shall be built for the given vehicle.
The built device is stored in the given vector.
[in] | v | The vehicle for which a device may be built |
Definition at line 75 of file MSDevice_Tripinfo.cpp.
References SUMOTrafficObject::getID(), OptionsCont::getOptions(), MSDevice_Tripinfo(), and myPendingOutput.
Referenced by MSDevice::buildVehicleDevices().
|
staticinherited |
check device-specific options
Definition at line 86 of file MSDevice.cpp.
References MSDevice_Routing::checkOptions().
Referenced by MSFrame::checkOptions().
|
static |
resets counters
Definition at line 113 of file MSDevice_Tripinfo.cpp.
References myRideAbortCount, myRideBikeCount, myRideBusCount, myRideCount, myRideRailCount, myTotalDepartDelay, myTotalDuration, myTotalRideDuration, myTotalRideRouteLength, myTotalRideWaitingTime, myTotalRouteLength, myTotalTimeLoss, myTotalWaitingTime, myTotalWalkDuration, myTotalWalkRouteLength, myTotalWalkTimeLoss, myVehicleCount, myWaitingDepartDelay, and myWalkCount.
Referenced by MSDevice::cleanupAll().
|
staticinherited |
perform cleanup for all devices
Definition at line 119 of file MSDevice.cpp.
References MSDevice_FCD::cleanup(), MSRoutingEngine::cleanup(), and cleanup().
Referenced by MSNet::clearAll(), and MSDevice::getEquipmentRNG().
|
inlinevirtual |
return the name for this type of device
Implements MSDevice.
Definition at line 136 of file MSDevice_Tripinfo.h.
References generateOutput(), loadState(), MSDevice_Tripinfo(), notifyMoveInternal(), and saveState().
|
staticprotectedinherited |
Determines whether a vehicle should get a certain device.
[in] | oc | The options container to get the information about assignment from |
[in] | deviceName | The name of the device type |
[in] | v | The vehicle to determine whether it shall be equipped or not |
Definition at line 204 of file MSDevice.h.
References MSDevice::deviceName(), OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getFloat(), MSNet::getInstance(), OptionsCont::getOptions(), MSVehicleControl::getQuota(), OptionsCont::getStringVector(), MSNet::getVehicleControl(), OptionsCont::isSet(), MSDevice::myEquipmentRNG, MSDevice::myExplicitIDs, RandHelper::rand(), and StringUtils::toBool().
Referenced by MSTransportableDevice_FCD::buildDevices(), MSTransportableDevice_Routing::buildDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), and MSDevice::setParameter().
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Reimplemented from MSDevice.
Definition at line 227 of file MSDevice_Tripinfo.cpp.
References MSRoute::end(), SUMOTrafficObject::getChosenSpeedFactor(), SUMOVehicle::getDepartDelay(), SUMOVehicle::getDepartPos(), SUMOVehicle::getDeparture(), OutputDevice::getDeviceByOption(), SUMOVehicle::getDevices(), SUMOTrafficObject::getEdge(), SUMOTrafficObject::getID(), MSVehicleType::getID(), SUMOVehicle::getNumberReroutes(), OptionsCont::getOptions(), SUMOTrafficObject::getPositionOnLane(), SUMOVehicle::getRoute(), SUMOTrafficObject::getVehicleType(), MSGlobals::gLateralResolution, MSGlobals::gUseMesoSim, myArrivalLane, myArrivalPos, myArrivalPosLat, myArrivalSpeed, myArrivalTime, myDepartLane, myDepartPosLat, myDepartSpeed, MSVehicleDevice::myHolder, myMesoTimeLoss, myPendingOutput, myRouteLength, myStoppingTime, myTotalDepartDelay, myTotalDuration, myTotalRouteLength, myTotalTimeLoss, myTotalWaitingTime, myVehicleCount, myWaitingCount, myWaitingTime, NOT_ARRIVED, OutputDevice::openTag(), SIMSTEP, time2string(), toString(), and OutputDevice::writeAttr().
Referenced by deviceName(), and generateOutputForUnfinished().
|
static |
generate output for vehicles which are still in the network
Definition at line 277 of file MSDevice_Tripinfo.cpp.
References OutputDevice::closeTag(), SUMOVehicleParameter::depart, MSTransportableControl::erase(), generateOutput(), MSNet::getCurrentTimeStep(), OutputDevice::getDeviceByOption(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOVehicle::getParameter(), MSNet::getPersonControl(), SUMOVehicle::hasDeparted(), MSNet::hasPersons(), OptionsCont::isSet(), MSTransportableControl::loadedBegin(), MSTransportableControl::loadedEnd(), MSVehicleDevice::myHolder, myPendingOutput, and myWaitingDepartDelay.
Referenced by MSNet::closeSimulation().
|
static |
Definition at line 420 of file MSDevice_Tripinfo.cpp.
References myTotalDepartDelay, myVehicleCount, and STEPS2TIME.
Referenced by GUINet::getAvgDepartDelay(), and printStatistics().
|
static |
Definition at line 391 of file MSDevice_Tripinfo.cpp.
References myTotalDuration, myVehicleCount, and STEPS2TIME.
Referenced by GUINet::getAvgDuration(), GUINet::getAvgTripSpeed(), and printStatistics().
|
static |
Definition at line 459 of file MSDevice_Tripinfo.cpp.
References myRideCount, myTotalRideDuration, and STEPS2TIME.
Referenced by printStatistics().
|
static |
Definition at line 477 of file MSDevice_Tripinfo.cpp.
References myRideCount, and myTotalRideRouteLength.
Referenced by printStatistics().
|
static |
Definition at line 468 of file MSDevice_Tripinfo.cpp.
References myRideCount, myTotalRideWaitingTime, and STEPS2TIME.
Referenced by printStatistics().
|
static |
accessors for GUINet-Parameters
Definition at line 382 of file MSDevice_Tripinfo.cpp.
References myTotalRouteLength, and myVehicleCount.
Referenced by GUINet::getAvgRouteLength(), GUINet::getAvgTripSpeed(), and printStatistics().
|
static |
Definition at line 410 of file MSDevice_Tripinfo.cpp.
References myTotalTimeLoss, myVehicleCount, and STEPS2TIME.
Referenced by GUINet::getAvgTimeLoss(), and printStatistics().
|
static |
Definition at line 400 of file MSDevice_Tripinfo.cpp.
References myTotalWaitingTime, myVehicleCount, and STEPS2TIME.
Referenced by GUINet::getAvgWaitingTime(), and printStatistics().
|
static |
Definition at line 439 of file MSDevice_Tripinfo.cpp.
References myTotalWalkDuration, myWalkCount, and STEPS2TIME.
Referenced by GUINet::getAvgWalkDuration(), and printStatistics().
|
static |
Definition at line 430 of file MSDevice_Tripinfo.cpp.
References myTotalWalkRouteLength, and myWalkCount.
Referenced by GUINet::getAvgWalkRouteLength(), and printStatistics().
|
static |
Definition at line 449 of file MSDevice_Tripinfo.cpp.
References myTotalWalkTimeLoss, myWalkCount, and STEPS2TIME.
Referenced by GUINet::getAvgWalkTimeLoss(), and printStatistics().
|
staticprotectedinherited |
Definition at line 219 of file MSDevice.cpp.
References OptionsCont::getBool(), SUMOTrafficObject::getID(), Parameterised::getParameter(), SUMOVehicle::getParameter(), MSVehicleType::getParameter(), SUMOTrafficObject::getVehicleType(), OptionsCont::isSet(), Parameterised::knowsParameter(), StringUtils::toBool(), and WRITE_WARNING.
Referenced by MSDevice_ToC::getMRMKeepRight(), MSDevice::setParameter(), and MSDevice_ToC::useColorScheme().
|
inlineinherited |
Definition at line 228 of file MSMoveReminder.h.
References MSMoveReminder::myDescription, and MSMoveReminder::removeFromVehicleUpdateValues().
Referenced by MSBaseVehicle::getRNG(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), and MSMeanData_Net::MSLaneMeanDataValues::write().
|
inlinestaticinherited |
Definition at line 91 of file MSDevice.h.
References MSDevice::cleanupAll(), MSDevice::deviceName(), and MSDevice::myEquipmentRNG.
Referenced by NLBuilder::initRandomness(), MSStateHandler::myStartElement(), and MSStateHandler::saveRNGs().
|
staticprotectedinherited |
Definition at line 186 of file MSDevice.cpp.
References OptionsCont::getFloat(), SUMOTrafficObject::getID(), Parameterised::getParameter(), SUMOVehicle::getParameter(), MSVehicleType::getParameter(), SUMOTrafficObject::getVehicleType(), OptionsCont::isSet(), Parameterised::knowsParameter(), StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_ToC::getDynamicMRMProbability(), MSDevice_ToC::getDynamicToCThreshold(), MSDevice_DriverState::getErrorNoiseIntensityCoefficient(), MSDevice_DriverState::getErrorTimeScaleCoefficient(), MSDevice_DriverState::getHeadwayChangePerceptionThreshold(), MSDevice_DriverState::getHeadwayErrorCoefficient(), MSDevice_DriverState::getInitialAwareness(), MSDevice_ToC::getInitialAwareness(), MSDevice_ToC::getLCAbstinence(), MSDevice_DriverState::getMaximalReactionTime(), MSDevice_ToC::getMaxPreparationAccel(), MSDevice_DriverState::getMinAwareness(), MSDevice_ToC::getMRMDecel(), MSDevice_ToC::getOpenGapParams(), MSDevice_ToC::getRecoveryRate(), MSDevice_ToC::getResponseTime(), MSDevice_DriverState::getSpeedDifferenceChangePerceptionThreshold(), MSDevice_DriverState::getSpeedDifferenceErrorCoefficient(), and MSDevice::setParameter().
|
inlineinherited |
Returns the vehicle that holds this device.
Definition at line 75 of file MSVehicleDevice.h.
References MSVehicleDevice::myHolder.
Referenced by MSChargingStation::addChargeValueForOutput().
|
inlineinherited |
Returns the id.
Definition at line 77 of file Named.h.
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Remote::add(), MSPModel_Striping::add(), LaneStoringVisitor::add(), MSVehicleTransfer::add(), PCPolyContainer::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), NBParkingCont::addEdges2Keep(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), RONet::addRouteDef(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), ROVehicle::addStop(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), libsumo::Helper::applySubscriptionFilters(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSRailSignal::DriveWay::buildRoute(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSVehicle::canReverse(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSRailSignal::DriveWay::checkCrossingFlanks(), MSLane::checkForPedestrians(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), ShapeContainer::clearHighlights(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBOwnTLDef::corridorLike(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistricts(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), METriggeredCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), libsumo::Helper::findCloserLane(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBNodeCont::generateNodeClusters(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSRailSignal::getClickableTLLinkID(), GUILane::getColorValue(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBNodeShapeComputer::getDefaultRadius(), NBTrafficLightDefinition::getDescription(), MSLink::getDescription(), GUIPerson::getDestinationEdgeID(), RODFNet::getDetectorEdge(), libsumo::Lane::getEdgeID(), GUIMEVehicle::getEdgeID(), GUIPerson::getEdgeID(), MSMeanData::getEdgeID(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), GUIPerson::getFromEdgeID(), MSCalibrator::getID(), MSRailSignal::LinkInfo::getID(), NBEdge::getID(), libsumo::LaneArea::getLaneID(), libsumo::InductionLoop::getLaneID(), libsumo::Vehicle::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), libsumo::Simulation::getParameter(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), GUILane::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), PolygonDynamics::getPolygonID(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), MSLCM_LC2013::getRoundaboutDistBonus(), libsumo::Vehicle::getRouteID(), MSVehicle::getSafeFollowSpeed(), libsumo::Person::getStage(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSPerson::MSPersonStage_Access::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSNet::getStoppingPlaceID(), MSLane::getSurroundingVehicles(), MSRailSignal::getTLLinkID(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSTransportable::Stage_Driving::getWaitingDescription(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), MSVehicle::haveValidStopEdges(), libsumo::POI::highlight(), MSVehicle::ignoreRed(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicles(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MESegment::jamThresholdForSpeed(), NBNodeShapeComputer::joinSameDirectionEdges(), NBEdgeCont::joinSameNodeConnectingEdges(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), MSSOTLE2Sensors::meanVehiclesSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), MSPModel_Striping::nextBlocking(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSDevice_SSM::notifyMove(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram(), GUIViewTraffic::onGamingClick(), MSLink::opened(), RORouteHandler::openRoute(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Turns(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), NIXMLNodesHandler::processNodeType(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), GNEJunction::removeTLSConnections(), NBNodeCont::rename(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSBaseVehicle::reroute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), RONet::saveAndRemoveRoutesUntil(), ROVehicle::saveAsXML(), MSTransportableDevice_Routing::saveState(), MSDevice_Routing::saveState(), MSDevice::saveState(), MSDevice_Vehroutes::saveState(), saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), MSTransportable::Stage_Trip::setArrived(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), NIImporter_OpenDrive::setNodeSecure(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), MSLane::sortManeuverReservations(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), NGNet::toNB(), MSSOTLTrafficLightLogic::trySwitch(), PolygonDynamics::update(), MSDevice_SSM::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), NBNodeTypeComputer::validateRailCrossings(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), NBParking::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), MSRailSignal::writeBlocks(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), MSXMLRawOut::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMOPolygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 70 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), DijkstraRouter< E, V, BASE >::compute(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLanes2Edges(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), MSCFModel_W99::followSpeed(), MSCFModel_CACC::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), toString(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 83 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by libsumo::LaneArea::getLaneID(), libsumo::InductionLoop::getLaneID(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), libsumo::InductionLoop::getTree(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), notifyLeave(), MSMeanData::MeanDataValues::notifyMove(), libsumo::InductionLoop::storeShape(), and MSMeanData::writeEdge().
|
inlineinherited |
Definition at line 79 of file MSVehicleDevice.h.
References SUMOVehicle::getNumericalID(), and MSVehicleDevice::myHolder.
|
inlinevirtualinherited |
try to retrieve the given parameter from this device. Throw exception for unsupported key
Reimplemented in MSDevice_Routing, MSDevice_ToC, MSDevice_Bluelight, MSDevice_Example, MSDevice_DriverState, MSDevice_Transportable, MSTransportableDevice_Routing, and MSDevice_Battery.
Definition at line 144 of file MSDevice.h.
References MSDevice::deviceName().
|
staticprotectedinherited |
Definition at line 153 of file MSDevice.cpp.
References SUMOTrafficObject::getID(), Parameterised::getParameter(), SUMOVehicle::getParameter(), MSVehicleType::getParameter(), OptionsCont::getString(), SUMOTrafficObject::getVehicleType(), OptionsCont::isSet(), Parameterised::knowsParameter(), and WRITE_WARNING.
Referenced by MSDevice_ToC::getAutomatedType(), MSDevice_ToC::getManualType(), and MSDevice::setParameter().
|
staticprotectedinherited |
Adds common command options that allow to assign devices to vehicles.
[in] | deviceName | The name of the device type |
[in] | optionsTopic | The options topic into which the options shall be added |
Definition at line 126 of file MSDevice.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), and OptionsCont::doRegister().
Referenced by MSDevice_Battery::insertOptions(), MSDevice_Example::insertOptions(), MSTransportableDevice_FCD::insertOptions(), MSDevice_Bluelight::insertOptions(), MSDevice_FCD::insertOptions(), MSDevice_BTreceiver::insertOptions(), MSDevice_BTsender::insertOptions(), MSTransportableDevice_Routing::insertOptions(), MSDevice_DriverState::insertOptions(), MSDevice_Emissions::insertOptions(), MSDevice_Routing::insertOptions(), MSDevice_ToC::insertOptions(), MSDevice_SSM::insertOptions(), and MSDevice::setParameter().
|
staticinherited |
Inserts options for building devices.
Definition at line 67 of file MSDevice.cpp.
References MSDevice_Battery::insertOptions(), MSDevice_Bluelight::insertOptions(), MSTransportableDevice_FCD::insertOptions(), MSDevice_Example::insertOptions(), MSDevice_FCD::insertOptions(), MSDevice_BTsender::insertOptions(), MSDevice_BTreceiver::insertOptions(), MSTransportableDevice_Routing::insertOptions(), MSDevice_DriverState::insertOptions(), MSDevice_Emissions::insertOptions(), MSDevice_Routing::insertOptions(), MSDevice_ToC::insertOptions(), and MSDevice_SSM::insertOptions().
Referenced by MSFrame::fillOptions().
|
virtual |
Loads the state of the device from the given description.
[in] | attrs | XML attributes describing the current state |
Reimplemented from MSDevice.
Definition at line 503 of file MSDevice_Tripinfo.cpp.
References SUMOSAXAttributes::getString(), MSGlobals::gUseMesoSim, myDepartLane, myDepartPosLat, myDepartSpeed, myRouteLength, and SUMO_ATTR_STATE.
Referenced by deviceName().
|
virtual |
Saves departure info on insertion.
[in] | veh | The entering vehicle. |
[in] | reason | how the vehicle enters the lane |
Reimplemented from MSMoveReminder.
Definition at line 178 of file MSDevice_Tripinfo.cpp.
References MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), MSMoveReminder::getLane(), SUMOTrafficObject::getPositionOnLane(), SUMOTrafficObject::getSpeed(), MSGlobals::gUseMesoSim, myDepartLane, myDepartPosLat, myDepartSpeed, myParkingStarted, myRouteLength, myStoppingTime, MSMoveReminder::NOTIFICATION_DEPARTED, and MSMoveReminder::NOTIFICATION_PARKING.
|
virtual |
Saves arrival info.
[in] | veh | The leaving vehicle. |
[in] | lastPos | Position on the lane when leaving. |
[in] | isArrival | whether the vehicle arrived at its destination |
[in] | isLaneChange | whether the vehicle changed from the lane |
Reimplemented from MSMoveReminder.
Definition at line 196 of file MSDevice_Tripinfo.cpp.
References SUMOVehicle::getArrivalPos(), MSNet::getCurrentTimeStep(), SUMOTrafficObject::getEdge(), Named::getID(), MSNet::getInstance(), MSMoveReminder::getLane(), MSLane::getLength(), MSEdge::getLength(), SUMOTrafficObject::getPositionOnLane(), SUMOTrafficObject::getSpeed(), MSGlobals::gUseMesoSim, myArrivalLane, myArrivalPos, myArrivalPosLat, myArrivalSpeed, myArrivalTime, MSVehicleDevice::myHolder, myParkingStarted, myRouteLength, MSMoveReminder::NOTIFICATION_ARRIVED, MSMoveReminder::NOTIFICATION_JUNCTION, MSMoveReminder::NOTIFICATION_PARKING, MSMoveReminder::NOTIFICATION_TELEPORT, and MSMoveReminder::NOTIFICATION_VAPORIZED.
|
virtual |
Checks for waiting steps when the vehicle moves.
[in] | veh | Vehicle that asks this reminder. |
[in] | oldPos | Position before move. |
[in] | newPos | Position after move with newSpeed. |
[in] | newSpeed | Moving speed. |
Reimplemented from MSMoveReminder.
Definition at line 138 of file MSDevice_Tripinfo.cpp.
References DELTA_T, SUMOTrafficObject::isStopped(), myAmWaiting, myStoppingTime, myWaitingCount, myWaitingTime, and SUMO_const_haltingSpeed.
|
protectedvirtual |
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
Reimplemented from MSMoveReminder.
Definition at line 156 of file MSDevice_Tripinfo.cpp.
References MEVehicle::getCurrentStoppingTimeSeconds(), SUMOTrafficObject::getEdge(), MSEdge::getVehicleMaxSpeed(), SUMOTrafficObject::getWaitingTime(), myMesoTimeLoss, myStoppingTime, myWaitingTime, and TIME2STEPS.
Referenced by deviceName().
|
private |
Invalidated assignment operator.
|
static |
get statistics for printing to stdout
Definition at line 348 of file MSDevice_Tripinfo.cpp.
References getAvgDepartDelay(), getAvgDuration(), getAvgRideDuration(), getAvgRideRouteLength(), getAvgRideWaitingTime(), getAvgRouteLength(), getAvgTimeLoss(), getAvgWaitingTime(), getAvgWalkDuration(), getAvgWalkRouteLength(), getAvgWalkTimeLoss(), gPrecision, myRideAbortCount, myRideBikeCount, myRideBusCount, myRideCount, myRideRailCount, myWaitingDepartDelay, myWalkCount, and STEPS2TIME.
Referenced by MSNet::generateStatistics().
|
protectedinherited |
Definition at line 86 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues.
Referenced by MSMoveReminder::getDescription(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), and MSMoveReminder::updateDetector().
|
virtual |
Saves the state of the device.
[in] | out | The OutputDevice to write the information into |
Reimplemented from MSDevice.
Definition at line 487 of file MSDevice_Tripinfo.cpp.
References OutputDevice::closeTag(), Named::getID(), MSGlobals::gUseMesoSim, myDepartLane, myDepartPosLat, myDepartSpeed, myRouteLength, OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_STATE, SUMO_TAG_DEVICE, toString(), and OutputDevice::writeAttr().
Referenced by deviceName().
|
inlineinherited |
Definition at line 224 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSMeanData::init(), MEInductLoop::MEInductLoop(), METriggeredCalibrator::METriggeredCalibrator(), and MSCalibrator::MSCalibrator().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 85 of file Named.h.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), NBEdgeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inlinevirtualinherited |
try to set the given parameter for this device. Throw exception for unsupported key
Reimplemented in MSDevice_Routing, MSDevice_ToC, MSDevice_Bluelight, MSDevice_Example, MSDevice_DriverState, MSTransportableDevice_Routing, and MSDevice_Battery.
Definition at line 149 of file MSDevice.h.
References MSDevice::deviceName(), MSDevice::equippedByDefaultAssignmentOptions(), MSDevice::getBoolParam(), MSDevice::getFloatParam(), MSDevice::getStringParam(), MSDevice::insertDefaultAssignmentOptions(), and UNUSED_PARAMETER.
|
inherited |
Definition at line 44 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues, MSMoveReminder::notifyMoveInternal(), MSMoveReminder::removeFromVehicleUpdateValues(), and STEPS2TIME.
Referenced by MSMoveReminder::notifyLeave(), and MEVehicle::updateDetectorForWriting().
|
private |
Whether the vehicle is currently waiting.
Definition at line 197 of file MSDevice_Tripinfo.h.
Referenced by notifyMove().
|
private |
The lane the vehicle arrived at.
Definition at line 212 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyLeave().
|
private |
The position on the lane the vehicle arrived at.
Definition at line 215 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyLeave().
|
private |
The lateral position on the lane the vehicle arrived at.
Definition at line 218 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyLeave().
|
private |
The speed when arriving.
Definition at line 221 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyLeave().
|
private |
The vehicle's arrival time.
Definition at line 209 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyLeave().
|
private |
The lane the vehicle departed at.
Definition at line 185 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), loadState(), notifyEnter(), and saveState().
|
private |
The lateral depart position.
Definition at line 191 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), loadState(), notifyEnter(), and saveState().
|
private |
The speed on departure.
Definition at line 188 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), loadState(), notifyEnter(), and saveState().
|
protectedinherited |
a description of this moveReminder
Definition at line 240 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().
|
protectedinherited |
The vehicle that stores the device.
Definition at line 85 of file MSVehicleDevice.h.
Referenced by MSDevice_Vehroutes::addRoute(), MSDevice_Transportable::addTransportable(), MSDevice_ToC::awarenessRecoveryStep(), MSDevice_ToC::checkDynamicToC(), MSDevice_ToC::deactivateDeliberateLCs(), MSDevice_SSM::findFoeConflictLane(), generateOutput(), generateOutputForUnfinished(), MSVehicleDevice::getHolder(), MSVehicleDevice::getNumericalID(), MSDevice_ToC::getParameter(), MSDevice_Routing::getParameter(), MSDevice_ToC::MRMExecutionStep(), MSDevice_Vehroutes::notifyEnter(), notifyLeave(), MSDevice_Routing::preInsertionReroute(), MSDevice_Transportable::removeTransportable(), MSDevice_ToC::requestToC(), MSDevice_Routing::reroute(), MSDevice_ToC::resetDeliberateLCs(), MSDevice_Routing::setParameter(), MSDevice_ToC::setVehicleColor(), MSDevice_ToC::switchHolderType(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSDevice_SSM::updateAndWriteOutput(), MSDevice_Vehroutes::writeOutput(), MSDevice_ToC::writeOutput(), MSDevice_Vehroutes::writeXMLRoute(), MSDevice_Transportable::~MSDevice_Transportable(), and MSDevice_Vehroutes::~MSDevice_Vehroutes().
|
protectedinherited |
The name of the object.
Definition at line 134 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPoly::getAttribute(), GNEPOI::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), NBEdge::init(), MSLane::isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 238 of file MSMoveReminder.h.
Referenced by MSE2Collector::getEstimatedCurrentVehicleNumber(), MSE2Collector::getEstimateQueueLength(), MSMoveReminder::getLane(), MSMoveReminder::MSMoveReminder(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSInductLoop::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSE2Collector::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), and MSMeanData::MeanDataValueTracker::reset().
|
private |
The time loss when compared to the desired and allowed speed.
Definition at line 224 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyMoveInternal().
|
private |
The time when parking started.
Definition at line 206 of file MSDevice_Tripinfo.h.
Referenced by notifyEnter(), and notifyLeave().
|
staticprivate |
devices which may still need to produce output
Definition at line 230 of file MSDevice_Tripinfo.h.
Referenced by buildVehicleDevices(), generateOutput(), generateOutputForUnfinished(), and ~MSDevice_Tripinfo().
|
staticprivate |
Definition at line 250 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and printStatistics().
|
staticprivate |
Definition at line 249 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and printStatistics().
|
staticprivate |
Definition at line 247 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and printStatistics().
|
staticprivate |
Definition at line 246 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), getAvgRideDuration(), getAvgRideRouteLength(), getAvgRideWaitingTime(), and printStatistics().
|
staticprivate |
Definition at line 248 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and printStatistics().
|
private |
The route length.
Definition at line 227 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), loadState(), notifyEnter(), notifyLeave(), and saveState().
|
private |
The overall intentional stopping time.
Definition at line 203 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), notifyEnter(), notifyMove(), and notifyMoveInternal().
|
staticprivate |
Definition at line 238 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), and getAvgDepartDelay().
|
staticprivate |
Definition at line 235 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), and getAvgDuration().
|
staticprivate |
Definition at line 253 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and getAvgRideDuration().
|
staticprivate |
Definition at line 252 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and getAvgRideRouteLength().
|
staticprivate |
Definition at line 251 of file MSDevice_Tripinfo.h.
Referenced by addRideData(), cleanup(), and getAvgRideWaitingTime().
|
staticprivate |
Definition at line 234 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), and getAvgRouteLength().
|
staticprivate |
Definition at line 237 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), and getAvgTimeLoss().
|
staticprivate |
Definition at line 236 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), and getAvgWaitingTime().
|
staticprivate |
Definition at line 243 of file MSDevice_Tripinfo.h.
Referenced by addPedestrianData(), cleanup(), and getAvgWalkDuration().
|
staticprivate |
Definition at line 242 of file MSDevice_Tripinfo.h.
Referenced by addPedestrianData(), cleanup(), and getAvgWalkRouteLength().
|
staticprivate |
Definition at line 244 of file MSDevice_Tripinfo.h.
Referenced by addPedestrianData(), cleanup(), and getAvgWalkTimeLoss().
|
staticprivate |
global tripinfo statistics
Definition at line 233 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutput(), getAvgDepartDelay(), getAvgDuration(), getAvgRouteLength(), getAvgTimeLoss(), and getAvgWaitingTime().
|
private |
The overall number of unintended stops.
Definition at line 200 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), and notifyMove().
|
staticprivate |
Definition at line 239 of file MSDevice_Tripinfo.h.
Referenced by cleanup(), generateOutputForUnfinished(), and printStatistics().
|
private |
The overall waiting time.
Definition at line 194 of file MSDevice_Tripinfo.h.
Referenced by generateOutput(), notifyMove(), and notifyMoveInternal().
|
staticprivate |
Definition at line 241 of file MSDevice_Tripinfo.h.
Referenced by addPedestrianData(), cleanup(), getAvgWalkDuration(), getAvgWalkRouteLength(), getAvgWalkTimeLoss(), and printStatistics().