SUMO - Simulation of Urban MObility
MSDevice_ToC Class Reference

The ToC Device controls transition of control between automated and manual driving. More...

#include <MSDevice_ToC.h>

Inheritance diagram for MSDevice_ToC:
Inheritance graph
Collaboration diagram for MSDevice_ToC:
Collaboration graph

Data Structures

struct  OpenGapParams
 

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...
 
SUMOTime awarenessRecoveryStep (SUMOTime t)
 Continue the awareness recovery for one time step. More...
 
const std::string deviceName () const
 return the name for this type of device More...
 
SUMOTime ensureDriverStateExistence (SUMOTime)
 Ensure existence of DriverState for equipped vehicles. More...
 
virtual void generateOutput () const
 Called on writing tripinfo output. More...
 
bool generatesOutput ()
 Whether this device requested to write output. More...
 
const std::string & getDescription () const
 
SUMOVehiclegetHolder () const
 Returns the vehicle that holds this device. More...
 
const std::string & getID () const
 Returns the id. More...
 
const MSLanegetLane () const
 Returns the lane the reminder works on. More...
 
SUMOVehicle::NumericalID getNumericalID () const
 
std::string getParameter (const std::string &key) const
 try to retrieve the given parameter from this device. Throw exception for unsupported key More...
 
virtual void loadState (const SUMOSAXAttributes &attrs)
 Loads the state of the device from the given description. More...
 
SUMOTime MRMExecutionStep (SUMOTime t)
 Continue the MRM for one time step. More...
 
virtual void notifyMoveInternal (const SUMOVehicle &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double meanLengthOnLane)
 Internal notification about the vehicle moves. More...
 
virtual 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...
 
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...
 
SUMOTime ToCPreparationStep (SUMOTime t)
 Continue the ToC preparation for one time step. More...
 
SUMOTime triggerDownwardToC (SUMOTime t)
 Trigger execution of a ToC X–>MANUAL ("downwards") More...
 
SUMOTime triggerMRM (SUMOTime t)
 Trigger execution of an MRM. More...
 
SUMOTime triggerUpwardToC (SUMOTime t)
 Trigger execution of a ToC X–>AUTOMATED ("upwards") More...
 
void writeOutput ()
 Write output to file given by option device.toc.file. More...
 
 ~MSDevice_ToC ()
 Destructor. More...
 
Interface methods, to be derived by subclasses
virtual bool notifyEnter (SUMOVehicle &veh, Notification reason, const MSLane *enteredLane)
 Checks whether the reminder is activated by a vehicle entering the lane. More...
 
virtual bool notifyMove (SUMOVehicle &veh, double oldPos, double newPos, double newSpeed)
 Checks whether the reminder still has to be notified about the vehicle moves. More...
 
virtual bool notifyLeave (SUMOVehicle &veh, double lastPos, Notification reason, const MSLane *enteredLane=0)
 Called if the vehicle leaves the reminder's lane. More...
 
void updateDetector (SUMOVehicle &veh, double entryPos, double leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp)
 

Static Public Member Functions

static void buildPersonDevices (MSTransportable &p, std::vector< MSPersonDevice *> &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 ()
 Closes root tags of output files. More...
 
static void cleanupAll ()
 perform cleanup for all devices More...
 
static bool equippedByParameter (const MSTransportable *t, const std::string &deviceName, bool outputOptionSet)
 Determines whether a transportable should get a certain device. More...
 
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 const std::set< MSDevice_ToC * > & getInstances ()
 returns all currently existing ToC devices More...
 
static void insertOptions (OptionsCont &oc)
 Inserts MSDevice_ToC-options. More...
 

Protected Member Functions

void removeFromVehicleUpdateValues (SUMOVehicle &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...
 
SUMOVehiclemyHolder
 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 Types

enum  ToCState {
  UNDEFINED = 0, MANUAL = 1, AUTOMATED = 2, PREPARING_TOC = 3,
  MRM = 4, RECOVERING = 5
}
 Enum describing the different regimes for the device,. More...
 

Private Member Functions

void deactivateDeliberateLCs ()
 Resets the holder's LC mode to the operational LC-mode of the ToC Device (. More...
 
void descheduleMRM ()
 Break MRM Process or remove MRM-Trigger command from the event-queue. More...
 
void descheduleRecovery ()
 Remove ongoing awareness recovery process from the event-queue. More...
 
void descheduleToC ()
 Remove scheduled ToC-Trigger command from the event-queue. More...
 
void descheduleToCPreparation ()
 Remove ongoing ToC-Preparation process from the event-queue. More...
 
void initColorScheme ()
 Initialize vehicle colors for different states. More...
 
bool isAutomated ()
 Whether the current operation mode is automated. More...
 
bool isManuallyDriven ()
 Whether the current operation mode is manual. More...
 
 MSDevice_ToC (SUMOVehicle &holder, const std::string &id, const std::string &outputFilename, std::string manualType, std::string automatedType, SUMOTime responseTime, double recoveryRate, double lcAbstinence, double initialAwareness, double mrmDecel, bool useColorScheme, OpenGapParams ogp)
 Constructor. More...
 
 MSDevice_ToC (const MSDevice_ToC &)
 Invalidated copy constructor. More...
 
MSDevice_ToCoperator= (const MSDevice_ToC &)
 Invalidated assignment operator. More...
 
void requestMRM ()
 Request an MRM to be initiated immediately. No downward ToC will be scheduled. More...
 
void requestToC (SUMOTime timeTillMRM)
 Request a ToC. If the device is in AUTOMATED or MRM state, a driver response time is sampled and the ToC is scheduled. If the response is larger than timeTillMRM, an MRM is scheduled as well. If the device is in MANUAL or UNDEFINED state, it switches to AUTOMATED. The request is ignored if the state is already PREPARING_TOC. More...
 
void resetDeliberateLCs ()
 Resets the holder's LC mode to the last differing to LCModeMRM. More...
 
void setAwareness (double value)
 Set the awareness to the given value. More...
 
void setState (ToCState state)
 Set the ToC device's state. More...
 
void setVehicleColor ()
 
void switchHolderType (const std::string &targetTypeID)
 Switch the device holder's vehicle type. More...
 

Static Private Member Functions

Helpers for parameter parsing
static std::string getManualType (const SUMOVehicle &v, const OptionsCont &oc)
 
static std::string getAutomatedType (const SUMOVehicle &v, const OptionsCont &oc)
 
static double getResponseTime (const SUMOVehicle &v, const OptionsCont &oc)
 
static double getRecoveryRate (const SUMOVehicle &v, const OptionsCont &oc)
 
static double getLCAbstinence (const SUMOVehicle &v, const OptionsCont &oc)
 
static double getInitialAwareness (const SUMOVehicle &v, const OptionsCont &oc)
 
static double getMRMDecel (const SUMOVehicle &v, const OptionsCont &oc)
 
static bool useColorScheme (const SUMOVehicle &v, const OptionsCont &oc)
 
static std::string getOutputFilename (const SUMOVehicle &v, const OptionsCont &oc)
 
static OpenGapParams getOpenGapParams (const SUMOVehicle &v, const OptionsCont &oc)
 
static ToCState _2ToCState (const std::string &)
 
static std::string _2string (ToCState state)
 

Private Attributes

std::queue< std::pair< SUMOTime, std::string > > myEvents
 Storage for events to be written to the output. More...
 
MSVehiclemyHolderMS
 The holder vehicle casted to MSVehicle*. More...
 
OpenGapParams myOpenGapParams
 Parameters for the openGap mechanism applied during ToC preparation phase. More...
 
OutputDevicemyOutputFile
 The file the devices output goes to. More...
 
int myPreviousLCMode
 LC mode overridden during MRM, stored for restoration. More...
 
private state members of the ToC device
std::string myManualTypeID
 vehicle type ID for manual driving More...
 
std::string myAutomatedTypeID
 vehicle type ID for automated driving More...
 
SUMOTime myResponseTime
 Average response time needed by the driver to take back control. More...
 
double myRecoveryRate
 Recovery rate for the driver's awareness after a ToC. More...
 
double myLCAbstinence
 Level of the awareness below which no lane-changes are performed. More...
 
double myInitialAwareness
 Average awareness the driver has initially after a ToC. More...
 
double myMRMDecel
 Deceleration rate applied during MRM. More...
 
double myCurrentAwareness
 Current awareness-level of the driver in [0,1]. More...
 
std::map< ToCState, RGBColormyColorScheme
 Coloring scheme,. More...
 
bool myUseColorScheme
 Whether a coloring scheme shall by applied to indicate the different toc stages,. More...
 
ToCState myState
 Current state of the device. More...
 
Commands sent to the EventControl (used for cleanup)
Note
Must be removed in destructor.
WrappingCommand< MSDevice_ToC > * myTriggerMRMCommand
 
WrappingCommand< MSDevice_ToC > * myTriggerToCCommand
 
WrappingCommand< MSDevice_ToC > * myRecoverAwarenessCommand
 
WrappingCommand< MSDevice_ToC > * myExecuteMRMCommand
 
WrappingCommand< MSDevice_ToC > * myPrepareToCCommand
 

Static Private Attributes

static std::set< std::string > createdOutputFiles
 
static std::set< MSDevice_ToC * > instances = std::set<MSDevice_ToC*>()
 
static int LCModeMRM = 768
 LC mode operational during an MRM. More...
 

Detailed Description

The ToC Device controls transition of control between automated and manual driving.

See also
MSDevice

Definition at line 53 of file MSDevice_ToC.h.

Member Enumeration Documentation

◆ Notification

Definition of a vehicle state.

Enumerator
NOTIFICATION_DEPARTED 

The vehicle has departed (was inserted into the network)

NOTIFICATION_JUNCTION 

The vehicle arrived at a junction.

NOTIFICATION_SEGMENT 

The vehicle changes the segment (meso only)

NOTIFICATION_LANE_CHANGE 

The vehicle changes lanes (micro only)

NOTIFICATION_TELEPORT 

The vehicle is being teleported.

NOTIFICATION_PARKING 

The vehicle starts or ends parking.

NOTIFICATION_ARRIVED 

The vehicle arrived at its destination (is deleted)

NOTIFICATION_VAPORIZED 

The vehicle got vaporized.

NOTIFICATION_TELEPORT_ARRIVED 

The vehicle was teleported out of the net.

NOTIFICATION_PARKING_REROUTE 

The vehicle needs another parking area.

Definition at line 89 of file MSMoveReminder.h.

◆ ToCState

enum MSDevice_ToC::ToCState
private

Enum describing the different regimes for the device,.

See also
myState Possible transitions: AUTOMATED -> PREPARING_TOC PREPARING_TOC -> PERFORMING_MRM PREPARING_TOC -> MANUAL PERFORMING_MRM -> MANUAL MANUAL -> AUTOMATED
Enumerator
UNDEFINED 
MANUAL 
AUTOMATED 
PREPARING_TOC 
MRM 
RECOVERING 

Definition at line 109 of file MSDevice_ToC.h.

Constructor & Destructor Documentation

◆ ~MSDevice_ToC()

◆ MSDevice_ToC() [1/2]

MSDevice_ToC::MSDevice_ToC ( SUMOVehicle holder,
const std::string &  id,
const std::string &  outputFilename,
std::string  manualType,
std::string  automatedType,
SUMOTime  responseTime,
double  recoveryRate,
double  lcAbstinence,
double  initialAwareness,
double  mrmDecel,
bool  useColorScheme,
OpenGapParams  ogp 
)
private

Constructor.

Parameters
[in]holderThe vehicle that holds this device
[in]idThe ID of the device
[in]fileThe file to write the device's output to
[in]manualTypevType that models manual driving
[in]automatedTypevType that models automated driving
[in]responseTimetime lapse until vType switch after request was received
[in]recoveryRaterate at which the awareness increases after the takeover
[in]lcAbstinenceawareness level below which no lane changes are taken out
[in]initialAwarenessvalue to which the awareness is set after takeover
[in]mrmDecelconstant deceleration rate assumed to be applied during an MRM
[in]useColorSchemewhether the color of the vehicle should be changed according to its current ToC-state
[in]ogpparameters for the openGap mechanism applied during ToC preparation phase

Definition at line 258 of file MSDevice_ToC.cpp.

References _2string(), MSDevice_ToC::OpenGapParams::active, MSEventControl::addEvent(), MSDevice_ToC::OpenGapParams::changeRate, createdOutputFiles, ensureDriverStateExistence(), MSNet::getBeginOfTimestepEvents(), OutputDevice::getDevice(), SUMOVehicle::getID(), MSVehicleType::getID(), MSNet::getInstance(), MSRouteHandler::getParsingRNG(), MSNet::getVehicleControl(), SUMOVehicle::getVehicleType(), MSVehicleControl::getVType(), MSVehicleControl::hasVTypeDistribution(), initColorScheme(), instances, MSDevice_ToC::OpenGapParams::maxDecel, myAutomatedTypeID, myCurrentAwareness, myHolderMS, myInitialAwareness, myManualTypeID, myMRMDecel, myOpenGapParams, myOutputFile, myRecoveryRate, myResponseTime, myState, MSDevice_ToC::OpenGapParams::newSpaceHeadway, MSDevice_ToC::OpenGapParams::newTimeHeadway, OutputDevice::openTag(), and SIMSTEP.

Referenced by buildVehicleDevices(), and generatesOutput().

◆ MSDevice_ToC() [2/2]

MSDevice_ToC::MSDevice_ToC ( const MSDevice_ToC )
private

Invalidated copy constructor.

Member Function Documentation

◆ _2string()

std::string MSDevice_ToC::_2string ( ToCState  state)
staticprivate

Definition at line 828 of file MSDevice_ToC.cpp.

References AUTOMATED, MANUAL, MRM, PREPARING_TOC, RECOVERING, toString(), UNDEFINED, and WRITE_WARNING.

Referenced by getParameter(), and MSDevice_ToC().

◆ _2ToCState()

MSDevice_ToC::ToCState MSDevice_ToC::_2ToCState ( const std::string &  str)
staticprivate

Definition at line 807 of file MSDevice_ToC.cpp.

References AUTOMATED, MANUAL, MRM, PREPARING_TOC, RECOVERING, UNDEFINED, and WRITE_WARNING.

◆ addTo()

void Named::addTo ( const StoringVisitor cont) const
inlineinherited

Adds this object to the given container.

Parameters

Definition at line 123 of file Named.h.

References Named::StoringVisitor::add().

◆ awarenessRecoveryStep()

SUMOTime MSDevice_ToC::awarenessRecoveryStep ( SUMOTime  t)

◆ buildPersonDevices()

void MSDevice::buildPersonDevices ( MSTransportable p,
std::vector< MSPersonDevice *> &  into 
)
staticinherited

Build devices for the given person, if needed.

Parameters
[in]pThe person for which a device may be built

Definition at line 108 of file MSDevice.cpp.

References MSPersonDevice_Routing::buildDevices().

◆ buildVehicleDevices()

void MSDevice_ToC::buildVehicleDevices ( SUMOVehicle v,
std::vector< MSVehicleDevice *> &  into 
)
static

Build devices for the given vehicle, if needed.

The options are read and evaluated whether a ToC-device shall be built for the given vehicle.

The built device is stored in the given vector.

Parameters
[in]vThe vehicle for which a device may be built

Definition at line 125 of file MSDevice_ToC.cpp.

References MSDevice::equippedByDefaultAssignmentOptions(), getAutomatedType(), SUMOVehicle::getID(), getInitialAwareness(), getLCAbstinence(), getManualType(), getMRMDecel(), getOpenGapParams(), OptionsCont::getOptions(), getOutputFilename(), getRecoveryRate(), getResponseTime(), MSDevice_ToC(), TIME2STEPS, and useColorScheme().

Referenced by MSDevice::buildVehicleDevices(), and MSDevice_ToC::OpenGapParams::OpenGapParams().

◆ checkOptions()

bool MSDevice::checkOptions ( OptionsCont oc)
staticinherited

check device-specific options

Parameters

Definition at line 82 of file MSDevice.cpp.

References MSDevice_Routing::checkOptions().

Referenced by MSFrame::checkOptions().

◆ cleanup()

void MSDevice_ToC::cleanup ( )
static

Closes root tags of output files.

Definition at line 865 of file MSDevice_ToC.cpp.

References OutputDevice::closeTag(), createdOutputFiles, fn, and OutputDevice::getDevice().

Referenced by MSNet::clearAll(), and getInstances().

◆ cleanupAll()

void MSDevice::cleanupAll ( )
staticinherited

perform cleanup for all devices

Definition at line 114 of file MSDevice.cpp.

References MSDevice_FCD::cleanup(), MSRoutingEngine::cleanup(), and MSDevice_Tripinfo::cleanup().

Referenced by MSNet::clearAll(), and MSDevice::getEquipmentRNG().

◆ deactivateDeliberateLCs()

void MSDevice_ToC::deactivateDeliberateLCs ( )
private

◆ descheduleMRM()

void MSDevice_ToC::descheduleMRM ( )
private

Break MRM Process or remove MRM-Trigger command from the event-queue.

Definition at line 597 of file MSDevice_ToC.cpp.

References WrappingCommand< T >::deschedule(), myExecuteMRMCommand, myTriggerMRMCommand, and resetDeliberateLCs().

Referenced by generatesOutput(), triggerDownwardToC(), triggerMRM(), and triggerUpwardToC().

◆ descheduleRecovery()

void MSDevice_ToC::descheduleRecovery ( )
private

Remove ongoing awareness recovery process from the event-queue.

Definition at line 630 of file MSDevice_ToC.cpp.

References WrappingCommand< T >::deschedule(), and myRecoverAwarenessCommand.

Referenced by generatesOutput(), requestMRM(), and triggerUpwardToC().

◆ descheduleToC()

void MSDevice_ToC::descheduleToC ( )
private

Remove scheduled ToC-Trigger command from the event-queue.

Definition at line 613 of file MSDevice_ToC.cpp.

References WrappingCommand< T >::deschedule(), and myTriggerToCCommand.

Referenced by generatesOutput(), requestMRM(), triggerDownwardToC(), and triggerUpwardToC().

◆ descheduleToCPreparation()

void MSDevice_ToC::descheduleToCPreparation ( )
private

Remove ongoing ToC-Preparation process from the event-queue.

Definition at line 621 of file MSDevice_ToC.cpp.

References WrappingCommand< T >::deschedule(), and myPrepareToCCommand.

Referenced by generatesOutput(), requestMRM(), ToCPreparationStep(), triggerDownwardToC(), and triggerUpwardToC().

◆ deviceName()

const std::string MSDevice_ToC::deviceName ( ) const
inlinevirtual

◆ ensureDriverStateExistence()

SUMOTime MSDevice_ToC::ensureDriverStateExistence ( SUMOTime  )

Ensure existence of DriverState for equipped vehicles.

Definition at line 369 of file MSDevice_ToC.cpp.

References MSVehicle::createDriverState(), MSVehicle::getDriverState(), SUMOVehicle::getID(), MSBaseVehicle::hasDevice(), MSVehicleDevice::myHolder, myHolderMS, and SIMTIME.

Referenced by deviceName(), and MSDevice_ToC().

◆ equippedByDefaultAssignmentOptions()

template<class DEVICEHOLDER >
bool MSDevice::equippedByDefaultAssignmentOptions ( const OptionsCont oc,
const std::string &  deviceName,
DEVICEHOLDER &  v,
bool  outputOptionSet,
const bool  isPerson = false 
)
staticprotectedinherited

◆ equippedByParameter()

bool MSDevice::equippedByParameter ( const MSTransportable t,
const std::string &  deviceName,
bool  outputOptionSet 
)
staticinherited

◆ generateOutput()

virtual void MSDevice::generateOutput ( ) const
inlinevirtualinherited

Called on writing tripinfo output.

The device may write some statistics into the tripinfo output. It is assumed that the written information is a valid xml-snipplet, which will be embedded within the vehicle's information.

The device should use the openTag / closeTag methods of the OutputDevice for correct indentation.

Exceptions
IOErrornot yet implemented

Reimplemented in MSDevice_SSM, MSDevice_Tripinfo, MSDevice_Example, MSDevice_Bluelight, MSDevice_Vehroutes, and MSDevice_Emissions.

Definition at line 129 of file MSDevice.h.

References MSDevice::loadState(), and MSDevice::saveState().

◆ generatesOutput()

◆ getAutomatedType()

std::string MSDevice_ToC::getAutomatedType ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 176 of file MSDevice_ToC.cpp.

References DEFAULT_AUTOMATED_TYPE, and MSDevice::getStringParam().

Referenced by buildVehicleDevices().

◆ getBoolParam()

bool MSDevice::getBoolParam ( const SUMOVehicle v,
const OptionsCont oc,
std::string  paramName,
bool  deflt,
bool  required 
)
staticprotectedinherited

◆ getDescription()

◆ getEquipmentRNG()

static std::mt19937* MSDevice::getEquipmentRNG ( )
inlinestaticinherited

◆ getFloatParam()

◆ getHolder()

SUMOVehicle& MSVehicleDevice::getHolder ( ) const
inlineinherited

Returns the vehicle that holds this device.

Returns
The vehicle that holds this device

Definition at line 75 of file MSVehicleDevice.h.

References MSVehicleDevice::myHolder.

Referenced by MSChargingStation::addChargeValueForOutput().

◆ getID()

const std::string& Named::getID ( ) const
inlineinherited

Returns the id.

Returns
The stored id

Definition at line 78 of file Named.h.

Referenced by NIImporter_SUMO::_loadNetwork(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Remote::add(), LaneStoringVisitor::add(), MSPModel_Striping::add(), MSVehicleTransfer::add(), PCPolyContainer::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), NBParkingCont::addEdges2Keep(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), ROVehicle::addStop(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), NBRailwayTopologyAnalyzer::allBroken(), NBEdge::append(), NBEdgeCont::appendRailwayTurnarounds(), libsumo::Helper::applySubscriptionFilters(), NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), 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(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSLane::checkForPedestrians(), NBEdge::checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), NBEdgeCont::checkOverlap(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBEdge::computeAngle(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), NBEdge::debugPrintConnections(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBRailwayTopologyAnalyzer::extendBidiEdges(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), NBNodeCont::feasibleCluster(), libsumo::Helper::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBRampsComputer::fulfillsRampConstraints(), NBPTStopCont::generateBidiStops(), NBNodeCont::generateNodeClusters(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), GUILane::getColorValue(), NBEdge::getConnection(), NBEdge::getConnectionRef(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBEdge::getCrossingAngle(), NBNodeShapeComputer::getDefaultRadius(), NBTrafficLightDefinition::getDescription(), RODFNet::getDetectorEdge(), libsumo::Lane::getEdgeID(), MSMeanData::getEdgeID(), NBEdge::getFirstNonPedestrianLane(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), 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(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), GUILane::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBPTStopCont::getReverseStop(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), libsumo::Vehicle::getRouteID(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Access::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSNet::getStoppingPlaceID(), MSLane::getSurroundingVehicles(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSTransportable::Stage_Driving::getWaitingDescription(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSVehicle::ignoreRed(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NBEdge::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), 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(), NIImporter_ArcView::load(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), 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(), NIXMLConnectionsHandler::myStartElement(), NIXMLEdgesHandler::myStartElement(), MSCalibrator::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSPModel_Striping::nextBlocking(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Example::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::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(), MSDevice_Tripinfo::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSDevice_SSM::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), MSLink::opened(), RORouteHandler::openRoute(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NBRequest::oppositeLeftTurnConflict(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NLTriggerBuilder::parseAndBuildCalibrator(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkAproaches(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NBEdgeCont::processSplits(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdgeCont::recheckLanes(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), MSLink::removeApproaching(), GNEJunction::removeConnectionsFrom(), NBNodeCont::removeIsolatedRoads(), MSVehicle::removePassedDriveItems(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), GNEJunction::removeTLSConnections(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveGNEConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), NBPTLineCont::reviseStops(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), RONet::saveAndRemoveRoutesUntil(), MSPersonDevice_Routing::saveState(), MSDevice_Routing::saveState(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), MSTransportable::Stage_Trip::setArrived(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), NBRequest::setBlocking(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NBEdge::setControllingTLInformation(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBEdge::setStopOffsets(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBNode::sortEdges(), MSLane::sortManeuverReservations(), NBEdgeCont::splitAt(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), NGNet::toNB(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), 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(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_OpenDrive::writeNormalEdge(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), 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().

◆ getIDSecure()

◆ getInitialAwareness()

double MSDevice_ToC::getInitialAwareness ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 196 of file MSDevice_ToC.cpp.

References DEFAULT_INITIAL_AWARENESS, and MSDevice::getFloatParam().

Referenced by buildVehicleDevices().

◆ getInstances()

static const std::set<MSDevice_ToC*>& MSDevice_ToC::getInstances ( )
inlinestatic

returns all currently existing ToC devices

Definition at line 92 of file MSDevice_ToC.h.

References cleanup(), and instances.

Referenced by MSNet::writeOutput().

◆ getLane()

◆ getLCAbstinence()

double MSDevice_ToC::getLCAbstinence ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 191 of file MSDevice_ToC.cpp.

References DEFAULT_LCABSTINENCE, and MSDevice::getFloatParam().

Referenced by buildVehicleDevices().

◆ getManualType()

std::string MSDevice_ToC::getManualType ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 171 of file MSDevice_ToC.cpp.

References DEFAULT_MANUAL_TYPE, and MSDevice::getStringParam().

Referenced by buildVehicleDevices().

◆ getMRMDecel()

double MSDevice_ToC::getMRMDecel ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 201 of file MSDevice_ToC.cpp.

References DEFAULT_MRM_DECEL, and MSDevice::getFloatParam().

Referenced by buildVehicleDevices().

◆ getNumericalID()

SUMOVehicle::NumericalID MSVehicleDevice::getNumericalID ( ) const
inlineinherited

Definition at line 79 of file MSVehicleDevice.h.

References SUMOVehicle::getNumericalID(), and MSVehicleDevice::myHolder.

◆ getOpenGapParams()

MSDevice_ToC::OpenGapParams MSDevice_ToC::getOpenGapParams ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

◆ getOutputFilename()

std::string MSDevice_ToC::getOutputFilename ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

◆ getParameter()

std::string MSDevice_ToC::getParameter ( const std::string &  key) const
virtual

try to retrieve the given parameter from this device. Throw exception for unsupported key

Reimplemented from MSDevice.

Definition at line 728 of file MSDevice_ToC.cpp.

References _2string(), deviceName(), SUMOVehicle::getID(), myAutomatedTypeID, myCurrentAwareness, MSVehicleDevice::myHolder, myInitialAwareness, myLCAbstinence, myManualTypeID, myMRMDecel, myRecoveryRate, myResponseTime, myState, STEPS2TIME, and toString().

Referenced by deviceName().

◆ getRecoveryRate()

double MSDevice_ToC::getRecoveryRate ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 186 of file MSDevice_ToC.cpp.

References DEFAULT_RECOVERY_RATE, and MSDevice::getFloatParam().

Referenced by buildVehicleDevices().

◆ getResponseTime()

double MSDevice_ToC::getResponseTime ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 181 of file MSDevice_ToC.cpp.

References DEFAULT_RESPONSE_TIME, and MSDevice::getFloatParam().

Referenced by buildVehicleDevices().

◆ getStringParam()

std::string MSDevice::getStringParam ( const SUMOVehicle v,
const OptionsCont oc,
std::string  paramName,
std::string  deflt,
bool  required 
)
staticprotectedinherited

◆ initColorScheme()

void MSDevice_ToC::initColorScheme ( )
private

Initialize vehicle colors for different states.

Note
For MANUAL and AUTOMATED, the color of the given types are used, and for the other states hardcoded colors are given.

Definition at line 357 of file MSDevice_ToC.cpp.

References AUTOMATED, MSVehicleType::getColor(), MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MANUAL, MRM, myAutomatedTypeID, myColorScheme, myManualTypeID, PREPARING_TOC, RECOVERING, and UNDEFINED.

Referenced by generatesOutput(), and MSDevice_ToC().

◆ insertDefaultAssignmentOptions()

void MSDevice::insertDefaultAssignmentOptions ( const std::string &  deviceName,
const std::string &  optionsTopic,
OptionsCont oc,
const bool  isPerson = false 
)
staticprotectedinherited

◆ insertOptions()

◆ isAutomated()

bool MSDevice_ToC::isAutomated ( )
private

Whether the current operation mode is automated.

Definition at line 906 of file MSDevice_ToC.cpp.

References AUTOMATED, MRM, myState, and PREPARING_TOC.

Referenced by generatesOutput().

◆ isManuallyDriven()

bool MSDevice_ToC::isManuallyDriven ( )
private

Whether the current operation mode is manual.

Definition at line 901 of file MSDevice_ToC.cpp.

References MANUAL, myState, and RECOVERING.

Referenced by generatesOutput(), and setParameter().

◆ loadState()

void MSDevice::loadState ( const SUMOSAXAttributes attrs)
virtualinherited

Loads the state of the device from the given description.

The default implementation does nothing.

Parameters
[in]attrsXML attributes describing the current state

Reimplemented in MSDevice_Tripinfo, MSDevice_Vehroutes, MSDevice_Routing, and MSPersonDevice_Routing.

Definition at line 155 of file MSDevice.cpp.

Referenced by MSDevice::generateOutput().

◆ MRMExecutionStep()

◆ notifyEnter()

virtual bool MSMoveReminder::notifyEnter ( SUMOVehicle veh,
Notification  reason,
const MSLane enteredLane 
)
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.

Parameters
[in]vehThe entering vehicle.
[in]reasonhow the vehicle enters the lane
Returns
True if vehicle enters the reminder.
See also
Notification

Reimplemented in MSDevice_SSM, MSE2Collector, MSMeanData::MeanDataValueTracker, MSE3Collector::MSE3LeaveReminder, MSCalibrator::VehicleRemover, MSTriggeredRerouter, MSDevice_Tripinfo, MSDevice_Routing, MSMeanData_Net::MSLaneMeanDataValues, MSInductLoop, MSMeanData_Amitran::MSLaneMeanDataValues, MSDevice_BTreceiver, MSDevice_Example, MSDevice_Bluelight, MSDevice_BTsender, MSMeanData::MeanDataValues, MSDevice_Vehroutes, MSRouteProbe, MSE3Collector::MSE3EntryReminder, MSDevice_Transportable, and MSDevice_FCD.

Definition at line 128 of file MSMoveReminder.h.

References UNUSED_PARAMETER.

◆ notifyLeave()

virtual bool MSMoveReminder::notifyLeave ( SUMOVehicle veh,
double  lastPos,
Notification  reason,
const MSLane enteredLane = 0 
)
inlinevirtualinherited

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.

Parameters
[in]vehThe leaving vehicle.
[in]lastPosPosition on the lane when leaving.
[in]reasonhow the vehicle leaves the lane
See also
Notification
Returns
True if the reminder wants to receive further info.

Reimplemented in MSDevice_SSM, MSE2Collector, MSMeanData::MeanDataValueTracker, MSE3Collector::MSE3LeaveReminder, MSTriggeredRerouter, MSInductLoop, MSDevice_Tripinfo, MSDevice_BTreceiver, MSDevice_BTsender, MSMeanData::MeanDataValues, MSE3Collector::MSE3EntryReminder, MSDevice_Example, MSDevice_Bluelight, MSInstantInductLoop, MSDevice_Vehroutes, MSMeanData_Net::MSLaneMeanDataValues, and MSDevice_Transportable.

Definition at line 174 of file MSMoveReminder.h.

References UNUSED_PARAMETER, and MSMoveReminder::updateDetector().

◆ notifyMove()

virtual bool MSMoveReminder::notifyMove ( SUMOVehicle veh,
double  oldPos,
double  newPos,
double  newSpeed 
)
inlinevirtualinherited

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.

Parameters
[in]vehVehicle that asks this reminder.
[in]oldPosPosition before move.
[in]newPosPosition after move with newSpeed.
[in]newSpeedMoving speed.
Returns
True if vehicle hasn't passed the reminder completely.

Reimplemented in MSDevice_SSM, MSE2Collector, MSE3Collector::MSE3LeaveReminder, MSTriggeredRerouter, MSInductLoop, MSDevice_BTreceiver, MSDevice_BTsender, MSMeanData::MeanDataValues, MSDevice_Tripinfo, MSE3Collector::MSE3EntryReminder, MSDevice_Emissions, MSInstantInductLoop, MSDevice_Example, MSDevice_Bluelight, MSDevice_Battery, and MSDevice_Transportable.

Definition at line 149 of file MSMoveReminder.h.

References UNUSED_PARAMETER.

◆ notifyMoveInternal()

virtual void MSMoveReminder::notifyMoveInternal ( const SUMOVehicle veh,
const double  frontOnLane,
const double  timeOnLane,
const double  meanSpeedFrontOnLane,
const double  meanSpeedVehicleOnLane,
const double  travelledDistanceFrontOnLane,
const double  travelledDistanceVehicleOnLane,
const double  meanLengthOnLane 
)
inlinevirtualinherited

Internal notification about the vehicle moves.

Note
meso uses this though it never calls notifyMove()

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.

Parameters
[in]vehVehicle that asks this reminder.
[in]frontOnLanetime the front of the vehicle spent on the lane.
[in]timeOnLanetime some part of the vehicle spent on the lane.
[in]meanSpeedFrontOnLaneAverage speed for the time that the front is on the lane.
[in]meanSpeedVehicleOnLaneAverage speed for the time that the vehicle is on the lane (with front or back).
[in]travelledDistanceFrontOnLanedistance travelled while overlapping with the lane.
[in]travelledDistanceVehicleOnLanedistance travelled while front was on the lane.
[in]meanLengthOnLanethe average length of the vehicle's part on the lane during the last step (==complete length in meso case)

Reimplemented in MSMeanData::MeanDataValueTracker, MSDevice_Tripinfo, MSDevice_Transportable, MSMeanData_Net::MSLaneMeanDataValues, MSMeanData_Amitran::MSLaneMeanDataValues, MSMeanData_Harmonoise::MSLaneMeanDataValues, and MSMeanData_Emissions::MSLaneMeanDataValues.

Definition at line 206 of file MSMoveReminder.h.

References UNUSED_PARAMETER.

Referenced by MSMeanData::MeanDataValues::notifyMove(), and MSMoveReminder::updateDetector().

◆ operator=()

MSDevice_ToC& MSDevice_ToC::operator= ( const MSDevice_ToC )
private

Invalidated assignment operator.

◆ removeFromVehicleUpdateValues()

void MSMoveReminder::removeFromVehicleUpdateValues ( SUMOVehicle veh)
protectedinherited

◆ requestMRM()

void MSDevice_ToC::requestMRM ( )
private

Request an MRM to be initiated immediately. No downward ToC will be scheduled.

Note
The initiated MRM process will run forever until a new ToC is requested.

Definition at line 447 of file MSDevice_ToC.cpp.

References descheduleRecovery(), descheduleToC(), descheduleToCPreparation(), and triggerMRM().

Referenced by generatesOutput(), and setParameter().

◆ requestToC()

◆ resetDeliberateLCs()

void MSDevice_ToC::resetDeliberateLCs ( )
private

◆ saveState()

void MSDevice::saveState ( OutputDevice out) const
virtualinherited

Saves the state of the device.

The default implementation writes a warning and does nothing.

Parameters
[in]outThe OutputDevice to write the information into

Reimplemented in MSDevice_Tripinfo, MSDevice_Vehroutes, MSDevice_Routing, MSPersonDevice_Routing, and MSDevice_FCD.

Definition at line 149 of file MSDevice.cpp.

References Named::getID(), and WRITE_WARNING.

Referenced by MSDevice::generateOutput().

◆ setAwareness()

void MSDevice_ToC::setAwareness ( double  value)
private

◆ setDescription()

void MSMoveReminder::setDescription ( const std::string &  description)
inlineinherited

◆ setID()

void Named::setID ( const std::string &  newID)
inlineinherited

◆ setParameter()

void MSDevice_ToC::setParameter ( const std::string &  key,
const std::string &  value 
)
virtual

◆ setState()

◆ setVehicleColor()

◆ switchHolderType()

void MSDevice_ToC::switchHolderType ( const std::string &  targetTypeID)
private

◆ ToCPreparationStep()

SUMOTime MSDevice_ToC::ToCPreparationStep ( SUMOTime  t)

Continue the ToC preparation for one time step.

Definition at line 654 of file MSDevice_ToC.cpp.

References DELTA_T, descheduleToCPreparation(), SUMOVehicle::getID(), MSVehicleDevice::myHolder, myState, PREPARING_TOC, and SIMTIME.

Referenced by deviceName(), and requestToC().

◆ triggerDownwardToC()

◆ triggerMRM()

◆ triggerUpwardToC()

SUMOTime MSDevice_ToC::triggerUpwardToC ( SUMOTime  t)

◆ updateDetector()

void MSMoveReminder::updateDetector ( SUMOVehicle veh,
double  entryPos,
double  leavePos,
SUMOTime  entryTime,
SUMOTime  currentTime,
SUMOTime  leaveTime,
bool  cleanUp 
)
inherited

◆ useColorScheme()

bool MSDevice_ToC::useColorScheme ( const SUMOVehicle v,
const OptionsCont oc 
)
staticprivate

Definition at line 206 of file MSDevice_ToC.cpp.

References MSDevice::getBoolParam().

Referenced by buildVehicleDevices(), and generatesOutput().

◆ writeOutput()

void MSDevice_ToC::writeOutput ( )

Field Documentation

◆ createdOutputFiles

std::set< std::string > MSDevice_ToC::createdOutputFiles
staticprivate

Definition at line 58 of file MSDevice_ToC.h.

Referenced by cleanup(), and MSDevice_ToC().

◆ instances

std::set< MSDevice_ToC * > MSDevice_ToC::instances = std::set<MSDevice_ToC*>()
staticprivate

Definition at line 56 of file MSDevice_ToC.h.

Referenced by getInstances(), MSDevice_ToC(), and ~MSDevice_ToC().

◆ LCModeMRM

int MSDevice_ToC::LCModeMRM = 768
staticprivate

LC mode operational during an MRM.

Definition at line 308 of file MSDevice_ToC.h.

Referenced by deactivateDeliberateLCs().

◆ myAutomatedTypeID

std::string MSDevice_ToC::myAutomatedTypeID
private

vehicle type ID for automated driving

Definition at line 257 of file MSDevice_ToC.h.

Referenced by getParameter(), initColorScheme(), MSDevice_ToC(), setParameter(), triggerMRM(), and triggerUpwardToC().

◆ myColorScheme

std::map<ToCState, RGBColor> MSDevice_ToC::myColorScheme
private

Coloring scheme,.

See also
initColorScheme()

Definition at line 275 of file MSDevice_ToC.h.

Referenced by initColorScheme(), setParameter(), and setVehicleColor().

◆ myCurrentAwareness

double MSDevice_ToC::myCurrentAwareness
private

Current awareness-level of the driver in [0,1].

Definition at line 272 of file MSDevice_ToC.h.

Referenced by awarenessRecoveryStep(), getParameter(), MSDevice_ToC(), setAwareness(), setParameter(), and triggerDownwardToC().

◆ myDescription

std::string MSMoveReminder::myDescription
protectedinherited

a description of this moveReminder

Definition at line 240 of file MSMoveReminder.h.

Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().

◆ myEvents

std::queue<std::pair<SUMOTime, std::string> > MSDevice_ToC::myEvents
private

Storage for events to be written to the output.

Definition at line 302 of file MSDevice_ToC.h.

Referenced by requestToC(), triggerDownwardToC(), triggerMRM(), triggerUpwardToC(), and writeOutput().

◆ myExecuteMRMCommand

WrappingCommand<MSDevice_ToC>* MSDevice_ToC::myExecuteMRMCommand
private

Definition at line 294 of file MSDevice_ToC.h.

Referenced by descheduleMRM(), requestToC(), triggerMRM(), and ~MSDevice_ToC().

◆ myHolder

◆ myHolderMS

MSVehicle* MSDevice_ToC::myHolderMS
private

◆ myID

std::string Named::myID
protectedinherited

◆ myInitialAwareness

double MSDevice_ToC::myInitialAwareness
private

Average awareness the driver has initially after a ToC.

Definition at line 266 of file MSDevice_ToC.h.

Referenced by getParameter(), MSDevice_ToC(), setParameter(), and triggerDownwardToC().

◆ myLane

◆ myLCAbstinence

double MSDevice_ToC::myLCAbstinence
private

Level of the awareness below which no lane-changes are performed.

Definition at line 264 of file MSDevice_ToC.h.

Referenced by getParameter(), setAwareness(), and setParameter().

◆ myManualTypeID

std::string MSDevice_ToC::myManualTypeID
private

vehicle type ID for manual driving

Definition at line 255 of file MSDevice_ToC.h.

Referenced by getParameter(), initColorScheme(), MSDevice_ToC(), setParameter(), and triggerDownwardToC().

◆ myMRMDecel

double MSDevice_ToC::myMRMDecel
private

Deceleration rate applied during MRM.

Definition at line 269 of file MSDevice_ToC.h.

Referenced by getParameter(), MRMExecutionStep(), MSDevice_ToC(), and setParameter().

◆ myOpenGapParams

OpenGapParams MSDevice_ToC::myOpenGapParams
private

Parameters for the openGap mechanism applied during ToC preparation phase.

Definition at line 311 of file MSDevice_ToC.h.

Referenced by MSDevice_ToC(), requestToC(), and setState().

◆ myOutputFile

OutputDevice* MSDevice_ToC::myOutputFile
private

The file the devices output goes to.

Definition at line 299 of file MSDevice_ToC.h.

Referenced by generatesOutput(), MSDevice_ToC(), and writeOutput().

◆ myPrepareToCCommand

WrappingCommand<MSDevice_ToC>* MSDevice_ToC::myPrepareToCCommand
private

Definition at line 295 of file MSDevice_ToC.h.

Referenced by descheduleToCPreparation(), requestToC(), and ~MSDevice_ToC().

◆ myPreviousLCMode

int MSDevice_ToC::myPreviousLCMode
private

LC mode overridden during MRM, stored for restoration.

Definition at line 305 of file MSDevice_ToC.h.

Referenced by deactivateDeliberateLCs(), and resetDeliberateLCs().

◆ myRecoverAwarenessCommand

WrappingCommand<MSDevice_ToC>* MSDevice_ToC::myRecoverAwarenessCommand
private

◆ myRecoveryRate

double MSDevice_ToC::myRecoveryRate
private

Recovery rate for the driver's awareness after a ToC.

Definition at line 262 of file MSDevice_ToC.h.

Referenced by awarenessRecoveryStep(), getParameter(), MSDevice_ToC(), and setParameter().

◆ myResponseTime

SUMOTime MSDevice_ToC::myResponseTime
private

Average response time needed by the driver to take back control.

Definition at line 260 of file MSDevice_ToC.h.

Referenced by getParameter(), MSDevice_ToC(), requestToC(), and setParameter().

◆ myState

ToCState MSDevice_ToC::myState
private

◆ myTriggerMRMCommand

WrappingCommand<MSDevice_ToC>* MSDevice_ToC::myTriggerMRMCommand
private

Definition at line 291 of file MSDevice_ToC.h.

Referenced by descheduleMRM(), requestToC(), and ~MSDevice_ToC().

◆ myTriggerToCCommand

WrappingCommand<MSDevice_ToC>* MSDevice_ToC::myTriggerToCCommand
private

Definition at line 292 of file MSDevice_ToC.h.

Referenced by descheduleToC(), requestToC(), and ~MSDevice_ToC().

◆ myUseColorScheme

bool MSDevice_ToC::myUseColorScheme
private

Whether a coloring scheme shall by applied to indicate the different toc stages,.

See also
initColorScheme()

Definition at line 278 of file MSDevice_ToC.h.

Referenced by setState().


The documentation for this class was generated from the following files: