![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Calibrates the flow on a segment to a specified one. More...
#include <METriggeredCalibrator.h>
Public Types | |
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 | 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) |
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 |
SUMOTime | getLastDepart () const |
Returns the last loaded depart time. 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 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 | setID (const std::string &newID) |
resets the id More... | |
void | setID (const std::string &newID) |
resets the id 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 | 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 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 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... | |
Private Attributes | |
MESegment * | mySegment |
mesoscopic edge segment the calibrator lies on More... | |
Static Private Attributes | |
static std::set< MSTrigger * > | myInstances |
inherited from GenericSAXHandler | |
void | parseFromViaTo (std::string element, 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 | 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 MSTransportable::Stage *const lastStage, bool &ok) |
@ brief parse depart- and arrival positions of a walk More... | |
ConstMSEdgeVector | myActiveRoute |
The current route. More... | |
MSTransportable::MSTransportablePlan * | myActivePlan |
The plan of the current person. More... | |
MSTransportable::MSTransportablePlan * | myActiveContainerPlan |
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... | |
Virtual methods to implement by derived classes | |
virtual void | detectorUpdate (const SUMOTime step) |
Updates the detector (computes values) More... | |
virtual GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
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... | |
bool | detectPersons () const |
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 (MSVehicle *veh) |
try to schedule the givne 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... | |
std::vector< MSMeanData_Net::MSLaneMeanDataValues * > | myLaneMeanData |
data collector for the calibrator More... | |
MSMeanData_Net::MSLaneMeanDataValues | myEdgeMeanData |
accumlated data for the whole edge More... | |
MSMeanData_Net | myMeanDataParent |
dummy parent to retrieve vType filter More... | |
std::vector< AspiredState > | myIntervals |
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... | |
OutputDevice * | myOutput |
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... | |
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 |
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... | |
SUMOVehicleParameter * | myVehicleParameter |
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 RGBColor * | myActiveRouteColor |
The currently parsed route's color. More... | |
double | myCurrentCosts |
The currently parsed route costs. More... | |
std::vector< SUMOVehicleParameter::Stop > | myActiveRouteStops |
List of the stops on the parsed route. More... | |
SUMOVTypeParameter * | myCurrentVType |
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... | |
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... | |
void | setSchemaSeen (const bool schemaSeen=true) |
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... | |
attributes parsing | |
AttrMap | myPredefinedTags |
std::map< int, std::string > | myPredefinedTagsMML |
the map from ids to their string representation More... | |
typedef std::map< int, 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... | |
GenericSAXHandler * | myParentHandler |
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 | mySchemaSeen |
whether the reader has already seen a schema More... | |
typedef std::map< std::string, int > | TagMap |
Calibrates the flow on a segment to a specified one.
Definition at line 38 of file METriggeredCalibrator.h.
|
privateinherited |
Definition at line 285 of file GenericSAXHandler.h.
|
privateinherited |
Definition at line 299 of file GenericSAXHandler.h.
|
inherited |
enum for stops
Enumerator | |
---|---|
STOPPOS_VALID | |
STOPPOS_INVALID_STARTPOS | |
STOPPOS_INVALID_ENDPOS | |
STOPPOS_INVALID_LANELENGTH |
Definition at line 53 of file SUMORouteHandler.h.
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 std::string & | vTypes | ||
) |
constructor
Definition at line 51 of file METriggeredCalibrator.cpp.
References MESegment::addDetector(), MSCalibrator::getID(), MSCalibrator::myEdgeMeanData, mySegment, and MSMoveReminder::setDescription().
|
virtual |
destructor
Definition at line 65 of file METriggeredCalibrator.cpp.
References MSCalibrator::intervalEnd(), MSCalibrator::myCurrentStateInterval, MSCalibrator::myEdgeMeanData, MSCalibrator::myIntervals, mySegment, and MESegment::removeDetector().
|
protectedvirtualinherited |
Processing of a container.
Implements SUMORouteHandler.
Definition at line 1250 of file MSRouteHandler.cpp.
|
privateinherited |
delete already created MSTransportablePlans if error occurs before handing over responsibility to a MSTransportable.
Definition at line 780 of file MSRouteHandler.cpp.
References MSTransportableControl::buildPerson(), SUMOVehicleParameter::depart, GenericSAXHandler::error(), MSNet::getInstance(), MSNet::getPersonControl(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, and toString().
Referenced by MSRouteHandler::closePersonFlow().
|
protectedinherited |
assign arbitrary vehicle parameters
Definition at line 342 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().
|
protectedvirtualinherited |
Processing of a person.
Implements SUMORouteHandler.
Definition at line 1245 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
add a routing request for a walking or intermodal person
Implements SUMORouteHandler.
Definition at line 1126 of file MSRouteHandler.cpp.
References SUMOVehicleParameter::depart, DEPART_POS_RANDOM, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, MSEdge::dictionary(), MSLane::getEdge(), OptionsCont::getFloat(), MSNet::getInstance(), MSStoppingPlace::getLane(), SUMOSAXAttributes::getOpt(), OptionsCont::getOptions(), SUMOSAXAttributes::getOptSUMOTimeReporting(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOSAXAttributes::hasAttribute(), StringTokenizer::hasNext(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myActiveRoute, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parsePersonModes(), MSRouteHandler::parseWalkPositions(), RandHelper::rand(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DURATION, SUMO_ATTR_FROM, SUMO_ATTR_MODES, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SVC_PASSENGER, and VEHPARS_FORCE_REROUTE.
|
protectedvirtualinherited |
Processing of a ride.
Implements SUMORouteHandler.
Definition at line 1255 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
Processing of a stop.
Implements SUMORouteHandler.
Definition at line 902 of file MSRouteHandler.cpp.
References SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMORouteHandler::checkStopPos(), SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::depart, SUMOVehicleParameter::departPos, MSLane::dictionary(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MSStoppingPlace::getBeginLanePosition(), MSLane::getEdge(), MSStoppingPlace::getEndLanePosition(), MsgHandler::getErrorInstance(), Named::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLanes(), MSEdge::getLength(), SUMOSAXAttributes::getOpt(), MSNet::getStoppingPlace(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, SUMOVehicleParameter::interpretEdgePos(), SUMOVehicleParameter::Stop::lane, MAX2(), MIN_STOP_LENGTH, MSRouteHandler::myActiveContainerPlan, MSRouteHandler::myActivePlan, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteID, SUMORouteHandler::myActiveRouteStops, SUMORouteHandler::myInsertStopEdgesAt, SUMORouteHandler::myVehicleParameter, NUMERICAL_EPS, SUMOVehicleParameter::Stop::parkingarea, SUMORouteHandler::parseStop(), POSITION_EPS, SUMOVehicleParameter::Stop::startPos, SUMOVehicleParameter::stops, SUMO_ATTR_ACTTYPE, 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_PARKING_AREA, toString(), SUMOVehicleParameter::Stop::until, VEHPARS_DEPARTPOS_SET, MSTransportable::WAITING, SUMOVehicleParameter::wasSet(), WRITE_ERROR, and WRITE_WARNING.
|
inlineinherited |
Adds this object to the given container.
[in,filled] | cont The container to add this item to |
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
|
inlineinherited |
Adds this object to the given container.
[in,filled] | cont The container to add this item to |
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
|
protectedvirtualinherited |
Processing of a tranship.
Implements SUMORouteHandler.
Definition at line 1265 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
Processing of a transport.
Implements SUMORouteHandler.
Definition at line 1260 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
add a fully specified walk
Implements SUMORouteHandler.
Definition at line 1188 of file MSRouteHandler.cpp.
References MSRouteHandler::deleteActivePlans(), SUMOVehicleParameter::depart, DEPART_POS_RANDOM, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, MSRoute::dictionary(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteID, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, MSEdge::parseEdgesList(), MSRouteHandler::parseWalkPositions(), RandHelper::rand(), SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DURATION, SUMO_ATTR_EDGES, SUMO_ATTR_ROUTE, and SUMO_ATTR_SPEED.
|
inlinevirtualinherited |
Builds the graphical representation.
Meant to be overridden by graphical versions of the detectors
Reimplemented in GUIMEInductLoop, GUIInstantInductLoop, GUIInductLoop, GUIE3Collector, and GUIE2Collector.
Definition at line 131 of file MSDetectorFileOutput.h.
|
protectedinherited |
Builds an error message.
The error message includes the file name and the line/column information as supported by the given SAXParseException
[in] | exception | The name of the currently processed file |
Definition at line 186 of file GenericSAXHandler.cpp.
References GenericSAXHandler::getFileName(), and transcode().
Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().
|
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.
Definition at line 169 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myCharactersVector, and StringUtils::transcode().
|
protectedinherited |
Checks whether the route file is sorted by departure time if needed.
Definition at line 60 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().
|
staticinherited |
check start and end position of a stop
return
Definition at line 283 of file SUMORouteHandler.cpp.
References SUMORouteHandler::STOPPOS_INVALID_ENDPOS, SUMORouteHandler::STOPPOS_INVALID_LANELENGTH, SUMORouteHandler::STOPPOS_INVALID_STARTPOS, and SUMORouteHandler::STOPPOS_VALID.
Referenced by NLTriggerBuilder::addAccess(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), GNEStoppingPlace::fixAdditionalProblem(), SUMORouteHandler::isStopPosValid(), RONetHandler::parseAccess(), NLTriggerBuilder::parseAndBeginParkingArea(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildChargingStation(), NLTriggerBuilder::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildParkingArea(), NLTriggerBuilder::parseAndBuildStoppingPlace(), and RONetHandler::parseStoppingPlace().
|
staticinherited |
cleanup remaining data structures
Definition at line 485 of file MSCalibrator.cpp.
References MSCalibrator::LeftoverReminders, and MSCalibrator::LeftoverVehicleParameters.
Referenced by MSNet::clearAll().
|
inlineprotectedinherited |
Definition at line 222 of file MSCalibrator.h.
References MSCalibrator::myClearedInJam.
Referenced by GUICalibrator::getParameterWindow().
|
protectedvirtualinherited |
Ends the processing of a container.
Implements SUMORouteHandler.
Definition at line 820 of file MSRouteHandler.cpp.
References MSTransportableControl::buildContainer(), SUMORouteHandler::checkLastDepart(), GenericSAXHandler::error(), MSNet::getContainerControl(), MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, MSRouteHandler::myActiveContainerPlan, MSRouteHandler::myAddVehiclesDirectly, SUMORouteHandler::myVehicleParameter, SUMORouteHandler::registerLastDepart(), and SUMOVehicleParameter::vtypeid.
|
protectedvirtualinherited |
Ends the processing of a flow.
Implements SUMORouteHandler.
Definition at line 848 of file MSRouteHandler.cpp.
References SUMORouteHandler::checkLastDepart(), MSRouteHandler::closeRoute(), SUMOVehicleParameter::depart, MSRoute::dictionary(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOVehicleParameter::id, SUMORouteHandler::myActiveRouteID, MSRouteHandler::myAddVehiclesDirectly, SUMORouteHandler::myInsertStopEdgesAt, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::parametersSet, SUMORouteHandler::registerLastDepart(), SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, SUMOVehicleParameter::repetitionsDone, SUMOVehicleParameter::routeid, string2time(), VEHPARS_FORCE_REROUTE, and SUMOVehicleParameter::vtypeid.
|
protectedvirtualinherited |
Ends the processing of a person.
Implements SUMORouteHandler.
Definition at line 702 of file MSRouteHandler.cpp.
References MSTransportableControl::buildPerson(), SUMORouteHandler::checkLastDepart(), MSRouteHandler::deleteActivePlans(), SUMOVehicleParameter::depart, GenericSAXHandler::error(), MSNet::getInstance(), OptionsCont::getOptions(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myAddVehiclesDirectly, MSRouteHandler::myAmLoadingState, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMORouteHandler::registerLastDepart(), string2time(), and SUMOVehicleParameter::vtypeid.
|
protectedvirtualinherited |
Ends the processing of a personFlow.
Implements SUMORouteHandler.
Definition at line 735 of file MSRouteHandler.cpp.
References MSRouteHandler::addFlowPerson(), SUMORouteHandler::checkLastDepart(), MSRouteHandler::deleteActivePlans(), SUMOVehicleParameter::depart, GenericSAXHandler::error(), MSNet::getInstance(), OptionsCont::getOptions(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, MSRouteHandler::myActivePlan, MSRouteHandler::myAddVehiclesDirectly, MSRouteHandler::myAmLoadingState, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, RandHelper::rand(), SUMORouteHandler::registerLastDepart(), SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, string2time(), SUMOTime_MAX, TIME2STEPS, and SUMOVehicleParameter::vtypeid.
|
protectedvirtualinherited |
closes (ends) the building of a route.
Implements SUMORouteHandler.
Definition at line 448 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSRoute::addReference(), MSRoute::dictionary(), MSNet::getInstance(), MSGlobals::gStateLoaded, SUMOVehicleParameter::id, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteColor, SUMORouteHandler::myActiveRouteID, SUMORouteHandler::myActiveRouteProbability, SUMORouteHandler::myActiveRouteRefID, SUMORouteHandler::myActiveRouteStops, SUMORouteHandler::myCurrentCosts, MSRouteHandler::myCurrentRouteDistribution, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::repetitionNumber, and MSRoute::setCosts().
Referenced by MSRouteHandler::closeFlow(), and MSRouteHandler::closeTrip().
|
protectedvirtualinherited |
closes (ends) the building of a distribution
Implements SUMORouteHandler.
Definition at line 565 of file MSRouteHandler.cpp.
References MSRoute::dictionary(), RandomDistributor< T >::getOverallProb(), MSGlobals::gStateLoaded, MSRouteHandler::myCurrentRouteDistribution, MSRouteHandler::myCurrentRouteDistributionID, MSRouteHandler::myParsingRNG, and SUMORouteHandler::myVehicleParameter.
|
protectedvirtualinherited |
Ends the processing of a trip.
Implements SUMORouteHandler.
Definition at line 894 of file MSRouteHandler.cpp.
References MSRouteHandler::closeRoute(), MSRouteHandler::closeVehicle(), SUMORouteHandler::myVehicleParameter, SUMOVehicleParameter::parametersSet, and VEHPARS_FORCE_REROUTE.
|
protectedvirtualinherited |
Ends the processing of a vehicle (note: is virtual because is reimplemented in MSStateHandler)
Implements SUMORouteHandler.
Reimplemented in MSStateHandler.
Definition at line 587 of file MSRouteHandler.cpp.
References MSInsertionControl::add(), MSRoute::addReference(), MSVehicleControl::addVehicle(), MSVehicleControl::buildVehicle(), SUMORouteHandler::checkLastDepart(), MSInsertionControl::computeRandomDepartOffset(), DEFAULT_VTYPE_ID, MSVehicleControl::deleteVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, SUMOVehicleParameter::departProcedure, MSRoute::dictionary(), MSGlobals::gCheckRoutes, MSVehicleType::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOVehicle::getParameter(), MSVehicleControl::getQuota(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSGlobals::gStateLoaded, SUMOVehicleParameter::id, SUMORouteHandler::myActiveRouteID, MSRouteHandler::myAddVehiclesDirectly, MSRouteHandler::myAmLoadingState, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, SUMORouteHandler::registerLastDepart(), MSRoute::release(), SUMOVehicleParameter::routeid, string2time(), SVC_PEDESTRIAN, toString(), VEHPARS_ROUTE_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and WRITE_WARNING.
Referenced by MSRouteHandler::closeTrip(), and MSStateHandler::closeVehicle().
|
protectedvirtualinherited |
closes (ends) the building of a distribution
Implements SUMORouteHandler.
Definition at line 372 of file MSRouteHandler.cpp.
References MSNet::getInstance(), RandomDistributor< T >::getOverallProb(), MSGlobals::gStateLoaded, MSRouteHandler::myCurrentVTypeDistribution, and MSRouteHandler::myCurrentVTypeDistributionID.
|
protectedvirtualinherited |
Ends the processing of a vehicle type.
Implements SUMORouteHandler.
Definition at line 803 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSVehicleType::build(), MSVehicleType::getDefaultProbability(), MSVehicleType::getID(), MSNet::getInstance(), MSGlobals::gStateLoaded, SUMORouteHandler::myCurrentVType, and MSRouteHandler::myCurrentVTypeDistribution.
|
privateinherited |
converts from c++-string into unicode
[in] | name | The string to convert |
Definition at line 80 of file GenericSAXHandler.cpp.
Referenced by GenericSAXHandler::GenericSAXHandler().
|
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.
[in] | tag | The string to convert |
Definition at line 176 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myTagMap, and SUMO_TAG_NOTHING.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().
|
protectedinherited |
flow in the current interval in veh/h
Definition at line 248 of file MSCalibrator.cpp.
References MSNet::getInstance(), MSCalibrator::myCurrentStateInterval, MSCalibrator::passed(), and STEPS2TIME.
Referenced by GUICalibrator::getParameterWindow().
|
protectedinherited |
measured speed in the current interval
Definition at line 254 of file MSCalibrator.cpp.
References MSMeanData::MeanDataValues::getSamples(), MSMeanData::MeanDataValues::getTravelledDistance(), and MSCalibrator::myEdgeMeanData.
Referenced by GUICalibrator::getParameterWindow().
|
privateinherited |
delete already created MSTransportablePlans if error occurs before handing over responsibility to a MSTransportable.
Definition at line 63 of file MSRouteHandler.cpp.
References MSRouteHandler::myActiveContainerPlan, and MSRouteHandler::myActivePlan.
Referenced by MSRouteHandler::addWalk(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), and MSRouteHandler::myStartElement().
|
inlinevirtualinherited |
Updates the detector (computes values)
[in] | step | The current time step |
Reimplemented in MSMeanData_Harmonoise, MSMeanData, MSE3Collector, and MSE2Collector.
Definition at line 121 of file MSDetectorFileOutput.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 166 of file MSDetectorFileOutput.h.
References MSDetectorFileOutput::myDetectPersons.
Referenced by MSMeanData::init(), and MSDetectorFileOutput::vehicleApplies().
|
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.
Definition at line 120 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().
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
[in] | exception | The occurred exception to process |
ProcessError | On any call |
Definition at line 205 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::myStartElement().
the implementation of the MSTrigger / Command interface. Calibrating takes place here.
Reimplemented from MSCalibrator.
Definition at line 89 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(), MSRouteProbe::getRoute(), MELoop::getSegmentForEdge(), MSEdge::getSpeedLimit(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSGlobals::gMesoNet, SUMOVehicleParameter::id, MSCalibrator::intervalEnd(), invalidJam(), MSCalibrator::isCurrentStateActive(), MAX2(), maximumInflow(), MEVehicle::moveRoutePointer(), 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, MEVehicle::setEventTime(), MSEdge::setMaxSpeed(), MEVehicle::setSegment(), MESegment::setSpeed(), STEPS2TIME, TIME2STEPS, time2string(), tryEmit(), MESegment::vaporizeAnyCar(), SUMOVehicleParameter::vtypeid, and WRITE_WARNING.
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
ProcessError | On any call |
[in] | exception | The occurred exception to process |
Definition at line 211 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
|
inherited |
returns the current file name
Definition at line 74 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::addInstantE1Detector(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), NLHandler::addRouteProbeDetector(), NLHandler::addVTypeProbeDetector(), NLHandler::beginE3Detector(), GenericSAXHandler::buildErrorMessage(), PCNetProjectionLoader::load(), NITypeLoader::load(), NLHandler::myEndElement(), RODFDetectorHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NLHandler::myStartElement(), GUISettingsHandler::myStartElement(), SUMORouteHandler::myStartElement(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildPoly(), XMLSubSys::runParser(), GenericSAXHandler::startElement(), and SUMORouteLoader::SUMORouteLoader().
|
inherited |
returns the first departure time that was ever read
Definition at line 330 of file SUMORouteHandler.cpp.
References SUMORouteHandler::myFirstDepart.
Referenced by SUMORouteLoader::getFirstDepart().
|
inlineinherited |
Definition at line 90 of file MSCalibrator.h.
References Named::getID().
Referenced by execute(), MSCalibrator::execute(), MSCalibrator::getNewVehicleID(), MSCalibrator::init(), METriggeredCalibrator(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSCalibrator::removePending(), tryEmit(), and MSCalibrator::writeXMLOutput().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 69 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLanes2Edges(), 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(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_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().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 69 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLanes2Edges(), 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(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_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().
|
inherited |
Returns the last loaded depart time.
Definition at line 336 of file SUMORouteHandler.cpp.
References SUMORouteHandler::myLastDepart.
Referenced by SUMORouteLoader::loadUntil().
|
protectedinherited |
determine id of new vehicle from calibrator state
Definition at line 579 of file MSCalibrator.cpp.
References MSCalibrator::getID(), MSCalibrator::myCurrentStateInterval, MSCalibrator::myInserted, STEPS2TIME, and toString().
Referenced by execute(), and MSCalibrator::execute().
|
inlinestaticinherited |
get parsing RNG
Definition at line 62 of file MSRouteHandler.h.
References MSRouteHandler::myParsingRNG.
Referenced by GUIVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), MEVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), MSInsertionControl::computeRandomDepartOffset(), MSInsertionControl::determineCandidates(), NLBuilder::initRandomness(), MSDevice_ToC::MSDevice_ToC(), MSStateHandler::myStartElement(), and MSStateHandler::saveRNGs().
|
protectedinherited |
Definition at line 113 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().
|
inlineprotectedinherited |
Definition at line 216 of file MSCalibrator.h.
References MSCalibrator::myInserted.
Referenced by GUICalibrator::getParameterWindow().
|
protectedinherited |
Definition at line 213 of file MSCalibrator.cpp.
References MSCalibrator::myClearedInJam, MSCalibrator::myCurrentStateInterval, MSCalibrator::myDidSpeedAdaption, MSCalibrator::myHaveWarnedAboutClearingJam, MSCalibrator::myInserted, MSCalibrator::myOutput, MSCalibrator::myRemoved, MSCalibrator::reset(), and MSCalibrator::writeXMLOutput().
Referenced by execute(), MSCalibrator::execute(), ~METriggeredCalibrator(), and MSCalibrator::~MSCalibrator().
|
protected |
returns whether the segment is jammed although it should not be
Definition at line 243 of file METriggeredCalibrator.cpp.
References MESegment::getBruttoOccupancy(), MESegment::getEdge(), MESegment::getMeanSpeed(), MSEdge::getSpeedLimit(), maximumInflow(), mySegment, and remainingVehicleCapacity().
Referenced by execute().
|
protectedinherited |
Definition at line 436 of file MSCalibrator.cpp.
References MSEdge::getLanes(), MSLane::getMeanSpeed(), MSEdge::getSpeedLimit(), MSLane::getVehicleNumber(), MSCalibrator::myEdge, and MSCalibrator::remainingVehicleCapacity().
Referenced by MSCalibrator::execute().
|
inlineprotectedinherited |
Definition at line 170 of file MSCalibrator.h.
References MSCalibrator::myAmActive.
Referenced by GUICalibrator::drawGL(), GUICalibrator::getParameterWindow(), and MSCalibrator::VehicleRemover::notifyEnter().
|
protectedinherited |
Definition at line 227 of file MSCalibrator.cpp.
References MSCalibrator::myCurrentStateInterval, and MSCalibrator::myIntervals.
Referenced by execute(), and MSCalibrator::execute().
|
staticinherited |
check if start and end position of a stop is valid
Definition at line 320 of file SUMORouteHandler.cpp.
References SUMORouteHandler::checkStopPos(), and SUMORouteHandler::STOPPOS_VALID.
Referenced by GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), and GNEStop::isValid().
|
inlineinherited |
Checks whether the detector is type specific.
Definition at line 162 of file MSDetectorFileOutput.h.
References MSDetectorFileOutput::myVehicleTypes.
|
inlineprotected |
returns the maximum number of vehicles that could enter from upstream until the calibrator is activated again
Definition at line 79 of file METriggeredCalibrator.h.
References MESegment::getMinimumHeadwayTime(), MSCalibrator::myFrequency, and mySegment.
Referenced by execute(), and invalidJam().
|
protectedvirtualinherited |
Callback method for characters to implement by derived classes.
Called by "endElement" (see there).
[in] | element | The opened element, given as a int |
[in] | chars | The 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 221 of file GenericSAXHandler.cpp.
Referenced by GenericSAXHandler::endElement().
|
protectedvirtualinherited |
Called on the closing of a tag;.
[in] | element | ID of the currently closed element |
ProcessError | If something fails |
Reimplemented from SUMORouteHandler.
Definition at line 201 of file MSCalibrator.cpp.
References MSCalibrator::init(), MSCalibrator::myDidInit, SUMORouteHandler::myEndElement(), SUMO_TAG_CALIBRATOR, and SUMO_TAG_FLOW.
|
protectedvirtualinherited |
Called on the opening of a tag;.
[in] | element | ID of the currently opened element |
[in] | attrs | Attributes within the currently opened element |
ProcessError | If something fails |
Reimplemented from MSRouteHandler.
Definition at line 138 of file MSCalibrator.cpp.
References MSCalibrator::AspiredState::begin, DEFAULT_VTYPE_ID, DEPART_LANE_ALLOWED_FREE, DEPART_LANE_DEFAULT, DEPART_LANE_GIVEN, DEPART_SPEED_DEFAULT, DEPART_SPEED_MAX, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeedProcedure, MSCalibrator::AspiredState::end, MSCalibrator::getID(), MSLane::getIndex(), MSNet::getInstance(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::getSUMOTimeReporting(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSCalibrator::LeftoverVehicleParameters, MSCalibrator::myCurrentStateInterval, MSCalibrator::myIntervals, MSCalibrator::myLane, MSRouteHandler::myStartElement(), SUMOVehicleParserHelper::parseVehicleAttributes(), MSCalibrator::AspiredState::q, SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_SPEED, SUMO_ATTR_VEHSPERHOUR, SUMO_TAG_FLOW, MSCalibrator::AspiredState::v, MSCalibrator::AspiredState::vehicleParameter, SUMOVehicleParameter::vtypeid, WRITE_ERROR, and WRITE_WARNING.
|
protectedvirtualinherited |
opens a flow for reading
Implements SUMORouteHandler.
Definition at line 436 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
opens a route for reading
Implements SUMORouteHandler.
Definition at line 392 of file MSRouteHandler.cpp.
References DEFAULT_VEH_PROB, MSRoute::dictionary(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), RandomDistributor< T >::getProbs(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteColor, SUMORouteHandler::myActiveRouteID, SUMORouteHandler::myActiveRouteProbability, SUMORouteHandler::myActiveRouteRefID, SUMORouteHandler::myCurrentCosts, MSRouteHandler::myCurrentRouteDistribution, MSRouteHandler::myCurrentRouteDistributionID, SUMORouteHandler::myInsertStopEdgesAt, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, MSEdge::parseEdgesList(), SUMO_ATTR_COLOR, SUMO_ATTR_COST, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_REFID, toString(), WRITE_ERROR, and WRITE_WARNING.
|
protectedvirtualinherited |
opens a route distribution for reading
Implements SUMORouteHandler.
Definition at line 518 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSRoute::addReference(), MSRoute::dictionary(), SUMOSAXAttributes::get(), SUMOSAXAttributes::hasAttribute(), StringTokenizer::hasNext(), SUMOVehicleParameter::id, MSRouteHandler::myCurrentRouteDistribution, MSRouteHandler::myCurrentRouteDistributionID, MSRouteHandler::myParsingRNG, SUMORouteHandler::myVehicleParameter, StringTokenizer::next(), SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_ROUTES, StringUtils::toDoubleSecure(), toString(), and WRITE_WARNING.
|
protectedvirtualinherited |
opens a trip for reading
Implements SUMORouteHandler.
Definition at line 442 of file MSRouteHandler.cpp.
|
protectedvirtualinherited |
opens a type distribution for reading
Implements SUMORouteHandler.
Definition at line 350 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), SUMOSAXAttributes::get(), MSVehicleType::getDefaultProbability(), MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOSAXAttributes::hasAttribute(), MSRouteHandler::myCurrentVTypeDistribution, MSRouteHandler::myCurrentVTypeDistributionID, MSRouteHandler::myParsingRNG, SUMO_ATTR_ID, and SUMO_ATTR_VTYPES.
|
protectedinherited |
Called for parsing from and to and the corresponding taz attributes.
[in] | element | description of the currently opened element |
[in] | attrs | Attributes within the currently opened element |
ProcessError | If something fails |
Definition at line 83 of file MSRouteHandler.cpp.
References MSEdge::dictionary(), SUMOVehicleParameter::fromTaz, OptionsCont::getBool(), MSEdge::getNumPredecessors(), MSEdge::getNumSuccessors(), SUMOSAXAttributes::getOpt(), OptionsCont::getOptions(), StringTokenizer::getVector(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, MSRouteHandler::myActiveRoute, SUMORouteHandler::myActiveRouteID, SUMORouteHandler::myInsertStopEdgesAt, SUMORouteHandler::myVehicleParameter, MSEdge::parseEdgesList(), SUMOVehicleParameter::routeid, SUMO_ATTR_FROM, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_VIA, SUMOVehicleParameter::toTaz, VEHPARS_FROM_TAZ_SET, VEHPARS_TO_TAZ_SET, SUMOVehicleParameter::via, SUMOVehicleParameter::wasSet(), and WRITE_WARNING.
Referenced by MSRouteHandler::myStartElement().
|
protectedinherited |
parses attributes common to all stops
Definition at line 362 of file SUMORouteHandler.cpp.
References SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::extension, SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptStringVector(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::Stop::index, MsgHandler::inform(), SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::Stop::speed, 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_LINE_SET, STOP_PARKING_SET, STOP_SPEED_SET, STOP_START_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_INDEX, SUMO_ATTR_LINE, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_SPEED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::tripId, SUMOVehicleParameter::Stop::until, and WRITE_WARNING.
Referenced by MSRouteHandler::addStop(), GNERouteHandler::addStop(), and RORouteHandler::addStop().
|
protectedinherited |
@ brief parse depart- and arrival positions of a walk
Definition at line 1070 of file MSRouteHandler.cpp.
References SUMOSAXAttributes::get(), MSStoppingPlace::getAccessPos(), MSTransportable::Stage::getArrivalPos(), MSStoppingPlace::getBeginLanePosition(), MSTransportable::Stage::getDestination(), MSTransportable::Stage::getDestinationStop(), MSLane::getEdge(), Named::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLength(), MSLane::getLength(), SUMOSAXAttributes::getOpt(), MSNet::getStoppingPlace(), MSEdge::getToJunction(), SUMOSAXAttributes::hasAttribute(), SUMORouteHandler::myHardFail, MSRouteHandler::myParsingRNG, SUMOVehicleParserHelper::parseWalkPos(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_BUS_STOP, SUMO_ATTR_DEPARTPOS, SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.
Referenced by MSRouteHandler::addPersonTrip(), and MSRouteHandler::addWalk().
|
inlineprotectedvirtual |
Reimplemented from MSCalibrator.
Definition at line 61 of file METriggeredCalibrator.h.
References MSCalibrator::myEdgeMeanData, MSMeanData_Net::MSLaneMeanDataValues::nVehDeparted, MSMeanData_Net::MSLaneMeanDataValues::nVehEntered, and MSMeanData_Net::MSLaneMeanDataValues::nVehVaporized.
Referenced by execute().
|
protectedinherited |
save last depart (only to be used if vehicle is not discarded)
Definition at line 72 of file SUMORouteHandler.cpp.
References SUMOVehicleParameter::depart, DEPART_GIVEN, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::line, SUMORouteHandler::myFirstDepart, SUMORouteHandler::myLastDepart, and SUMORouteHandler::myVehicleParameter.
Referenced by RORouteHandler::addFlowPerson(), MSRouteHandler::closeContainer(), RORouteHandler::closeContainer(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closePerson(), RORouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeVehicle(), and RORouteHandler::closeVehicle().
|
inherited |
Assigning a parent handler which is enabled when the specified tag is closed.
Definition at line 161 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().
Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().
|
protected |
returns the number of vehicles (of the current type) that still fit onto the segment
Definition at line 254 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().
|
protectedinherited |
Definition at line 459 of file MSCalibrator.cpp.
References MSVehicleType::getCarFollowModel(), MSCFModel::getHeadwayTime(), MSNet::getInstance(), MSEdge::getLanes(), MSLane::getLastFullVehicle(), MSLane::getLength(), MSVehicleType::getLengthWithGap(), MSVehicle::getPositionOnLane(), MSEdge::getSpeedLimit(), MSNet::getVehicleControl(), MSLane::getVehicleNumber(), MSVehicleControl::getVType(), MAX2(), MSCalibrator::myCurrentStateInterval, MSCalibrator::myEdge, and SUMOVehicleParameter::vtypeid.
Referenced by MSCalibrator::invalidJam().
|
inlineprotectedinherited |
Definition at line 219 of file MSCalibrator.h.
References MSCalibrator::myRemoved.
Referenced by GUICalibrator::getParameterWindow().
|
protectedinherited |
remove any vehicles which are scheduled for removal. return true if removals took place
Definition at line 264 of file MSCalibrator.cpp.
References MSCalibrator::getID(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSCalibrator::myToRemove, MSMoveReminder::NOTIFICATION_VAPORIZED, MSVehicle::onRemovalFromNet(), MSLane::removeVehicle(), MSVehicleControl::scheduleVehicleRemoval(), and WRITE_WARNING.
Referenced by MSCalibrator::execute().
|
protectedvirtual |
reset collected vehicle data
Reimplemented from MSCalibrator.
Definition at line 262 of file METriggeredCalibrator.cpp.
References MSCalibrator::myEdgeMeanData, and MSMeanData_Net::MSLaneMeanDataValues::reset().
|
inlineprotectedinherited |
try to schedule the givne vehicle for removal. return true if it isn't already scheduled
Definition at line 240 of file MSCalibrator.h.
References MSBaseVehicle::getID(), and MSCalibrator::myToRemove.
Referenced by MSCalibrator::VehicleRemover::notifyEnter().
|
inherited |
Sets the current file name.
[in] | name | The name of the currently processed file |
Definition at line 68 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().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 84 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 84 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inlineprotectedinherited |
Definition at line 254 of file GenericSAXHandler.h.
References GenericSAXHandler::mySchemaSeen.
Referenced by SUMOSAXReader::LocalSchemaResolver::resolveEntity().
|
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.
Definition at line 93 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::mySchemaSeen, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, and StringUtils::transcode().
|
protectedinherited |
number of vehicles expected to pass this interval
Definition at line 237 of file MSCalibrator.cpp.
References MSCalibrator::myCurrentStateInterval, MSCalibrator::myIntervals, and STEPS2TIME.
Referenced by MSCalibrator::execute(), GUICalibrator::getParameterWindow(), and MSCalibrator::VehicleRemover::notifyEnter().
Definition at line 77 of file METriggeredCalibrator.cpp.
References SUMOVehicleParameter::depart, MSBaseVehicle::getID(), MSCalibrator::getID(), MSNet::getInstance(), MSBaseVehicle::getParameter(), and MESegment::initialise().
Referenced by execute().
|
inlineprotectedvirtual |
|
inlineinherited |
Checks whether the detector measures vehicles of the given type.
[in] | veh | the vehicle of which the type is checked. |
Definition at line 141 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(), and MSInstantInductLoop::notifyMove().
|
inherited |
Handler for XML-warnings.
The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.
[in] | exception | The occurred exception to process |
Definition at line 199 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.
|
virtualinherited |
Open the XML-output.
The implementing function should open an xml element using OutputDevice::writeXMLHeader.
[in] | dev | The output device to write the root into |
IOError | If an error on writing occurs |
Implements MSDetectorFileOutput.
Definition at line 574 of file MSCalibrator.cpp.
References OutputDevice::writeXMLHeader().
Referenced by MSCalibrator::MSCalibrator().
|
virtualinherited |
Write the generated output to the given device.
[in] | dev | The output device to write the data into |
[in] | startTime | First time step the data were gathered |
[in] | stopTime | Last time step the data were gathered |
IOError | If an error on writing occurs |
Implements MSDetectorFileOutput.
Definition at line 550 of file MSCalibrator.cpp.
References 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, MSCalibrator::passed(), STEPS2TIME, time2string(), toString(), and MSCalibrator::updateMeanData().
Referenced by MSCalibrator::intervalEnd().
|
staticprotectedinherited |
Definition at line 311 of file MSCalibrator.h.
Referenced by MSCalibrator::cleanup(), and MSCalibrator::MSCalibrator().
|
staticprotectedinherited |
Definition at line 312 of file MSCalibrator.h.
Referenced by MSCalibrator::cleanup(), and MSCalibrator::myStartElement().
|
protectedinherited |
The plan of the current container.
Definition at line 178 of file MSRouteHandler.h.
Referenced by MSRouteHandler::addStop(), MSRouteHandler::closeContainer(), MSRouteHandler::deleteActivePlans(), and MSRouteHandler::myStartElement().
|
protectedinherited |
The plan of the current person.
Definition at line 175 of file MSRouteHandler.h.
Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addStop(), MSRouteHandler::addWalk(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::deleteActivePlans(), and MSRouteHandler::myStartElement().
|
protectedinherited |
The current route.
Definition at line 172 of file MSRouteHandler.h.
Referenced by MSRouteHandler::addPersonTrip(), MSRouteHandler::addStop(), MSRouteHandler::addWalk(), MSRouteHandler::closeRoute(), MSRouteHandler::MSRouteHandler(), MSRouteHandler::myStartElement(), MSRouteHandler::openRoute(), and MSRouteHandler::parseFromViaTo().
|
protectedinherited |
The currently parsed route's color.
Definition at line 221 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().
|
protectedinherited |
The id of the current route.
Definition at line 212 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), MSRouteHandler::addWalk(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::closeVehicle(), MSRouteHandler::myStartElement(), SUMORouteHandler::myStartElement(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::parseFromViaTo(), and RORouteHandler::parseFromViaTo().
|
protectedinherited |
The probability of the current route.
Definition at line 218 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), RORouteHandler::myStartElement(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().
|
protectedinherited |
The id of the route the current route references to.
Definition at line 215 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().
|
protectedinherited |
List of the stops on the parsed route.
Definition at line 227 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), MSRouteHandler::closeRoute(), GNERouteHandler::closeRoute(), and RORouteHandler::closeRoute().
|
protectedinherited |
Information whether vehicles shall be directly added to the network or kept within the buffer.
Definition at line 181 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), and MSRouteHandler::closeVehicle().
|
protectedinherited |
whether the calibrator was active when last checking
Definition at line 304 of file MSCalibrator.h.
Referenced by MSCalibrator::execute(), and MSCalibrator::isActive().
|
protectedinherited |
whether a state file is being loaded
Definition at line 196 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeVehicle(), and MSStateHandler::MSStateHandler().
|
protectedinherited |
The default value for flow begins.
Definition at line 239 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::myEndElement(), and SUMORouteHandler::myStartElement().
|
privateinherited |
A list of character strings obtained so far to build the complete characters string at the end.
Definition at line 306 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::characters(), GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().
|
protectedinherited |
The number of vehicles that were removed when clearin a jam.
Definition at line 291 of file MSCalibrator.h.
Referenced by MSCalibrator::clearedInJam(), execute(), MSCalibrator::execute(), MSCalibrator::intervalEnd(), MSCalibrator::VehicleRemover::notifyEnter(), MSCalibrator::passed(), and MSCalibrator::writeXMLOutput().
|
protectedinherited |
The currently parsed route costs.
Definition at line 224 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::openRoute(), and RORouteHandler::openRoute().
|
protectedinherited |
The currently parsed distribution of routes (probability->route)
Definition at line 190 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closeRoute(), MSRouteHandler::closeRouteDistribution(), MSRouteHandler::openRoute(), and MSRouteHandler::openRouteDistribution().
|
protectedinherited |
The id of the currently parsed route distribution.
Definition at line 193 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closeRouteDistribution(), MSRouteHandler::openRoute(), and MSRouteHandler::openRouteDistribution().
|
protectedinherited |
Iterator pointing to the current interval.
Definition at line 271 of file MSCalibrator.h.
Referenced by MSCalibrator::currentFlow(), GUICalibrator::drawGL(), execute(), MSCalibrator::execute(), MSCalibrator::getNewVehicleID(), GUICalibrator::getParameterWindow(), MSCalibrator::intervalEnd(), MSCalibrator::isCurrentStateActive(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), MSCalibrator::totalWished(), MSCalibrator::writeXMLOutput(), ~METriggeredCalibrator(), and MSCalibrator::~MSCalibrator().
|
protectedinherited |
The currently parsed vehicle type.
Definition at line 230 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::addParam(), MSRouteHandler::closeVType(), GNERouteHandler::closeVType(), RORouteHandler::closeVType(), MSStateHandler::myEndElement(), SUMORouteHandler::myEndElement(), MSStateHandler::myStartElement(), SUMORouteHandler::myStartElement(), and SUMORouteHandler::~SUMORouteHandler().
|
protectedinherited |
The currently parsed distribution of vehicle types (probability->vehicle type)
Definition at line 184 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closeVehicleTypeDistribution(), MSRouteHandler::closeVType(), and MSRouteHandler::openVehicleTypeDistribution().
|
protectedinherited |
The id of the currently parsed vehicle type distribution.
Definition at line 187 of file MSRouteHandler.h.
Referenced by MSRouteHandler::closeVehicleTypeDistribution(), and MSRouteHandler::openVehicleTypeDistribution().
|
protectedinherited |
The default (maximum) speed on the segment.
Definition at line 299 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), and GUICalibrator::getParameterWindow().
|
protectedinherited |
Whether pedestrians shall be detected instead of vehicles.
Definition at line 175 of file MSDetectorFileOutput.h.
Referenced by MSDetectorFileOutput::detectPersons().
|
protectedinherited |
The information whether init was called.
Definition at line 297 of file MSCalibrator.h.
Referenced by MSCalibrator::init(), MSCalibrator::MSCalibrator(), and MSCalibrator::myEndElement().
|
protectedinherited |
The information whether speed was adapted in the current interval.
Definition at line 295 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), and MSCalibrator::intervalEnd().
|
protectedinherited |
the edge on which this calibrator lies
Definition at line 254 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), MSCalibrator::invalidJam(), MSCalibrator::MSCalibrator(), and MSCalibrator::remainingVehicleCapacity().
|
protectedinherited |
accumlated data for the whole edge
Definition at line 264 of file MSCalibrator.h.
Referenced by MSCalibrator::currentSpeed(), execute(), MSCalibrator::execute(), METriggeredCalibrator(), passed(), MSCalibrator::passed(), reset(), MSCalibrator::reset(), MSCalibrator::updateMeanData(), MSCalibrator::writeXMLOutput(), and ~METriggeredCalibrator().
|
protectedinherited |
The default value for flow ends.
Definition at line 242 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::myEndElement(), and SUMORouteHandler::myStartElement().
|
privateinherited |
The root element to expect, empty string disables the check.
Definition at line 318 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::startElement().
|
privateinherited |
The name of the currently parsed file.
Definition at line 315 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::getFileName(), and GenericSAXHandler::setFileName().
|
protectedinherited |
the first read departure time
Definition at line 245 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::getFirstDepart(), and SUMORouteHandler::registerLastDepart().
|
protectedinherited |
The frequeny with which to check for calibration.
Definition at line 285 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), and maximumInflow().
|
protectedinherited |
flag to enable or disable hard fails
Definition at line 203 of file SUMORouteHandler.h.
Referenced by RORouteHandler::addPersonTrip(), RORouteHandler::addWalk(), SUMORouteHandler::myStartElement(), and MSRouteHandler::parseWalkPositions().
|
protectedinherited |
whether the calibrator has registered an invalid jam in the last execution step
Definition at line 307 of file MSCalibrator.h.
Referenced by MSCalibrator::execute(), and MSCalibrator::VehicleRemover::notifyEnter().
|
protectedinherited |
The default (maximum) speed on the segment.
Definition at line 301 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::intervalEnd(), and MSCalibrator::VehicleRemover::notifyEnter().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSLane::isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSLane::isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
generates numerical ids
Definition at line 236 of file SUMORouteHandler.h.
|
protectedinherited |
The number of vehicles that were inserted in the current interval.
Definition at line 289 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), MSCalibrator::getNewVehicleID(), MSCalibrator::inserted(), MSCalibrator::intervalEnd(), and MSCalibrator::writeXMLOutput().
|
protectedinherited |
where stop edges can be inserted into the current route (-1 means no insertion)
Definition at line 248 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::addStop(), RORouteHandler::addStop(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), SUMORouteHandler::myEndElement(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::parseFromViaTo(), and RORouteHandler::parseFromViaTo().
|
staticprivateinherited |
Definition at line 61 of file MSTrigger.h.
Referenced by MSTrigger::cleanup(), MSTrigger::MSTrigger(), and MSTrigger::~MSTrigger().
|
protectedinherited |
List of adaptation intervals.
Definition at line 269 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::execute(), GUICalibrator::getParameterWindow(), MSCalibrator::init(), MSCalibrator::isCurrentStateActive(), MSCalibrator::myStartElement(), MSCalibrator::totalWished(), ~METriggeredCalibrator(), and MSCalibrator::~MSCalibrator().
|
protectedinherited |
the lane on which this calibrator lies (0 if the whole edge is covered at once)
Definition at line 256 of file MSCalibrator.h.
Referenced by MSCalibrator::execute(), MSCalibrator::MSCalibrator(), and MSCalibrator::myStartElement().
|
protectedinherited |
data collector for the calibrator
Definition at line 262 of file MSCalibrator.h.
Referenced by MSCalibrator::MSCalibrator(), MSCalibrator::reset(), and MSCalibrator::updateMeanData().
|
protectedinherited |
The insertion time of the vehicle read last.
Definition at line 209 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::checkLastDepart(), SUMORouteHandler::getLastDepart(), and SUMORouteHandler::registerLastDepart().
|
protectedinherited |
Parameterised used for saving loaded generic parameters that aren't saved in Vehicles or Vehicle Types.
Definition at line 233 of file SUMORouteHandler.h.
Referenced by SUMORouteHandler::addParam(), and GNERouteHandler::closeRoute().
|
protectedinherited |
dummy parent to retrieve vType filter
Definition at line 266 of file MSCalibrator.h.
Referenced by MSCalibrator::MSCalibrator().
|
protectedinherited |
The device for xml statistics.
Definition at line 282 of file MSCalibrator.h.
Referenced by MSCalibrator::intervalEnd(), and MSCalibrator::MSCalibrator().
|
privateinherited |
The handler to give control back to.
Definition at line 309 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().
|
privateinherited |
The tag indicating that control should be given back.
Definition at line 312 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().
|
staticprotectedinherited |
A random number generator used to choose from vtype/route distributions and computing the speed factors.
Definition at line 199 of file MSRouteHandler.h.
Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addWalk(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeRouteDistribution(), MSRouteHandler::closeVehicle(), MSRouteHandler::getParsingRNG(), MSRouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), MSRouteHandler::openVehicleTypeDistribution(), and MSRouteHandler::parseWalkPositions().
|
protectedinherited |
the position on the edge where this calibrator lies
Definition at line 258 of file MSCalibrator.h.
|
privateinherited |
Definition at line 288 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::GenericSAXHandler(), GenericSAXHandler::startElement(), and GenericSAXHandler::~GenericSAXHandler().
|
privateinherited |
the map from ids to their string representation
Definition at line 291 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::GenericSAXHandler(), SUMOSAXReader::parseNext(), and GenericSAXHandler::startElement().
|
protectedinherited |
the route probe to retrieve routes from
Definition at line 260 of file MSCalibrator.h.
Referenced by execute(), and MSCalibrator::execute().
|
protectedinherited |
The number of vehicles that were removed in the current interval.
Definition at line 287 of file MSCalibrator.h.
Referenced by execute(), MSCalibrator::intervalEnd(), MSCalibrator::VehicleRemover::notifyEnter(), MSCalibrator::passed(), MSCalibrator::removed(), and MSCalibrator::writeXMLOutput().
|
privateinherited |
whether the reader has already seen a schema
Definition at line 321 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::setSchemaSeen(), and GenericSAXHandler::startElement().
|
private |
mesoscopic edge segment the calibrator lies on
Definition at line 85 of file METriggeredCalibrator.h.
Referenced by execute(), invalidJam(), maximumInflow(), METriggeredCalibrator(), remainingVehicleCapacity(), and ~METriggeredCalibrator().
|
protectedinherited |
The information whether the speed adaption has been reset.
Definition at line 293 of file MSCalibrator.h.
Referenced by execute(), and MSCalibrator::execute().
|
privateinherited |
Definition at line 302 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::convertTag(), and GenericSAXHandler::GenericSAXHandler().
|
protectedinherited |
set of vehicle ids to remove
Definition at line 279 of file MSCalibrator.h.
Referenced by MSCalibrator::removePending(), and MSCalibrator::scheduleRemoval().
|
protectedinherited |
Parameter of the current vehicle, trip, person, container or flow.
Definition at line 206 of file SUMORouteHandler.h.
Referenced by MSRouteHandler::addFlowPerson(), SUMORouteHandler::addParam(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), 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().
|
protectedinherited |
Definition at line 273 of file MSCalibrator.h.
Referenced by MSCalibrator::MSCalibrator(), and MSCalibrator::~MSCalibrator().
|
protectedinherited |
The vehicle types to look for (empty means all)
Definition at line 172 of file MSDetectorFileOutput.h.
Referenced by MSDetectorFileOutput::isTyped(), MSDetectorFileOutput::MSDetectorFileOutput(), and MSDetectorFileOutput::vehicleApplies().