Eclipse SUMO - Simulation of Urban MObility
METriggeredCalibrator Class Reference

Calibrates the flow on a segment to a specified one. More...

#include <METriggeredCalibrator.h>

Inheritance diagram for METriggeredCalibrator:
[legend]
Collaboration diagram for METriggeredCalibrator:
[legend]

Public Types

enum class  ParameterisedAttrType { STRING , DOUBLE }
 @brie enum for Parameterised type More...
 
enum  StopPos { STOPPOS_VALID , STOPPOS_INVALID_STARTPOS , STOPPOS_INVALID_ENDPOS , STOPPOS_INVALID_LANELENGTH }
 enum for stops More...
 

Public Member Functions

void addTo (const StoringVisitor &cont) const
 Adds this object to the given container. More...
 
void addTo (const StoringVisitor &cont) const
 Adds this object to the given container. More...
 
void characters (const XMLCh *const chars, const XERCES3_SIZE_t length)
 The inherited method called when characters occurred. More...
 
void clearParameter ()
 Clears the parameter map. More...
 
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 The inherited method called when a tag is being closed. More...
 
SUMOTime execute (SUMOTime currentTime)
 
AspiredState getCurrentStateInterval () const
 
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double. More...
 
const MSEdgegetEdge () const
 
const std::string & getFileName () const
 returns the current file name More...
 
SUMOTime getFirstDepart () const
 returns the first departure time that was ever read More...
 
const std::string & getID () const
 
int getInserted () const
 
const MSLanegetLane () const
 
SUMOTime getLastDepart () const
 Returns the last loaded depart time. More...
 
const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key. More...
 
const std::map< std::string, std::string > & getParametersMap () const
 Returns the inner key/value map. More...
 
std::string getParametersStr (const std::string kvsep="=", const std::string sep="|") const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More...
 
int getRemoved () const
 
const MSRouteProbegetRouteProbe () const
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
 METriggeredCalibrator (const std::string &id, const MSEdge *const edge, const double pos, const std::string &aXMLFilename, const std::string &outputFilename, const SUMOTime freq, const double length, const MSRouteProbe *probe, const double invalidJamThreshold, const std::string &vTypes)
 
void registerParent (const int tag, GenericSAXHandler *handler)
 Assigning a parent handler which is enabled when the specified tag is closed. More...
 
void setFileName (const std::string &name)
 Sets the current file name. More...
 
void setFlow (SUMOTime begin, SUMOTime end, double vehsPerHour, double speed, SUMOVehicleParameter vehicleParameter)
 
virtual void setID (const std::string &newID)
 resets the id More...
 
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format More...
 
void setParametersMap (const std::map< std::string, std::string > &paramsMap)
 set the inner key/value map in map<string, string> format More...
 
void setParametersStr (const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
 set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More...
 
virtual SUMOTime shiftTime (SUMOTime, SUMOTime, SUMOTime)
 Reschedule or deschedule the command when quick-loading state. More...
 
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs)
 The inherited method called when a new tag opens. More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameters (const std::map< std::string, std::string > &mapArg)
 Adds or updates all given parameters from the map. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 
void writeXMLDetectorProlog (OutputDevice &dev) const
 Open the XML-output. More...
 
void writeXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
 Write the generated output to the given device. More...
 
virtual ~METriggeredCalibrator ()
 

Static Public Member Functions

static bool areParametersValid (const std::string &value, bool report=false, ParameterisedAttrType attrType=ParameterisedAttrType::STRING, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More...
 
static StopPos checkStopPos (double &startPos, double &endPos, const double laneLength, const double minLength, const bool friendlyPos)
 check start and end position of a stop More...
 
static void cleanup ()
 cleanup remaining data structures More...
 
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...
 
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::map< std::string, MSCalibrator * > & getInstances ()
 return all calibrator instances More...
 
static std::mt19937 * getParsingRNG ()
 get parsing RNG More...
 
static bool isStopPosValid (const double startPos, const double endPos, const double laneLength, const double minLength, const bool friendlyPos)
 check if start and end position of a stop is valid More...
 

Protected Member Functions

bool invalidJam () const
 returns whether the segment is jammed although it should not be More...
 
int maximumInflow () const
 returns the maximum number of vehicles that could enter from upstream until the calibrator is activated again More...
 
int passed () const
 
int remainingVehicleCapacity () const
 returns the number of vehicles (of the current type) that still fit onto the segment More...
 
void reset ()
 reset collected vehicle data More...
 
bool tryEmit (MESegment *s, MEVehicle *vehicle)
 
void updateMeanData ()
 do nothing More...
 

Protected Attributes

std::string myID
 The name of the object. More...
 
std::string myID
 The name of the object. More...
 

Static Private Member Functions

static bool isParameterValid (const std::string &value, ParameterisedAttrType attrType, const std::string &kvsep, const std::string &sep)
 check if given string can be parsed to a parameter of type "key=value" More...
 

Private Attributes

ParameterisedAttrType myAttrType
 parameterised type More...
 
std::map< std::string, std::string > myMap
 The key->value map. More...
 
MESegmentmySegment
 mesoscopic edge segment the calibrator lies on More...
 

attributes parsing

AttrMap myPredefinedTags
 
std::vector< std::string > myPredefinedTagsMML
 the map from ids to their string representation More...
 
typedef std::vector< XMLCh * > AttrMap
 

elements parsing

TagMap myTagMap
 
std::vector< std::string > myCharactersVector
 A list of character strings obtained so far to build the complete characters string at the end. More...
 
GenericSAXHandlermyParentHandler
 The handler to give control back to. More...
 
int myParentIndicator
 The tag indicating that control should be given back. More...
 
std::string myFileName
 The name of the currently parsed file. More...
 
std::string myExpectedRoot
 The root element to expect, empty string disables the check. More...
 
bool myRootSeen
 whether the reader has already seen the root element More...
 
typedef std::map< std::string, int > TagMap
 

SAX ErrorHandler callbacks

void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-warnings. More...
 
void error (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 
std::string buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Builds an error message. More...
 
virtual void myCharacters (int element, const std::string &chars)
 Callback method for characters to implement by derived classes. More...
 
XMLCh * convert (const std::string &name) const
 converts from c++-string into unicode More...
 
int convertTag (const std::string &tag) const
 Converts a tag from its string into its numerical representation. More...
 

Virtual methods to implement by derived classes

virtual void detectorUpdate (const SUMOTime step)
 Updates the detector (computes values) More...
 
virtual GUIDetectorWrapperbuildDetectorGUIRepresentation ()
 Builds the graphical representation. More...
 
bool vehicleApplies (const SUMOTrafficObject &veh) const
 Checks whether the detector measures vehicles of the given type. More...
 
bool isTyped () const
 Checks whether the detector is type specific. More...
 
const std::set< std::string > & getVehicleTypes () const
 
bool detectPersons () const
 
virtual void clearState ()
 Remove all vehicles before quick-loading state. More...
 
std::set< std::string > myVehicleTypes
 The vehicle types to look for (empty means all) More...
 
const int myDetectPersons
 Whether pedestrians shall be detected instead of vehicles. More...
 

inherited from GenericSAXHandler

virtual void myStartElement (int element, const SUMOSAXAttributes &attrs)
 Called on the opening of a tag;. More...
 
virtual void myEndElement (int element)
 Called on the closing of a tag;. More...
 
bool isActive () const
 
void intervalEnd ()
 
bool isCurrentStateActive (SUMOTime time)
 
bool tryEmit (MSLane *lane, MSVehicle *vehicle)
 
void init ()
 
int totalWished () const
 number of vehicles expected to pass this interval More...
 
double currentFlow () const
 flow in the current interval in veh/h More...
 
double currentSpeed () const
 measured speed in the current interval More...
 
bool invalidJam (int laneIndex) const
 
int inserted () const
 
int removed () const
 
int clearedInJam () const
 
int remainingVehicleCapacity (int laneIndex) const
 
bool scheduleRemoval (SUMOTrafficObject *veh)
 try to schedule the given vehicle for removal. return true if it isn't already scheduled More...
 
bool removePending ()
 remove any vehicles which are scheduled for removal. return true if removals took place More...
 
std::string getNewVehicleID ()
 determine id of new vehicle from calibrator state More...
 
const MSEdge *const myEdge
 the edge on which this calibrator lies More...
 
MSLane *const myLane
 the lane on which this calibrator lies (0 if the whole edge is covered at once) More...
 
const double myPos
 the position on the edge where this calibrator lies More...
 
const MSRouteProbe *const myProbe
 the route probe to retrieve routes from More...
 
MSMeanData_Net myMeanDataParent
 dummy parent to retrieve vType filter More...
 
std::vector< MSMeanData_Net::MSLaneMeanDataValues * > myLaneMeanData
 data collector for the calibrator More...
 
MSMeanData_Net::MSLaneMeanDataValues myEdgeMeanData
 accumlated data for the whole edge More...
 
std::vector< AspiredStatemyIntervals
 List of adaptation intervals. More...
 
std::vector< AspiredState >::const_iterator myCurrentStateInterval
 Iterator pointing to the current interval. More...
 
std::vector< VehicleRemover * > myVehicleRemovers
 
std::set< std::string > myToRemove
 set of vehicle ids to remove More...
 
OutputDevicemyOutput
 The device for xml statistics. More...
 
SUMOTime myFrequency
 The frequeny with which to check for calibration. More...
 
int myRemoved
 The number of vehicles that were removed in the current interval. More...
 
int myInserted
 The number of vehicles that were inserted in the current interval. More...
 
int myClearedInJam
 The number of vehicles that were removed when clearin a jam. More...
 
bool mySpeedIsDefault
 The information whether the speed adaption has been reset. More...
 
bool myDidSpeedAdaption
 The information whether speed was adapted in the current interval. More...
 
bool myDidInit
 The information whether init was called. More...
 
double myDefaultSpeed
 The default (maximum) speed on the segment. More...
 
bool myHaveWarnedAboutClearingJam
 The default (maximum) speed on the segment. More...
 
bool myAmActive
 whether the calibrator was active when last checking More...
 
double myInvalidJamThreshold
 relative speed threshold for detecting and clearing invalid jam More...
 
bool myHaveInvalidJam
 whether the calibrator has registered an invalid jam in the last execution step More...
 
static std::vector< MSMoveReminder * > LeftoverReminders
 
static std::vector< SUMOVehicleParameter * > LeftoverVehicleParameters
 
static std::map< std::string, MSCalibrator * > myInstances
 

inherited from GenericSAXHandler

void parseFromViaTo (SumoXMLTag tag, const SUMOSAXAttributes &attrs)
 Called for parsing from and to and the corresponding taz attributes. More...
 
void openVehicleTypeDistribution (const SUMOSAXAttributes &attrs)
 opens a type distribution for reading More...
 
void closeVehicleTypeDistribution ()
 closes (ends) the building of a distribution More...
 
void openRoute (const SUMOSAXAttributes &attrs)
 opens a route for reading More...
 
void openFlow (const SUMOSAXAttributes &attrs)
 opens a flow for reading More...
 
void openRouteFlow (const SUMOSAXAttributes &attrs)
 opens a route flow for reading More...
 
void openTrip (const SUMOSAXAttributes &attrs)
 opens a trip for reading More...
 
void closeRoute (const bool mayBeDisconnected=false)
 closes (ends) the building of a route. More...
 
void openRouteDistribution (const SUMOSAXAttributes &attrs)
 opens a route distribution for reading More...
 
void closeRouteDistribution ()
 closes (ends) the building of a distribution More...
 
virtual void closeVehicle ()
 Ends the processing of a vehicle (note: is virtual because is reimplemented in MSStateHandler) More...
 
void closeVType ()
 Ends the processing of a vehicle type. More...
 
void closePerson ()
 Ends the processing of a person. More...
 
void closePersonFlow ()
 Ends the processing of a personFlow. More...
 
void closeContainer ()
 Ends the processing of a container. More...
 
void closeFlow ()
 Ends the processing of a flow. More...
 
void closeTrip ()
 Ends the processing of a trip. More...
 
void addStop (const SUMOSAXAttributes &attrs)
 Processing of a stop. More...
 
void addPersonTrip (const SUMOSAXAttributes &attrs)
 add a routing request for a walking or intermodal person More...
 
void addWalk (const SUMOSAXAttributes &attrs)
 add a fully specified walk More...
 
void addPerson (const SUMOSAXAttributes &attrs)
 Processing of a person. More...
 
void addContainer (const SUMOSAXAttributes &attrs)
 Processing of a container. More...
 
void addRide (const SUMOSAXAttributes &attrs)
 Processing of a ride. More...
 
void addTransport (const SUMOSAXAttributes &attrs)
 Processing of a transport. More...
 
void addTranship (const SUMOSAXAttributes &attrs)
 Processing of a tranship. More...
 
void parseWalkPositions (const SUMOSAXAttributes &attrs, const std::string &personID, const MSEdge *fromEdge, const MSEdge *&toEdge, double &departPos, double &arrivalPos, MSStoppingPlace *&bs, const MSStage *const lastStage, bool &ok)
 @ brief parse depart- and arrival positions of a walk More...
 
ConstMSEdgeVector myActiveRoute
 The current route. More...
 
int myActiveRouteRepeat
 number of repetitions of the active route More...
 
SUMOTime myActiveRoutePeriod
 
MSTransportable::MSTransportablePlanmyActivePlan
 The plan of the current person. More...
 
MSTransportable::MSTransportablePlanmyActiveContainerPlan
 The plan of the current container. More...
 
bool myAddVehiclesDirectly
 Information whether vehicles shall be directly added to the network or kept within the buffer. More...
 
RandomDistributor< MSVehicleType * > * myCurrentVTypeDistribution
 The currently parsed distribution of vehicle types (probability->vehicle type) More...
 
std::string myCurrentVTypeDistributionID
 The id of the currently parsed vehicle type distribution. More...
 
RandomDistributor< const MSRoute * > * myCurrentRouteDistribution
 The currently parsed distribution of routes (probability->route) More...
 
std::string myCurrentRouteDistributionID
 The id of the currently parsed route distribution. More...
 
bool myAmLoadingState
 whether a state file is being loaded More...
 
static std::mt19937 myParsingRNG
 A random number generator used to choose from vtype/route distributions and computing the speed factors. More...
 
void deleteActivePlans ()
 delete already created MSTransportablePlans if error occurs before handing over responsibility to a MSTransportable. More...
 
void addFlowPerson (SUMOTime depart, MSVehicleType *type, const std::string &baseID, int i)
 delete already created MSTransportablePlans if error occurs before handing over responsibility to a MSTransportable. More...
 
MSRouteaddVehicleStopsToImplicitRoute (const MSRoute *route, bool isPermanent)
 adapt implicit route (edges derived from stops) to additional vehicle-stops More...
 
static std::string getDefaultGroup (const std::string &personID)
 determine the default group for rides and trips More...
 

add element functions

bool checkLastDepart ()
 Checks whether the route file is sorted by departure time if needed. More...
 
void registerLastDepart ()
 save last depart (only to be used if vehicle is not discarded) More...
 
void addParam (const SUMOSAXAttributes &attrs)
 assign arbitrary vehicle parameters More...
 
bool parseStop (SUMOVehicleParameter::Stop &stop, const SUMOSAXAttributes &attrs, std::string errorSuffix, MsgHandler *const errorOutput)
 parses attributes common to all stops More...
 
const bool myHardFail
 flag to enable or disable hard fails More...
 
SUMOVehicleParametermyVehicleParameter
 Parameter of the current vehicle, trip, person, container or flow. More...
 
SUMOTime myLastDepart
 The insertion time of the vehicle read last. More...
 
std::string myActiveRouteID
 The id of the current route. More...
 
std::string myActiveRouteRefID
 The id of the route the current route references to. More...
 
double myActiveRouteProbability
 The probability of the current route. More...
 
const RGBColormyActiveRouteColor
 The currently parsed route's color. More...
 
double myCurrentCosts
 The currently parsed route costs. More...
 
std::vector< SUMOVehicleParameter::StopmyActiveRouteStops
 List of the stops on the parsed route. More...
 
SUMOVTypeParametermyCurrentVType
 The currently parsed vehicle type. More...
 
Parameterised myLoadedParameterised
 Parameterised used for saving loaded generic parameters that aren't saved in Vehicles or Vehicle Types. More...
 
IDSupplier myIdSupplier
 generates numerical ids More...
 
SUMOTime myBeginDefault
 The default value for flow begins. More...
 
SUMOTime myEndDefault
 The default value for flow ends. More...
 
SUMOTime myFirstDepart
 the first read departure time More...
 
int myInsertStopEdgesAt
 where stop edges can be inserted into the current route (-1 means no insertion) More...
 

Detailed Description

Calibrates the flow on a segment to a specified one.

Definition at line 36 of file METriggeredCalibrator.h.

Member Typedef Documentation

◆ AttrMap

typedef std::vector<XMLCh*> GenericSAXHandler::AttrMap
privateinherited

Definition at line 279 of file GenericSAXHandler.h.

◆ TagMap

typedef std::map<std::string, int> GenericSAXHandler::TagMap
privateinherited

Definition at line 293 of file GenericSAXHandler.h.

Member Enumeration Documentation

◆ ParameterisedAttrType

@brie enum for Parameterised type

Enumerator
STRING 

Parameterised accept strings.

DOUBLE 

Parameterised only accept doubles.

Definition at line 43 of file Parameterised.h.

◆ StopPos

enum SUMORouteHandler::StopPos
inherited

enum for stops

Enumerator
STOPPOS_VALID 
STOPPOS_INVALID_STARTPOS 
STOPPOS_INVALID_ENDPOS 
STOPPOS_INVALID_LANELENGTH 

Definition at line 51 of file SUMORouteHandler.h.

Constructor & Destructor Documentation

◆ METriggeredCalibrator()

METriggeredCalibrator::METriggeredCalibrator ( const std::string &  id,
const MSEdge *const  edge,
const double  pos,
const std::string &  aXMLFilename,
const std::string &  outputFilename,
const SUMOTime  freq,
const double  length,
const MSRouteProbe probe,
const double  invalidJamThreshold,
const std::string &  vTypes 
)

◆ ~METriggeredCalibrator()

METriggeredCalibrator::~METriggeredCalibrator ( )
virtual

Member Function Documentation

◆ addContainer()

void MSRouteHandler::addContainer ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

Processing of a container.

Implements SUMORouteHandler.

Definition at line 1507 of file MSRouteHandler.cpp.

◆ addFlowPerson()

◆ addParam()

void SUMORouteHandler::addParam ( const SUMOSAXAttributes attrs)
protectedinherited

assign arbitrary vehicle parameters

Definition at line 345 of file SUMORouteHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), SUMORouteHandler::myCurrentVType, SUMORouteHandler::myLoadedParameterised, SUMORouteHandler::myVehicleParameter, Parameterised::setParameter(), SUMO_ATTR_KEY, and SUMO_ATTR_VALUE.

Referenced by SUMORouteHandler::myStartElement().

Here is the caller graph for this function:

◆ addPerson()

void MSRouteHandler::addPerson ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

Processing of a person.

Implements SUMORouteHandler.

Definition at line 1502 of file MSRouteHandler.cpp.

◆ addPersonTrip()

void MSRouteHandler::addPersonTrip ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

add a routing request for a walking or intermodal person

Implements SUMORouteHandler.

Definition at line 1369 of file MSRouteHandler.cpp.

References SUMOVehicleParameter::depart, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, MSRouteHandler::getDefaultGroup(), MSLane::getEdge(), OptionsCont::getFloat(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLength(), SUMOSAXAttributes::getOpt(), OptionsCont::getOptions(), SUMOSAXAttributes::getOptSUMOTimeReporting(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOSAXAttributes::hasAttribute(), StringTokenizer::hasNext(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myActiveRoute, SUMORouteHandler::myInsertStopEdgesAt, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::parametersSet, MSRouteHandler::parseFromViaTo(), SUMOVehicleParameter::parsePersonModes(), MSRouteHandler::parseWalkPositions(), RandHelper::rand(), RANDOM, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DURATION, SUMO_ATTR_FROM, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_FROMJUNCTION, SUMO_ATTR_GROUP, SUMO_ATTR_MODES, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TOJUNCTION, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SUMO_TAG_PERSON, SVC_PASSENGER, and VEHPARS_FORCE_REROUTE.

Referenced by MSRouteHandler::addWalk().

Here is the caller graph for this function:

◆ addRide()

◆ addStop()

void MSRouteHandler::addStop ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

Processing of a stop.

Implements SUMORouteHandler.

Definition at line 1112 of file MSRouteHandler.cpp.

References SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMORouteHandler::checkStopPos(), SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::depart, SUMOVehicleParameter::departPos, MSEdge::dictionary(), MSLane::dictionary(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::endPos, MSStoppingPlace::getBeginLanePosition(), MSLane::getEdge(), MSStoppingPlace::getEndLanePosition(), MsgHandler::getErrorInstance(), Named::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLanes(), MSEdge::getLength(), MSEdge::getNormalBefore(), MSEdge::getNormalSuccessor(), SUMOSAXAttributes::getOpt(), MSNet::getStoppingPlace(), MSGlobals::gUsingInternalLanes, SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, SUMOVehicleParameter::interpretEdgePos(), MSEdge::isInternal(), MSLane::isInternal(), SUMOVehicleParameter::Stop::lane, MAX2(), MIN_STOP_LENGTH, MSRouteHandler::myActiveContainerPlan, MSRouteHandler::myActivePlan, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteID, SUMORouteHandler::myActiveRouteStops, MSRouteHandler::myAmLoadingState, SUMORouteHandler::myInsertStopEdgesAt, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parkingarea, SUMORouteHandler::parseStop(), SUMOVehicleParameter::Stop::startPos, SUMOVehicleParameter::stops, SUMO_ATTR_ACTTYPE, SUMO_ATTR_EDGE, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_ATTR_STARTPOS, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, SUMO_TAG_PARKING_AREA, toString(), SUMOVehicleParameter::Stop::until, VEHPARS_DEPARTPOS_SET, WAITING, SUMOVehicleParameter::wasSet(), WRITE_ERROR, and WRITE_WARNING.

◆ addTo() [1/2]

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

Adds this object to the given container.

Parameters
[in,filled]cont The container to add this item to

Definition at line 117 of file Named.h.

References Named::StoringVisitor::add().

◆ addTo() [2/2]

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

Adds this object to the given container.

Parameters
[in,filled]cont The container to add this item to

Definition at line 117 of file Named.h.

References Named::StoringVisitor::add().

◆ addTranship()

void MSRouteHandler::addTranship ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

Processing of a tranship.

Implements SUMORouteHandler.

Definition at line 1512 of file MSRouteHandler.cpp.

◆ addTransport()

◆ addVehicleStopsToImplicitRoute()

MSRoute * MSRouteHandler::addVehicleStopsToImplicitRoute ( const MSRoute route,
bool  isPermanent 
)
privateinherited

adapt implicit route (edges derived from stops) to additional vehicle-stops

Definition at line 708 of file MSRouteHandler.cpp.

References MSRoute::dictionary(), MSEdge::dictionary(), SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::endPos, MSRoute::getColor(), MSRoute::getEdges(), Named::getID(), MSRoute::getStops(), SUMOVehicleParameter::id, SUMOVehicleParameter::Stop::index, SUMORouteHandler::myVehicleParameter, STOP_INDEX_END, SUMOVehicleParameter::stops, VEHPARS_ROUTE_SET, SUMOVehicleParameter::wasSet(), and WRITE_WARNING.

Referenced by MSRouteHandler::closeFlow(), and MSRouteHandler::closeVehicle().

Here is the caller graph for this function:

◆ addWalk()

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string &  value,
bool  report = false,
ParameterisedAttrType  attrType = ParameterisedAttrType::STRING,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"

Definition at line 217 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.

Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEContainerStop::isValid(), GNEDestProbReroute::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNERerouter::isValid(), GNERerouterInterval::isValid(), GNERouteProbe::isValid(), GNERouteProbReroute::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEVariableSpeedSignStep::isValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), and GNEFrameAttributesModuls::ParametersEditorCreator::onCmdSetParameters().

Here is the caller graph for this function:

◆ buildDetectorGUIRepresentation()

virtual GUIDetectorWrapper* MSDetectorFileOutput::buildDetectorGUIRepresentation ( )
inlinevirtualinherited

Builds the graphical representation.

Meant to be overridden by graphical versions of the detectors

Returns
A wrapper for the detector which performs the user I/O within the GUI

Reimplemented in GUIMEInductLoop, GUIInstantInductLoop, GUIInductLoop, GUIE3Collector, and GUIE2Collector.

Definition at line 129 of file MSDetectorFileOutput.h.

◆ buildErrorMessage()

std::string GenericSAXHandler::buildErrorMessage ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
protectedinherited

Builds an error message.

The error message includes the file name and the line/column information as supported by the given SAXParseException

Parameters
[in]exceptionThe name of the currently processed file
Returns
A string describing the given exception

Definition at line 188 of file GenericSAXHandler.cpp.

References GenericSAXHandler::getFileName(), and transcode().

Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().

Here is the caller graph for this function:

◆ characters()

void GenericSAXHandler::characters ( const XMLCh *const  chars,
const XERCES3_SIZE_t  length 
)
inherited

The inherited method called when characters occurred.

The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.

Todo:

recheck/describe what happens with characters when a new element is opened

describe characters processing in the class' head

Definition at line 171 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myCharactersVector, and StringUtils::transcode().

◆ checkLastDepart()

bool SUMORouteHandler::checkLastDepart ( )
protectedinherited

Checks whether the route file is sorted by departure time if needed.

Definition at line 59 of file SUMORouteHandler.cpp.

References SUMOVehicleParameter::depart, DEPART_GIVEN, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::id, SUMORouteHandler::myLastDepart, SUMORouteHandler::myVehicleParameter, and WRITE_WARNING.

Referenced by MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), and MSRouteHandler::closeVehicle().

Here is the caller graph for this function:

◆ checkStopPos()

◆ cleanup()

void MSCalibrator::cleanup ( )
staticinherited

cleanup remaining data structures

Definition at line 513 of file MSCalibrator.cpp.

References MSCalibrator::LeftoverReminders, MSCalibrator::LeftoverVehicleParameters, and MSCalibrator::myInstances.

Referenced by MSNet::clearAll().

Here is the caller graph for this function:

◆ clearedInJam()

int MSCalibrator::clearedInJam ( ) const
inlineprotectedinherited

Definition at line 248 of file MSCalibrator.h.

References MSCalibrator::myClearedInJam.

Referenced by GUICalibrator::getParameterWindow().

Here is the caller graph for this function:

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 140 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().

Here is the caller graph for this function:

◆ clearState()

virtual void MSDetectorFileOutput::clearState ( )
inlinevirtualinherited

Remove all vehicles before quick-loading state.

Reimplemented in MSInductLoop, MSE3Collector, and MSE2Collector.

Definition at line 173 of file MSDetectorFileOutput.h.

◆ closeContainer()

◆ closeFlow()

◆ closePerson()

◆ closePersonFlow()

◆ closeRoute()

void MSRouteHandler::closeRoute ( const bool  mayBeDisconnected = false)
protectedvirtualinherited

◆ closeRouteDistribution()

void MSRouteHandler::closeRouteDistribution ( )
protectedvirtualinherited

◆ closeTrip()

void MSRouteHandler::closeTrip ( )
protectedvirtualinherited

◆ closeVehicle()

void MSRouteHandler::closeVehicle ( )
protectedvirtualinherited

Ends the processing of a vehicle (note: is virtual because is reimplemented in MSStateHandler)

Implements SUMORouteHandler.

Reimplemented in MSStateHandler.

Definition at line 576 of file MSRouteHandler.cpp.

References MSInsertionControl::add(), MSRoute::addReference(), MSVehicleControl::addVehicle(), MSRouteHandler::addVehicleStopsToImplicitRoute(), MSVehicleControl::buildVehicle(), SUMORouteHandler::checkLastDepart(), MSInsertionControl::computeRandomDepartOffset(), DEFAULT, DEFAULT_VTYPE_ID, MSVehicleControl::deleteVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, SUMOVehicleParameter::departEdge, SUMOVehicleParameter::departEdgeProcedure, SUMOVehicleParameter::departProcedure, MSRoute::dictionary(), MSVehicleControl::fixVehicleCounts(), MSGlobals::gCheckRoutes, MSRoute::getEdges(), MSVehicleType::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOTrafficObject::getParameter(), MSVehicleControl::getQuota(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), GIVEN, MSGlobals::gStateLoaded, SUMOVehicleParameter::id, MSRoute::mustReroute(), SUMORouteHandler::myActiveRouteID, MSRouteHandler::myAddVehiclesDirectly, MSRouteHandler::myAmLoadingState, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::parametersSet, SUMORouteHandler::registerLastDepart(), MSRoute::release(), SUMOVehicleParameter::routeid, SUMOVehicleParameter::stops, string2time(), SUMO_ATTR_DEPARTEDGE, SVC_PEDESTRIAN, toString(), VEHPARS_FORCE_REROUTE, VEHPARS_ROUTE_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and WRITE_WARNING.

Referenced by MSRouteHandler::closeTrip(), and MSStateHandler::closeVehicle().

Here is the caller graph for this function:

◆ closeVehicleTypeDistribution()

void MSRouteHandler::closeVehicleTypeDistribution ( )
protectedvirtualinherited

◆ closeVType()

◆ convert()

XMLCh * GenericSAXHandler::convert ( const std::string &  name) const
privateinherited

converts from c++-string into unicode

Todo:
recheck encoding
Parameters
[in]nameThe string to convert
Returns
The string converted into a XMLCh-string

Definition at line 84 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::GenericSAXHandler().

Here is the caller graph for this function:

◆ convertTag()

int GenericSAXHandler::convertTag ( const std::string &  tag) const
privateinherited

Converts a tag from its string into its numerical representation.

Returns the enum-representation stored for the given tag. If the tag is not known, SUMO_TAG_NOTHING is returned.

Parameters
[in]tagThe string to convert
Returns
The int-value that represents the string, SUMO_TAG_NOTHING if the named attribute is not known

Definition at line 178 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myTagMap, and SUMO_TAG_NOTHING.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().

Here is the caller graph for this function:

◆ currentFlow()

double MSCalibrator::currentFlow ( ) const
protectedinherited

flow in the current interval in veh/h

Definition at line 265 of file MSCalibrator.cpp.

References MSNet::getInstance(), MSCalibrator::myCurrentStateInterval, MSCalibrator::passed(), and STEPS2TIME.

Referenced by GUICalibrator::getParameterWindow().

Here is the caller graph for this function:

◆ currentSpeed()

double MSCalibrator::currentSpeed ( ) const
protectedinherited

measured speed in the current interval

Definition at line 271 of file MSCalibrator.cpp.

References MSMeanData::MeanDataValues::getSamples(), MSMeanData::MeanDataValues::getTravelledDistance(), and MSCalibrator::myEdgeMeanData.

Referenced by GUICalibrator::getParameterWindow().

Here is the caller graph for this function:

◆ deleteActivePlans()

void MSRouteHandler::deleteActivePlans ( )
privateinherited

delete already created MSTransportablePlans if error occurs before handing over responsibility to a MSTransportable.

Definition at line 68 of file MSRouteHandler.cpp.

References MSRouteHandler::myActiveContainerPlan, and MSRouteHandler::myActivePlan.

Referenced by MSRouteHandler::addTransport(), MSRouteHandler::addWalk(), MSRouteHandler::closePerson(), and MSRouteHandler::closePersonFlow().

Here is the caller graph for this function:

◆ detectorUpdate()

virtual void MSDetectorFileOutput::detectorUpdate ( const SUMOTime  step)
inlinevirtualinherited

Updates the detector (computes values)

Parameters
[in]stepThe current time step

Reimplemented in MSMeanData_Harmonoise, MSMeanData, MSE3Collector, and MSE2Collector.

Definition at line 119 of file MSDetectorFileOutput.h.

References UNUSED_PARAMETER.

◆ detectPersons()

bool MSDetectorFileOutput::detectPersons ( ) const
inlineinherited

Definition at line 168 of file MSDetectorFileOutput.h.

References MSDetectorFileOutput::myDetectPersons.

Referenced by MSMeanData::init(), and MSDetectorFileOutput::vehicleApplies().

Here is the caller graph for this function:

◆ endElement()

void GenericSAXHandler::endElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname 
)
inherited

The inherited method called when a tag is being closed.

This method calls the user-implemented methods myCharacters with the previously collected and converted characters.

Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 122 of file GenericSAXHandler.cpp.

References GenericSAXHandler::convertTag(), GenericSAXHandler::myCharacters(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myEndElement(), GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, SUMO_TAG_NOTHING, and StringUtils::transcode().

◆ error()

void GenericSAXHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Parameters
[in]exceptionThe occurred exception to process
Exceptions
ProcessErrorOn any call

Definition at line 207 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::myStartElement().

Here is the caller graph for this function:

◆ execute()

SUMOTime METriggeredCalibrator::execute ( SUMOTime  currentTime)
virtual

the implementation of the MSTrigger / Command interface. Calibrating takes place here.

Reimplemented from MSCalibrator.

Definition at line 90 of file METriggeredCalibrator.cpp.

References MSVehicleControl::buildVehicle(), MSRoute::contains(), MSVehicleControl::deleteVehicle(), DELTA_T, SUMOVehicleParameter::depart, MSRoute::dictionary(), MSGlobals::gCheckRoutes, MESegment::getEdge(), MSBaseVehicle::getEdge(), OptionsCont::getFloat(), MSCalibrator::getID(), Named::getID(), MSNet::getInstance(), MSCalibrator::getNewVehicleID(), MESegment::getNextInsertionTime(), MESegment::getNextSegment(), OptionsCont::getOptions(), MELoop::getSegmentForEdge(), MSEdge::getSpeedLimit(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSGlobals::gMesoNet, SUMOVehicleParameter::id, MSCalibrator::intervalEnd(), invalidJam(), MSCalibrator::isCurrentStateActive(), MAX2(), maximumInflow(), MEVehicle::moveRoutePointer(), MSCalibrator::myAmActive, MSCalibrator::myClearedInJam, MSCalibrator::myCurrentStateInterval, MSCalibrator::myDefaultSpeed, MSCalibrator::myDidSpeedAdaption, MSCalibrator::myEdge, MSCalibrator::myEdgeMeanData, MSCalibrator::myFrequency, MSCalibrator::myHaveWarnedAboutClearingJam, MSCalibrator::myInserted, MSCalibrator::myIntervals, MSCalibrator::myProbe, MSCalibrator::myRemoved, mySegment, MSCalibrator::mySpeedIsDefault, passed(), MESegment::prepareDetectorForWriting(), remainingVehicleCapacity(), MSMeanData_Net::MSLaneMeanDataValues::reset(), SUMOVehicleParameter::routeid, MSRouteProbe::sampleRoute(), MEVehicle::setEventTime(), MSEdge::setMaxSpeed(), MEVehicle::setSegment(), MESegment::setSpeed(), STEPS2TIME, TIME2STEPS, time2string(), tryEmit(), MESegment::vaporizeAnyCar(), SUMOVehicleParameter::vtypeid, and WRITE_WARNING.

◆ fatalError()

void GenericSAXHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Exceptions
ProcessErrorOn any call
Parameters
[in]exceptionThe occurred exception to process

Definition at line 213 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

◆ getCurrentStateInterval()

MSCalibrator::AspiredState MSCalibrator::getCurrentStateInterval ( ) const
inherited

Definition at line 144 of file MSCalibrator.cpp.

References MSCalibrator::getID(), MSCalibrator::myCurrentStateInterval, and MSCalibrator::myIntervals.

Referenced by libsumo::Calibrator::getCalibratorState().

Here is the caller graph for this function:

◆ getDefaultGroup()

std::string MSRouteHandler::getDefaultGroup ( const std::string &  personID)
staticprivateinherited

determine the default group for rides and trips

Definition at line 1516 of file MSRouteHandler.cpp.

References OptionsCont::getOptions(), and OptionsCont::getString().

Referenced by MSRouteHandler::addPersonTrip(), and MSRouteHandler::addRide().

Here is the caller graph for this function:

◆ getDouble()

double Parameterised::getDouble ( const std::string &  key,
const double  defaultValue 
) const
inherited

◆ getEdge()

const MSEdge* MSCalibrator::getEdge ( ) const
inlineinherited

Definition at line 113 of file MSCalibrator.h.

References MSCalibrator::myEdge.

Referenced by libsumo::Calibrator::getEdgeID().

Here is the caller graph for this function:

◆ getFileName()

◆ getFirstDepart()

SUMOTime SUMORouteHandler::getFirstDepart ( ) const
inherited

returns the first departure time that was ever read

Definition at line 333 of file SUMORouteHandler.cpp.

References SUMORouteHandler::myFirstDepart.

Referenced by SUMORouteLoader::getFirstDepart().

Here is the caller graph for this function:

◆ getID()

const std::string& MSCalibrator::getID ( ) const
inlineinherited
Note
: nedded to resolve ambiguity between MStrigger::getID() and MSDetectorFileOutput::getID()

Definition at line 89 of file MSCalibrator.h.

References Named::getID().

Referenced by execute(), MSCalibrator::execute(), MSCalibrator::getCurrentStateInterval(), MSCalibrator::getNewVehicleID(), MSCalibrator::init(), METriggeredCalibrator(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSCalibrator::removePending(), MSCalibrator::setFlow(), tryEmit(), MSCalibrator::writeXMLOutput(), and MSCalibrator::~MSCalibrator().

Here is the caller graph for this function:

◆ getIDSecure() [1/2]

template<class T >
static std::string Named::getIDSecure ( const T *  obj,
const std::string &  fallBack = "NULL" 
)
inlinestaticinherited

get an identifier for Named-like object which may be Null

Definition at line 66 of file Named.h.

Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), NBRailwayTopologyAnalyzer::assignDirectionPriority(), MSLaneChanger::changeOpposite(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), NBPTLineCont::findWay(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), LIBSUMO_NAMESPACE::Person::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), MSDevice_SSM::getVehiclesOnJunction(), MSCFModel_IDM::insertionFollowSpeed(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().

◆ getIDSecure() [2/2]

template<class T >
static std::string Named::getIDSecure ( const T *  obj,
const std::string &  fallBack = "NULL" 
)
inlinestaticinherited

get an identifier for Named-like object which may be Null

Definition at line 66 of file Named.h.

Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), NBRailwayTopologyAnalyzer::assignDirectionPriority(), MSLaneChanger::changeOpposite(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), NBPTLineCont::findWay(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), LIBSUMO_NAMESPACE::Person::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), MSDevice_SSM::getVehiclesOnJunction(), MSCFModel_IDM::insertionFollowSpeed(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().

◆ getInserted()

int MSCalibrator::getInserted ( ) const
inlineinherited

Definition at line 134 of file MSCalibrator.h.

References MSCalibrator::myEdgeMeanData, and MSMeanData_Net::MSLaneMeanDataValues::nVehDeparted.

Referenced by libsumo::Calibrator::getInserted().

Here is the caller graph for this function:

◆ getInstances()

static const std::map<std::string, MSCalibrator*>& MSCalibrator::getInstances ( )
inlinestaticinherited

return all calibrator instances

Definition at line 98 of file MSCalibrator.h.

References MSCalibrator::myInstances.

Referenced by libsumo::Calibrator::getCalibrator(), and GUINet::initGUIStructures().

Here is the caller graph for this function:

◆ getLane()

const MSLane* MSCalibrator::getLane ( ) const
inlineinherited

Definition at line 117 of file MSCalibrator.h.

References MSCalibrator::myLane.

Referenced by libsumo::Calibrator::getLaneID().

Here is the caller graph for this function:

◆ getLastDepart()

SUMOTime SUMORouteHandler::getLastDepart ( ) const
inherited

Returns the last loaded depart time.

Definition at line 339 of file SUMORouteHandler.cpp.

References SUMORouteHandler::myLastDepart.

Referenced by SUMORouteLoader::loadUntil().

Here is the caller graph for this function:

◆ getNewVehicleID()

std::string MSCalibrator::getNewVehicleID ( )
protectedinherited

determine id of new vehicle from calibrator state

Definition at line 635 of file MSCalibrator.cpp.

References MSCalibrator::getID(), MSCalibrator::myCurrentStateInterval, MSCalibrator::myInserted, STEPS2TIME, and toString().

Referenced by execute(), and MSCalibrator::execute().

Here is the caller graph for this function:

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string  defaultValue = "" 
) const
inherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 112 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GNEConnection::drawGL(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GNELane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSSOTLPhasePolicy::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().

◆ getParametersMap()

const std::map< std::string, std::string > & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 146 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), GNEAdditional::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), GNETAZElement::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonStop::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVehicleType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GUILane::getParameterWindow(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().

Here is the caller graph for this function:

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string  kvsep = "=",
const std::string  sep = "|" 
) const
inherited

Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".

Definition at line 152 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE2::getAttribute(), GNEDetectorE3::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GNERerouter::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEPerson::getAttribute(), GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::getAttribute(), GNEWalk::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), and GNELaneType::getAttribute().

Here is the caller graph for this function:

◆ getParsingRNG()

static std::mt19937* MSRouteHandler::getParsingRNG ( )
inlinestaticinherited

◆ getRemoved()

int MSCalibrator::getRemoved ( ) const
inlineinherited

Definition at line 138 of file MSCalibrator.h.

References MSCalibrator::myClearedInJam, and MSCalibrator::myRemoved.

Referenced by libsumo::Calibrator::getRemoved().

Here is the caller graph for this function:

◆ getRouteProbe()

const MSRouteProbe* MSCalibrator::getRouteProbe ( ) const
inlineinherited

Definition at line 121 of file MSCalibrator.h.

References MSCalibrator::myProbe.

Referenced by libsumo::Calibrator::getRouteProbeID().

Here is the caller graph for this function:

◆ getVehicleTypes()

const std::set<std::string>& MSDetectorFileOutput::getVehicleTypes ( ) const
inlineinherited

Definition at line 164 of file MSDetectorFileOutput.h.

References MSDetectorFileOutput::myVehicleTypes.

Referenced by libsumo::Calibrator::getVTypes().

Here is the caller graph for this function:

◆ init()

void MSCalibrator::init ( )
protectedinherited

Definition at line 119 of file MSCalibrator.cpp.

References MSEventControl::addEvent(), MSNet::getEndOfTimestepEvents(), MSCalibrator::getID(), MSNet::getInstance(), MSCalibrator::myDidInit, MSCalibrator::myIntervals, SUMOTime_MAX, and WRITE_WARNING.

Referenced by MSCalibrator::MSCalibrator(), and MSCalibrator::myEndElement().

Here is the caller graph for this function:

◆ inserted()

int MSCalibrator::inserted ( ) const
inlineprotectedinherited

Definition at line 242 of file MSCalibrator.h.

References MSCalibrator::myInserted.

Referenced by GUICalibrator::getParameterWindow().

Here is the caller graph for this function:

◆ intervalEnd()

void MSCalibrator::intervalEnd ( )
protectedinherited

◆ invalidJam() [1/2]

bool METriggeredCalibrator::invalidJam ( ) const
protected

returns whether the segment is jammed although it should not be

Definition at line 247 of file METriggeredCalibrator.cpp.

References MESegment::getBruttoOccupancy(), MESegment::getEdge(), MESegment::getMeanSpeed(), MSEdge::getSpeedLimit(), maximumInflow(), MSCalibrator::myInvalidJamThreshold, mySegment, and remainingVehicleCapacity().

Referenced by execute().

Here is the caller graph for this function:

◆ invalidJam() [2/2]

bool MSCalibrator::invalidJam ( int  laneIndex) const
protectedinherited

Definition at line 464 of file MSCalibrator.cpp.

References MSEdge::getLanes(), MSLane::getMeanSpeed(), MSEdge::getSpeedLimit(), MSLane::getVehicleNumber(), MSCalibrator::myEdge, MSCalibrator::myInvalidJamThreshold, and MSCalibrator::remainingVehicleCapacity().

Referenced by MSCalibrator::execute().

Here is the caller graph for this function:

◆ isActive()

bool MSCalibrator::isActive ( ) const
inlineprotectedinherited

Definition at line 214 of file MSCalibrator.h.

References MSCalibrator::myAmActive.

Referenced by GUICalibrator::drawGL(), GUICalibrator::getParameterWindow(), and MSCalibrator::VehicleRemover::notifyEnter().

Here is the caller graph for this function:

◆ isCurrentStateActive()

bool MSCalibrator::isCurrentStateActive ( SUMOTime  time)
protectedinherited

Definition at line 244 of file MSCalibrator.cpp.

References MSCalibrator::myCurrentStateInterval, and MSCalibrator::myIntervals.

Referenced by execute(), and MSCalibrator::execute().

Here is the caller graph for this function:

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string &  value,
ParameterisedAttrType  attrType,
const std::string &  kvsep,
const std::string &  sep 
)
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 240 of file Parameterised.cpp.

References Parameterised::DOUBLE, StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and StringUtils::toDouble().

Referenced by Parameterised::areParametersValid().

Here is the caller graph for this function:

◆ isStopPosValid()

bool SUMORouteHandler::isStopPosValid ( const double  startPos,
const double  endPos,
const double  laneLength,
const double  minLength,
const bool  friendlyPos 
)
staticinherited

check if start and end position of a stop is valid

Definition at line 323 of file SUMORouteHandler.cpp.

References SUMORouteHandler::checkStopPos(), and SUMORouteHandler::STOPPOS_VALID.

Referenced by GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEPersonStop::isValid(), and GNEStop::isValid().

Here is the caller graph for this function:

◆ isTyped()

bool MSDetectorFileOutput::isTyped ( ) const
inlineinherited

Checks whether the detector is type specific.

Returns
whether vehicle types are considered

Definition at line 160 of file MSDetectorFileOutput.h.

References MSDetectorFileOutput::myVehicleTypes.

◆ knowsParameter()

◆ maximumInflow()

int METriggeredCalibrator::maximumInflow ( ) const
inlineprotected

returns the maximum number of vehicles that could enter from upstream until the calibrator is activated again

Definition at line 78 of file METriggeredCalibrator.h.

References MESegment::getMinimumHeadwayTime(), MSCalibrator::myFrequency, and mySegment.

Referenced by execute(), and invalidJam().

Here is the caller graph for this function:

◆ myCharacters()

void GenericSAXHandler::myCharacters ( int  element,
const std::string &  chars 
)
protectedvirtualinherited

Callback method for characters to implement by derived classes.

Called by "endElement" (see there).

Parameters
[in]elementThe opened element, given as a int
[in]charsThe complete embedded character string @exceptions ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_OpenDrive, and NIImporter_ITSUMO::Handler.

Definition at line 223 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::endElement().

Here is the caller graph for this function:

◆ myEndElement()

void MSCalibrator::myEndElement ( int  element)
protectedvirtualinherited

Called on the closing of a tag;.

Parameters
[in]elementID of the currently closed element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myEndElement

Reimplemented from SUMORouteHandler.

Definition at line 218 of file MSCalibrator.cpp.

References MSCalibrator::init(), MSCalibrator::myDidInit, SUMORouteHandler::myEndElement(), SUMO_TAG_CALIBRATOR, and SUMO_TAG_FLOW.

◆ myStartElement()

◆ openFlow()

void MSRouteHandler::openFlow ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

opens a flow for reading

Implements SUMORouteHandler.

Definition at line 380 of file MSRouteHandler.cpp.

◆ openRoute()

◆ openRouteDistribution()

◆ openRouteFlow()

void MSRouteHandler::openRouteFlow ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

opens a route flow for reading

Implements SUMORouteHandler.

Definition at line 386 of file MSRouteHandler.cpp.

◆ openTrip()

void MSRouteHandler::openTrip ( const SUMOSAXAttributes attrs)
protectedvirtualinherited

opens a trip for reading

Implements SUMORouteHandler.

Definition at line 392 of file MSRouteHandler.cpp.

◆ openVehicleTypeDistribution()

◆ parseFromViaTo()

void MSRouteHandler::parseFromViaTo ( SumoXMLTag  tag,
const SUMOSAXAttributes attrs 
)
protectedinherited

◆ parseStop()

bool SUMORouteHandler::parseStop ( SUMOVehicleParameter::Stop stop,
const SUMOSAXAttributes attrs,
std::string  errorSuffix,
MsgHandler *const  errorOutput 
)
protectedinherited

parses attributes common to all stops

Definition at line 365 of file SUMORouteHandler.cpp.

References SUMOVehicleParameter::Stop::actualArrival, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::depart, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::extension, SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptStringVector(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::Stop::index, MsgHandler::inform(), SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::parseStopTriggers(), SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, STOP_ARRIVAL_SET, STOP_CONTAINER_TRIGGER_SET, STOP_DURATION_SET, STOP_END_SET, STOP_EXPECTED_CONTAINERS_SET, STOP_EXPECTED_SET, STOP_EXTENSION_SET, STOP_INDEX_END, STOP_INDEX_FIT, STOP_JOIN_SET, STOP_LINE_SET, STOP_PARKING_SET, STOP_SPEED_SET, STOP_SPLIT_SET, STOP_START_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTUALARRIVAL, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_DEPART, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_INDEX, SUMO_ATTR_JOIN, SUMO_ATTR_LINE, SUMO_ATTR_OVERHEAD_WIRE_SEGMENT, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, SUMO_TAG_CONTAINER, toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::tripId, SUMOVehicleParameter::Stop::until, and WRITE_WARNING.

Referenced by MSRouteHandler::addStop(), GNERouteHandler::addStop(), and RORouteHandler::addStop().

Here is the caller graph for this function:

◆ parseWalkPositions()

void MSRouteHandler::parseWalkPositions ( const SUMOSAXAttributes attrs,
const std::string &  personID,
const MSEdge fromEdge,
const MSEdge *&  toEdge,
double &  departPos,
double &  arrivalPos,
MSStoppingPlace *&  bs,
const MSStage *const  lastStage,
bool &  ok 
)
protectedinherited

◆ passed()

int METriggeredCalibrator::passed ( ) const
inlineprotectedvirtual

Reimplemented from MSCalibrator.

Definition at line 60 of file METriggeredCalibrator.h.

References MSCalibrator::myEdgeMeanData, MSMeanData_Net::MSLaneMeanDataValues::nVehDeparted, MSMeanData_Net::MSLaneMeanDataValues::nVehEntered, and MSMeanData_Net::MSLaneMeanDataValues::nVehVaporized.

Referenced by execute().

Here is the caller graph for this function:

◆ registerLastDepart()

void SUMORouteHandler::registerLastDepart ( )
protectedinherited

◆ registerParent()

void GenericSAXHandler::registerParent ( const int  tag,
GenericSAXHandler handler 
)
inherited

Assigning a parent handler which is enabled when the specified tag is closed.

Definition at line 163 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().

Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().

Here is the caller graph for this function:

◆ remainingVehicleCapacity() [1/2]

int METriggeredCalibrator::remainingVehicleCapacity ( ) const
protected

returns the number of vehicles (of the current type) that still fit onto the segment

Definition at line 258 of file METriggeredCalibrator.cpp.

References MSNet::getInstance(), MSVehicleType::getLengthWithGap(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSCalibrator::myCurrentStateInterval, mySegment, MESegment::remainingVehicleCapacity(), and SUMOVehicleParameter::vtypeid.

Referenced by execute(), and invalidJam().

Here is the caller graph for this function:

◆ remainingVehicleCapacity() [2/2]

int MSCalibrator::remainingVehicleCapacity ( int  laneIndex) const
protectedinherited

◆ removed()

int MSCalibrator::removed ( ) const
inlineprotectedinherited

Definition at line 245 of file MSCalibrator.h.

References MSCalibrator::myRemoved.

Referenced by GUICalibrator::getParameterWindow().

Here is the caller graph for this function:

◆ removePending()

bool MSCalibrator::removePending ( )
protectedinherited

remove any vehicles which are scheduled for removal. return true if removals took place

Definition at line 281 of file MSCalibrator.cpp.

References MSCalibrator::getID(), MSNet::getInstance(), MSVehicle::getMutableLane(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSCalibrator::myToRemove, MSMoveReminder::NOTIFICATION_VAPORIZED_CALIBRATOR, MSVehicle::onRemovalFromNet(), MSLane::removeVehicle(), MSVehicleControl::scheduleVehicleRemoval(), time2string(), and WRITE_WARNING.

Referenced by MSCalibrator::execute().

Here is the caller graph for this function:

◆ reset()

void METriggeredCalibrator::reset ( )
protectedvirtual

reset collected vehicle data

Reimplemented from MSCalibrator.

Definition at line 266 of file METriggeredCalibrator.cpp.

References MSCalibrator::myEdgeMeanData, and MSMeanData_Net::MSLaneMeanDataValues::reset().

◆ scheduleRemoval()

bool MSCalibrator::scheduleRemoval ( SUMOTrafficObject veh)
inlineprotectedinherited

try to schedule the given vehicle for removal. return true if it isn't already scheduled

Definition at line 266 of file MSCalibrator.h.

References Named::getID(), and MSCalibrator::myToRemove.

Referenced by MSCalibrator::VehicleRemover::notifyEnter().

Here is the caller graph for this function:

◆ setFileName()

void GenericSAXHandler::setFileName ( const std::string &  name)
inherited

Sets the current file name.

Parameters
[in]nameThe name of the currently processed file
Todo:
Hmmm - this is as unsafe as having a direct access to the variable; recheck

Definition at line 72 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myFileName.

Referenced by NIImporter_SUMO::_loadNetwork(), GUISettingsHandler::GUISettingsHandler(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), PCNetProjectionLoader::load(), NITypeLoader::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), and XMLSubSys::runParser().

Here is the caller graph for this function:

◆ setFlow()

◆ setID()

virtual void Named::setID ( const std::string &  newID)
inlinevirtualinherited

resets the id

Parameters
[in]newIDThe new id of this object

Reimplemented in MSTransportable, and MSBaseVehicle.

Definition at line 81 of file Named.h.

References Named::myID.

Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().

Here is the caller graph for this function:

◆ setParameter()

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

set the inner key/value map in map<string, string> format

Definition at line 168 of file Parameterised.cpp.

References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().

◆ setParametersMap()

void Parameterised::setParametersMap ( const std::map< std::string, std::string > &  paramsMap)
inherited

set the inner key/value map in map<string, string> format

Definition at line 179 of file Parameterised.cpp.

References Parameterised::myMap, and Parameterised::setParameter().

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 190 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().

Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEPerson::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), and GNELaneType::setAttribute().

Here is the caller graph for this function:

◆ shiftTime()

virtual SUMOTime Command::shiftTime ( SUMOTime  ,
SUMOTime  ,
SUMOTime   
)
inlinevirtualinherited

Reschedule or deschedule the command when quick-loading state.

The implementations should return -1 if the command shall not be re-scheduled, or a value >= 0 that describe the new time at which the command shall be executed again.

Parameters
[in]currentTimeThe current simulation time
[in]execTimeThe time at which the command would have been executed
[in]newTimeThe simulation time at which the simulation is restarted
Returns
The time at which the command shall be executed again

Reimplemented in MSTrafficLightLogic::SwitchCommand.

Definition at line 82 of file Command.h.

◆ startElement()

void GenericSAXHandler::startElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname,
const XERCES_CPP_NAMESPACE::Attributes &  attrs 
)
inherited

The inherited method called when a new tag opens.

The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.

Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 97 of file GenericSAXHandler.cpp.

References GenericSAXHandler::convertTag(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myExpectedRoot, GenericSAXHandler::myPredefinedTags, GenericSAXHandler::myPredefinedTagsMML, GenericSAXHandler::myRootSeen, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, StringUtils::transcode(), and WRITE_WARNING.

◆ totalWished()

int MSCalibrator::totalWished ( ) const
protectedinherited

number of vehicles expected to pass this interval

Definition at line 254 of file MSCalibrator.cpp.

References MSCalibrator::myCurrentStateInterval, MSCalibrator::myIntervals, and STEPS2TIME.

Referenced by MSCalibrator::execute(), GUICalibrator::getParameterWindow(), and MSCalibrator::VehicleRemover::notifyEnter().

Here is the caller graph for this function:

◆ tryEmit() [1/2]

bool METriggeredCalibrator::tryEmit ( MESegment s,
MEVehicle vehicle 
)
protected

Definition at line 78 of file METriggeredCalibrator.cpp.

References SUMOVehicleParameter::depart, MSCalibrator::getID(), Named::getID(), MSNet::getInstance(), MSBaseVehicle::getParameter(), and MESegment::initialise().

Referenced by execute().

Here is the caller graph for this function:

◆ tryEmit() [2/2]

bool MSCalibrator::tryEmit ( MSLane lane,
MSVehicle vehicle 
)
protectedinherited

◆ unsetParameter()

void Parameterised::unsetParameter ( const std::string &  key)
inherited

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 92 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().

Here is the caller graph for this function:

◆ updateMeanData()

void METriggeredCalibrator::updateMeanData ( )
inlineprotectedvirtual

do nothing

Reimplemented from MSCalibrator.

Definition at line 75 of file METriggeredCalibrator.h.

◆ updateParameters()

void Parameterised::updateParameters ( const std::map< std::string, std::string > &  mapArg)
inherited

Adds or updates all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 98 of file Parameterised.cpp.

References Parameterised::setParameter().

Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().

Here is the caller graph for this function:

◆ vehicleApplies()

bool MSDetectorFileOutput::vehicleApplies ( const SUMOTrafficObject veh) const
inlineinherited

Checks whether the detector measures vehicles of the given type.

Parameters
[in]vehthe vehicle of which the type is checked.
Returns
whether it should be measured

Definition at line 139 of file MSDetectorFileOutput.h.

References MSDetectorFileOutput::detectPersons(), MSNet::getInstance(), MSVehicleType::getOriginalID(), MSNet::getVehicleControl(), SUMOTrafficObject::getVehicleType(), MSVehicleControl::getVTypeDistributionMembership(), SUMOTrafficObject::isVehicle(), and MSDetectorFileOutput::myVehicleTypes.

Referenced by MSE3Collector::enter(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSE2Collector::notifyEnter(), MSRouteProbe::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSInductLoop::notifyEnter(), MSInstantInductLoop::notifyMove(), and MESegment::vaporizeAnyCar().

Here is the caller graph for this function:

◆ warning()

void GenericSAXHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-warnings.

The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.

Parameters
[in]exceptionThe occurred exception to process

Definition at line 201 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.

◆ writeParams()

◆ writeXMLDetectorProlog()

void MSCalibrator::writeXMLDetectorProlog ( OutputDevice dev) const
virtualinherited

Open the XML-output.

The implementing function should open an xml element using OutputDevice::writeXMLHeader.

Parameters
[in]devThe output device to write the root into
Exceptions
IOErrorIf an error on writing occurs

Implements MSDetectorFileOutput.

Definition at line 630 of file MSCalibrator.cpp.

References OutputDevice::writeXMLHeader().

Referenced by MSCalibrator::MSCalibrator().

Here is the caller graph for this function:

◆ writeXMLOutput()

void MSCalibrator::writeXMLOutput ( OutputDevice dev,
SUMOTime  startTime,
SUMOTime  stopTime 
)
virtualinherited

Write the generated output to the given device.

Parameters
[in]devThe output device to write the data into
[in]startTimeFirst time step the data were gathered
[in]stopTimeLast time step the data were gathered
Exceptions
IOErrorIf an error on writing occurs

Implements MSDetectorFileOutput.

Definition at line 602 of file MSCalibrator.cpp.

References OutputDevice::closeTag(), MSCalibrator::getID(), MSMeanData::MeanDataValues::getSamples(), MSMeanData::MeanDataValues::getTravelledDistance(), MSCalibrator::myClearedInJam, MSCalibrator::myCurrentStateInterval, MSCalibrator::myEdgeMeanData, MSCalibrator::myInserted, MSCalibrator::myRemoved, MSMeanData_Net::MSLaneMeanDataValues::nVehDeparted, MSMeanData_Net::MSLaneMeanDataValues::nVehEntered, MSMeanData_Net::MSLaneMeanDataValues::nVehVaporized, OutputDevice::openTag(), MSCalibrator::passed(), STEPS2TIME, SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_SPEED, SUMO_TAG_INTERVAL, time2string(), toString(), MSCalibrator::updateMeanData(), and OutputDevice::writeAttr().

Referenced by MSCalibrator::intervalEnd().

Here is the caller graph for this function:

Field Documentation

◆ LeftoverReminders

std::vector< MSMoveReminder * > MSCalibrator::LeftoverReminders
staticprotectedinherited

Definition at line 340 of file MSCalibrator.h.

Referenced by MSCalibrator::cleanup(), and MSCalibrator::MSCalibrator().

◆ LeftoverVehicleParameters

std::vector< SUMOVehicleParameter * > MSCalibrator::LeftoverVehicleParameters
staticprotectedinherited

Definition at line 341 of file MSCalibrator.h.

Referenced by MSCalibrator::cleanup(), and MSCalibrator::myStartElement().

◆ myActiveContainerPlan

MSTransportable::MSTransportablePlan* MSRouteHandler::myActiveContainerPlan
protectedinherited

◆ myActivePlan

◆ myActiveRoute

◆ myActiveRouteColor

const RGBColor* SUMORouteHandler::myActiveRouteColor
protectedinherited

The currently parsed route's color.

Definition at line 222 of file SUMORouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().

◆ myActiveRouteID

◆ myActiveRoutePeriod

SUMOTime MSRouteHandler::myActiveRoutePeriod
protectedinherited

Definition at line 176 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), and MSRouteHandler::openRoute().

◆ myActiveRouteProbability

double SUMORouteHandler::myActiveRouteProbability
protectedinherited

◆ myActiveRouteRefID

std::string SUMORouteHandler::myActiveRouteRefID
protectedinherited

The id of the route the current route references to.

Definition at line 216 of file SUMORouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().

◆ myActiveRouteRepeat

int MSRouteHandler::myActiveRouteRepeat
protectedinherited

number of repetitions of the active route

Definition at line 175 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), and MSRouteHandler::openRoute().

◆ myActiveRouteStops

std::vector<SUMOVehicleParameter::Stop> SUMORouteHandler::myActiveRouteStops
protectedinherited

◆ myAddVehiclesDirectly

bool MSRouteHandler::myAddVehiclesDirectly
protectedinherited

Information whether vehicles shall be directly added to the network or kept within the buffer.

Definition at line 185 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), and MSRouteHandler::closeVehicle().

◆ myAmActive

bool MSCalibrator::myAmActive
protectedinherited

whether the calibrator was active when last checking

Definition at line 330 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), and MSCalibrator::isActive().

◆ myAmLoadingState

bool MSRouteHandler::myAmLoadingState
protectedinherited

◆ myAttrType

ParameterisedAttrType Parameterised::myAttrType
privateinherited

parameterised type

Definition at line 143 of file Parameterised.h.

Referenced by Parameterised::Parameterised(), and Parameterised::setParameter().

◆ myBeginDefault

SUMOTime SUMORouteHandler::myBeginDefault
protectedinherited

The default value for flow begins.

Definition at line 240 of file SUMORouteHandler.h.

Referenced by SUMORouteHandler::myEndElement(), and SUMORouteHandler::myStartElement().

◆ myCharactersVector

std::vector<std::string> GenericSAXHandler::myCharactersVector
privateinherited

A list of character strings obtained so far to build the complete characters string at the end.

Definition at line 300 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::characters(), GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().

◆ myClearedInJam

int MSCalibrator::myClearedInJam
protectedinherited

◆ myCurrentCosts

double SUMORouteHandler::myCurrentCosts
protectedinherited

The currently parsed route costs.

Definition at line 225 of file SUMORouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().

◆ myCurrentRouteDistribution

RandomDistributor<const MSRoute*>* MSRouteHandler::myCurrentRouteDistribution
protectedinherited

The currently parsed distribution of routes (probability->route)

Definition at line 194 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeRoute(), MSRouteHandler::closeRouteDistribution(), MSRouteHandler::openRoute(), and MSRouteHandler::openRouteDistribution().

◆ myCurrentRouteDistributionID

std::string MSRouteHandler::myCurrentRouteDistributionID
protectedinherited

The id of the currently parsed route distribution.

Definition at line 197 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeRouteDistribution(), MSRouteHandler::openRoute(), and MSRouteHandler::openRouteDistribution().

◆ myCurrentStateInterval

◆ myCurrentVType

◆ myCurrentVTypeDistribution

RandomDistributor<MSVehicleType*>* MSRouteHandler::myCurrentVTypeDistribution
protectedinherited

The currently parsed distribution of vehicle types (probability->vehicle type)

Definition at line 188 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeVehicleTypeDistribution(), MSRouteHandler::closeVType(), and MSRouteHandler::openVehicleTypeDistribution().

◆ myCurrentVTypeDistributionID

std::string MSRouteHandler::myCurrentVTypeDistributionID
protectedinherited

The id of the currently parsed vehicle type distribution.

Definition at line 191 of file MSRouteHandler.h.

Referenced by MSRouteHandler::closeVehicleTypeDistribution(), and MSRouteHandler::openVehicleTypeDistribution().

◆ myDefaultSpeed

double MSCalibrator::myDefaultSpeed
protectedinherited

The default (maximum) speed on the segment.

Definition at line 325 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), and GUICalibrator::getParameterWindow().

◆ myDetectPersons

const int MSDetectorFileOutput::myDetectPersons
protectedinherited

Whether pedestrians shall be detected instead of vehicles.

Definition at line 180 of file MSDetectorFileOutput.h.

Referenced by MSDetectorFileOutput::detectPersons().

◆ myDidInit

bool MSCalibrator::myDidInit
protectedinherited

The information whether init was called.

Definition at line 323 of file MSCalibrator.h.

Referenced by MSCalibrator::init(), MSCalibrator::MSCalibrator(), and MSCalibrator::myEndElement().

◆ myDidSpeedAdaption

bool MSCalibrator::myDidSpeedAdaption
protectedinherited

The information whether speed was adapted in the current interval.

Definition at line 321 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), and MSCalibrator::intervalEnd().

◆ myEdge

const MSEdge* const MSCalibrator::myEdge
protectedinherited

◆ myEdgeMeanData

◆ myEndDefault

SUMOTime SUMORouteHandler::myEndDefault
protectedinherited

The default value for flow ends.

Definition at line 243 of file SUMORouteHandler.h.

Referenced by SUMORouteHandler::myEndElement(), and SUMORouteHandler::myStartElement().

◆ myExpectedRoot

std::string GenericSAXHandler::myExpectedRoot
privateinherited

The root element to expect, empty string disables the check.

Definition at line 312 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::startElement().

◆ myFileName

std::string GenericSAXHandler::myFileName
privateinherited

The name of the currently parsed file.

Definition at line 309 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::getFileName(), and GenericSAXHandler::setFileName().

◆ myFirstDepart

SUMOTime SUMORouteHandler::myFirstDepart
protectedinherited

the first read departure time

Definition at line 246 of file SUMORouteHandler.h.

Referenced by SUMORouteHandler::getFirstDepart(), and SUMORouteHandler::registerLastDepart().

◆ myFrequency

SUMOTime MSCalibrator::myFrequency
protectedinherited

The frequeny with which to check for calibration.

Definition at line 311 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), and maximumInflow().

◆ myHardFail

const bool SUMORouteHandler::myHardFail
protectedinherited

◆ myHaveInvalidJam

bool MSCalibrator::myHaveInvalidJam
protectedinherited

whether the calibrator has registered an invalid jam in the last execution step

Definition at line 336 of file MSCalibrator.h.

Referenced by MSCalibrator::execute(), and MSCalibrator::VehicleRemover::notifyEnter().

◆ myHaveWarnedAboutClearingJam

bool MSCalibrator::myHaveWarnedAboutClearingJam
protectedinherited

The default (maximum) speed on the segment.

Definition at line 327 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::intervalEnd(), and MSCalibrator::VehicleRemover::notifyEnter().

◆ myID [1/2]

◆ myID [2/2]

◆ myIdSupplier

IDSupplier SUMORouteHandler::myIdSupplier
protectedinherited

generates numerical ids

Definition at line 237 of file SUMORouteHandler.h.

◆ myInserted

int MSCalibrator::myInserted
protectedinherited

The number of vehicles that were inserted in the current interval.

Definition at line 315 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), MSCalibrator::getNewVehicleID(), MSCalibrator::inserted(), MSCalibrator::intervalEnd(), and MSCalibrator::writeXMLOutput().

◆ myInsertStopEdgesAt

◆ myInstances

std::map< std::string, MSCalibrator * > MSCalibrator::myInstances
staticprotectedinherited

◆ myIntervals

◆ myInvalidJamThreshold

double MSCalibrator::myInvalidJamThreshold
protectedinherited

relative speed threshold for detecting and clearing invalid jam

Definition at line 333 of file MSCalibrator.h.

Referenced by invalidJam(), and MSCalibrator::invalidJam().

◆ myLane

MSLane* const MSCalibrator::myLane
protectedinherited

the lane on which this calibrator lies (0 if the whole edge is covered at once)

Definition at line 282 of file MSCalibrator.h.

Referenced by MSCalibrator::execute(), MSCalibrator::getLane(), GUICalibrator::GUICalibrator(), MSCalibrator::MSCalibrator(), and MSCalibrator::myStartElement().

◆ myLaneMeanData

std::vector<MSMeanData_Net::MSLaneMeanDataValues*> MSCalibrator::myLaneMeanData
protectedinherited

data collector for the calibrator

Definition at line 290 of file MSCalibrator.h.

Referenced by MSCalibrator::MSCalibrator(), MSCalibrator::reset(), and MSCalibrator::updateMeanData().

◆ myLastDepart

SUMOTime SUMORouteHandler::myLastDepart
protectedinherited

The insertion time of the vehicle read last.

Definition at line 210 of file SUMORouteHandler.h.

Referenced by SUMORouteHandler::checkLastDepart(), SUMORouteHandler::getLastDepart(), and SUMORouteHandler::registerLastDepart().

◆ myLoadedParameterised

Parameterised SUMORouteHandler::myLoadedParameterised
protectedinherited

Parameterised used for saving loaded generic parameters that aren't saved in Vehicles or Vehicle Types.

Definition at line 234 of file SUMORouteHandler.h.

Referenced by SUMORouteHandler::addParam(), and GNERouteHandler::closeRoute().

◆ myMap

◆ myMeanDataParent

MSMeanData_Net MSCalibrator::myMeanDataParent
protectedinherited

dummy parent to retrieve vType filter

Definition at line 288 of file MSCalibrator.h.

Referenced by MSCalibrator::MSCalibrator().

◆ myOutput

OutputDevice* MSCalibrator::myOutput
protectedinherited

The device for xml statistics.

Definition at line 308 of file MSCalibrator.h.

Referenced by MSCalibrator::intervalEnd(), and MSCalibrator::MSCalibrator().

◆ myParentHandler

GenericSAXHandler* GenericSAXHandler::myParentHandler
privateinherited

The handler to give control back to.

Definition at line 303 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().

◆ myParentIndicator

int GenericSAXHandler::myParentIndicator
privateinherited

The tag indicating that control should be given back.

Definition at line 306 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().

◆ myParsingRNG

◆ myPos

const double MSCalibrator::myPos
protectedinherited

the position on the edge where this calibrator lies

Definition at line 284 of file MSCalibrator.h.

Referenced by GUICalibrator::GUICalibrator().

◆ myPredefinedTags

AttrMap GenericSAXHandler::myPredefinedTags
privateinherited

◆ myPredefinedTagsMML

std::vector<std::string> GenericSAXHandler::myPredefinedTagsMML
privateinherited

the map from ids to their string representation

Definition at line 285 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::GenericSAXHandler(), and GenericSAXHandler::startElement().

◆ myProbe

const MSRouteProbe* const MSCalibrator::myProbe
protectedinherited

the route probe to retrieve routes from

Definition at line 286 of file MSCalibrator.h.

Referenced by execute(), MSCalibrator::execute(), and MSCalibrator::getRouteProbe().

◆ myRemoved

int MSCalibrator::myRemoved
protectedinherited

◆ myRootSeen

bool GenericSAXHandler::myRootSeen
privateinherited

whether the reader has already seen the root element

Definition at line 315 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::startElement().

◆ mySegment

MESegment* METriggeredCalibrator::mySegment
private

mesoscopic edge segment the calibrator lies on

Definition at line 84 of file METriggeredCalibrator.h.

Referenced by execute(), invalidJam(), maximumInflow(), METriggeredCalibrator(), and remainingVehicleCapacity().

◆ mySpeedIsDefault

bool MSCalibrator::mySpeedIsDefault
protectedinherited

The information whether the speed adaption has been reset.

Definition at line 319 of file MSCalibrator.h.

Referenced by execute(), and MSCalibrator::execute().

◆ myTagMap

TagMap GenericSAXHandler::myTagMap
privateinherited

◆ myToRemove

std::set<std::string> MSCalibrator::myToRemove
protectedinherited

set of vehicle ids to remove

Note
: we avoid keeping vehicle points because someone else might invalidate it before look at it again (i.e. another calibrator)

Definition at line 305 of file MSCalibrator.h.

Referenced by MSCalibrator::removePending(), and MSCalibrator::scheduleRemoval().

◆ myVehicleParameter

SUMOVehicleParameter* SUMORouteHandler::myVehicleParameter
protectedinherited

Parameter of the current vehicle, trip, person, container or flow.

Definition at line 207 of file SUMORouteHandler.h.

Referenced by MSRouteHandler::addFlowPerson(), SUMORouteHandler::addParam(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), MSRouteHandler::addRide(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), MSRouteHandler::addTransport(), MSRouteHandler::addVehicleStopsToImplicitRoute(), MSRouteHandler::addWalk(), RORouteHandler::addWalk(), SUMORouteHandler::checkLastDepart(), MSRouteHandler::closeContainer(), RORouteHandler::closeContainer(), MSRouteHandler::closeFlow(), GNERouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closePerson(), GNERouteHandler::closePerson(), RORouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), GNERouteHandler::closePersonFlow(), RORouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), GNERouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::closeRouteDistribution(), MSRouteHandler::closeTrip(), GNERouteHandler::closeTrip(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), GNERouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSStateHandler::myEndElement(), SUMORouteHandler::myEndElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), RORouteHandler::myStartElement(), SUMORouteHandler::myStartElement(), GNERouteHandler::openFlow(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), RORouteHandler::openRouteDistribution(), GNERouteHandler::openTrip(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), RORouteHandler::parseGeoEdges(), and SUMORouteHandler::registerLastDepart().

◆ myVehicleRemovers

std::vector<VehicleRemover*> MSCalibrator::myVehicleRemovers
protectedinherited

Definition at line 299 of file MSCalibrator.h.

Referenced by MSCalibrator::MSCalibrator(), and MSCalibrator::~MSCalibrator().

◆ myVehicleTypes

std::set<std::string> MSDetectorFileOutput::myVehicleTypes
protectedinherited

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