|
SUMO - Simulation of Urban MObility
|
An areal (along a single lane) detector. More...
#include <MSE2Collector.h>
Data Structures | |
| class | by_vehicle_position_sorter |
| A class used to sort known vehicles by their position. More... | |
| struct | JamInfo |
| Internal representation of a jam. More... | |
Public Types | |
| enum | Notification { NOTIFICATION_DEPARTED, NOTIFICATION_JUNCTION, NOTIFICATION_SEGMENT, NOTIFICATION_LANE_CHANGE, NOTIFICATION_TELEPORT, NOTIFICATION_PARKING, NOTIFICATION_ARRIVED, NOTIFICATION_VAPORIZED, NOTIFICATION_TELEPORT_ARRIVED } |
Definition of a vehicle state. More... | |
Public Member Functions | |
| void | detectorUpdate (const SUMOTime step) throw () |
| Computes the detector values in each time step. | |
| SUMOReal | getEndPos () const throw () |
| Returns the end position of the detector. | |
| const std::string & | getID () const |
| Returns the id. | |
| const MSLane * | getLane () const throw () |
| Returns the lane the reminder works on. | |
| SUMOReal | getStartPos () const throw () |
| Returns the begin position of the detector. | |
| virtual DetectorUsage | getUsageType () const throw () |
| Returns the detector's usage type. | |
| MSE2Collector (const std::string &id, DetectorUsage usage, MSLane *const lane, SUMOReal startPos, SUMOReal detLength, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold) throw () | |
| Constructor. | |
| virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) throw () |
| Internal notification about the vehicle moves. | |
| void | reset () throw () |
| Resets all values. | |
| void | setID (const std::string &newID) |
| resets the id | |
| virtual | ~MSE2Collector () throw () |
| Destructor. | |
Methods inherited from MSMoveReminder | |
| bool | notifyMove (SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) throw () |
| Adds/removes vehicles from the list of vehicles to regard. | |
| bool | notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason) throw () |
| Removes a known vehicle due to its lane-change. | |
| bool | notifyEnter (SUMOVehicle &veh, MSMoveReminder::Notification reason) throw () |
| Adds the vehicle to known vehicles if not beyond the dector. | |
Methods inherited from MSDetectorFileOutput. | |
| void | writeXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime) throw (IOError) |
| Writes collected values into the given stream. | |
| void | writeXMLDetectorProlog (OutputDevice &dev) const throw (IOError) |
| Opens the XML-output using "detector" as root element. | |
Methods returning current values | |
| unsigned | getCurrentVehicleNumber () const throw () |
| Returns the number of vehicles currently on the detector. | |
| SUMOReal | getCurrentOccupancy () const throw () |
| Returns the curent detector occupancy. | |
| SUMOReal | getCurrentMeanSpeed () const throw () |
| Returns the mean vehicle speed of vehicles currently on the detector. | |
| SUMOReal | getCurrentMeanLength () const throw () |
| Returns the mean vehicle length of vehicles currently on the detector. | |
| unsigned | getCurrentJamNumber () const throw () |
| Returns the current number of jams. | |
| unsigned | getCurrentMaxJamLengthInVehicles () const throw () |
| Returns the length in vehicles of the currently largest jam. | |
| SUMOReal | getCurrentMaxJamLengthInMeters () const throw () |
| Returns the length in meters of the currently largest jam. | |
| unsigned | getCurrentJamLengthInVehicles () const throw () |
| Returns the length of all jams in vehicles. | |
| SUMOReal | getCurrentJamLengthInMeters () const throw () |
| Returns the length of all jams in meters. | |
| unsigned | getCurrentStartedHalts () const throw () |
| Returns the length of all jams in meters. | |
Virtual methods to implement by derived classes | |
| virtual GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
| Builds the graphical representation. | |
Protected Attributes | |
| std::string | myID |
| The name of the object. | |
| MSLane *const | myLane |
| Lane on which the reminder works. | |
Private Member Functions | |
| MSE2Collector (const MSE2Collector &) | |
| Invalidated copy constructor. | |
| MSE2Collector & | operator= (const MSE2Collector &) |
| Invalidated assignment operator. | |
Private Attributes | |
| std::map< SUMOVehicle *, SUMOTime > | myHaltingVehicleDurations |
| Storage for halting durations of known vehicles (for halting vehicles) | |
| std::map< SUMOVehicle *, SUMOTime > | myIntervalHaltingVehicleDurations |
| Storage for halting durations of known vehicles (current interval) | |
| std::list< SUMOVehicle * > | myKnownVehicles |
| List of known vehicles. | |
| std::vector< SUMOTime > | myPastIntervalStandingDurations |
| Halting durations of ended halts for the current interval [s]. | |
| std::vector< SUMOTime > | myPastStandingDurations |
| Halting durations of ended halts [s]. | |
| DetectorUsage | myUsage |
| Information about how this detector is used. | |
Detector parameter | |
| SUMOReal | myJamHaltingSpeedThreshold |
| A vehicle must driver slower than this to be counted as a part of a jam. | |
| SUMOTime | myJamHaltingTimeThreshold |
| A vehicle must be that long beyond myJamHaltingSpeedThreshold to be counted as a part of a jam. | |
| SUMOReal | myJamDistanceThreshold |
| Two standing vehicles must be closer than this to be counted into the same jam. | |
| SUMOReal | myStartPos |
| The position the detector starts at. | |
| SUMOReal | myEndPos |
| The position the detector ends at. | |
Values generated for aggregated file output | |
| SUMOReal | mySpeedSum |
| The sum of collected vehicle speeds [m/s]. | |
| SUMOReal | myStartedHalts |
| The number of started halts [#]. | |
| SUMOReal | myJamLengthInMetersSum |
| The sum of jam lengths [m]. | |
| unsigned | myJamLengthInVehiclesSum |
| The sum of jam lengths [#veh]. | |
| unsigned | myVehicleSamples |
| The number of collected samples [#]. | |
| unsigned | myTimeSamples |
| The current aggregation duration [#steps]. | |
| SUMOReal | myOccupancySum |
| The sum of occupancies [%]. | |
| SUMOReal | myMaxOccupancy |
| The maximum occupancy [%]. | |
| unsigned | myMeanMaxJamInVehicles |
| The mean jam length [#veh]. | |
| SUMOReal | myMeanMaxJamInMeters |
| The mean jam length [m]. | |
| unsigned | myMaxJamInVehicles |
| The max jam length [#veh]. | |
| SUMOReal | myMaxJamInMeters |
| The max jam length [m]. | |
| unsigned | myMeanVehicleNumber |
| The mean number of vehicles [#veh]. | |
| unsigned | myMaxVehicleNumber |
| The max number of vehicles [#veh]. | |
Values generated describing the current state | |
| SUMOReal | myCurrentOccupancy |
| The current occupancy. | |
| SUMOReal | myCurrentMeanSpeed |
| The current mean speed. | |
| SUMOReal | myCurrentMeanLength |
| The current mean length. | |
| unsigned | myCurrentJamNo |
| The current jam number. | |
| SUMOReal | myCurrentMaxJamLengthInMeters |
| the current maximum jam length in meters | |
| unsigned | myCurrentMaxJamLengthInVehicles |
| The current maximum jam length in vehicles. | |
| SUMOReal | myCurrentJamLengthInMeters |
| The overall jam length in meters. | |
| unsigned | myCurrentJamLengthInVehicles |
| The overall jam length in vehicles. | |
| unsigned | myCurrentStartedHalts |
| The number of started halts in the last step. | |
An areal (along a single lane) detector.
This detector traces vehicles which are at a part of a single lane. A vehicle that enters the detector is stored and the stored vehicles' speeds are used within each timestep to compute the detector values. As soon as the vehicle leaves the detector, it is no longer tracked.
Determining entering and leaving vehicles is done via the MSMoveReminder interface. The values are computed by an event-callback (at the end of a time step).
Jams are determined as following: A vehicle must at least drive haltingTimeThreshold at a speed lesser than haltingSpeedThreshold to be a "halting" vehicle. Two or more vehicles are "in jam" if they are halting and their distance is lesser than jamDistThreshold.
Definition at line 73 of file MSE2Collector.h.
enum MSMoveReminder::Notification [inherited] |
Definition of a vehicle state.
Definition at line 89 of file MSMoveReminder.h.
| MSE2Collector::MSE2Collector | ( | const std::string & | id, |
| DetectorUsage | usage, | ||
| MSLane *const | lane, | ||
| SUMOReal | startPos, | ||
| SUMOReal | detLength, | ||
| SUMOTime | haltingTimeThreshold, | ||
| SUMOReal | haltingSpeedThreshold, | ||
| SUMOReal | jamDistThreshold | ||
| ) | throw () |
Constructor.
| [in] | id | The detector's unique id. |
| [in] | usage | Information how the detector is used |
| [in] | lane | The lane to place the detector at |
| [in] | startPos | Begin position of the detector |
| [in] | detLength | Length of the detector |
| [in] | haltingTimeThreshold | The time a vehicle's speed must be below haltingSpeedThreshold to be assigned as jammed |
| [in] | haltingSpeedThreshold | The speed a vehicle's speed must be below to be assigned as jammed |
| [in] | jamDistThreshold | The distance between two vehicles in order to not count them to one jam |
Definition at line 43 of file MSE2Collector.cpp.
| MSE2Collector::~MSE2Collector | ( | ) | throw () [virtual] |
| MSE2Collector::MSE2Collector | ( | const MSE2Collector & | ) | [private] |
Invalidated copy constructor.
| virtual GUIDetectorWrapper* MSDetectorFileOutput::buildDetectorGUIRepresentation | ( | ) | [inline, virtual, inherited] |
Builds the graphical representation.
Meant to be overridden by grahical versions of the detectors
Reimplemented in GUI_E2_ZS_Collector, GUI_E2_ZS_CollectorOverLanes, GUIE3Collector, GUIInductLoop, and GUIInstantInductLoop.
Definition at line 117 of file MSDetectorFileOutput.h.
| void MSE2Collector::detectorUpdate | ( | const SUMOTime | step | ) | throw () [virtual] |
Computes the detector values in each time step.
This method should be called at the end of a simulation step, when all vehicles have moved. The current values are computed and summed up with the previous.
| [in] | currentTime | The current simulation time |
Reimplemented from MSDetectorFileOutput.
Definition at line 149 of file MSE2Collector.cpp.
References DELTA_T, MSE2Collector::JamInfo::firstStandingVehicle, MSVehicle::getLane(), MSVehicleType::getLengthWithGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSE2Collector::JamInfo::lastStandingVehicle, MAX2(), and SUMOReal.
| SUMOReal MSE2Collector::getCurrentJamLengthInMeters | ( | ) | const throw () |
Returns the length of all jams in meters.
Definition at line 438 of file MSE2Collector.cpp.
References myCurrentJamLengthInMeters.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| unsigned MSE2Collector::getCurrentJamLengthInVehicles | ( | ) | const throw () |
Returns the length of all jams in vehicles.
Definition at line 432 of file MSE2Collector.cpp.
References myCurrentJamLengthInVehicles.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| unsigned MSE2Collector::getCurrentJamNumber | ( | ) | const throw () |
Returns the current number of jams.
Definition at line 414 of file MSE2Collector.cpp.
References myCurrentJamNo.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| SUMOReal MSE2Collector::getCurrentMaxJamLengthInMeters | ( | ) | const throw () |
Returns the length in meters of the currently largest jam.
Definition at line 426 of file MSE2Collector.cpp.
References myCurrentMaxJamLengthInMeters.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| unsigned MSE2Collector::getCurrentMaxJamLengthInVehicles | ( | ) | const throw () |
Returns the length in vehicles of the currently largest jam.
Definition at line 420 of file MSE2Collector.cpp.
References myCurrentMaxJamLengthInVehicles.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| SUMOReal MSE2Collector::getCurrentMeanLength | ( | ) | const throw () |
Returns the mean vehicle length of vehicles currently on the detector.
Definition at line 408 of file MSE2Collector.cpp.
References myCurrentMeanLength.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| SUMOReal MSE2Collector::getCurrentMeanSpeed | ( | ) | const throw () |
Returns the mean vehicle speed of vehicles currently on the detector.
Definition at line 402 of file MSE2Collector.cpp.
References myCurrentMeanSpeed.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| SUMOReal MSE2Collector::getCurrentOccupancy | ( | ) | const throw () |
Returns the curent detector occupancy.
Definition at line 396 of file MSE2Collector.cpp.
References myCurrentOccupancy, and SUMOReal.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| unsigned MSE2Collector::getCurrentStartedHalts | ( | ) | const throw () |
Returns the length of all jams in meters.
Definition at line 444 of file MSE2Collector.cpp.
References myCurrentStartedHalts.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| unsigned MSE2Collector::getCurrentVehicleNumber | ( | ) | const throw () |
Returns the number of vehicles currently on the detector.
Definition at line 390 of file MSE2Collector.cpp.
References myKnownVehicles.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().
| SUMOReal MSE2Collector::getEndPos | ( | ) | const throw () [inline] |
Returns the end position of the detector.
Definition at line 210 of file MSE2Collector.h.
References myEndPos.
| const std::string& Named::getID | ( | ) | const [inline, inherited] |
Returns the id.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 59 of file Named.h.
References Named::myID.
Referenced by RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), NIImporter_SUMO::addPhase(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), RORouteDef_Complete::buildCurrentRoute(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSVTypeProbe::execute(), Command_SaveTLSSwitches::execute(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSUnboundActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), Named::ComparatorIdLess::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedTLDef::SignalGroup::patchTYellow(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), NWWriter_SUMO::prohibitionConnection(), NBNodeCont::remapEdge(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeDummyEdges(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBConnection::replaceFrom(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NIXMLConnectionsHandler::validateLaneInfo(), MSInstantInductLoop::write(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), and MSRouteProbe::writeXMLOutput().
| const MSLane* MSMoveReminder::getLane | ( | ) | const throw () [inline, inherited] |
Returns the lane the reminder works on.
Definition at line 83 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by GUIInstantInductLoop::buildDetectorGUIRepresentation(), GUIInductLoop::buildDetectorGUIRepresentation(), TraCIServerAPI_InductionLoop::processGet(), and MSMeanData::writeEdge().
| SUMOReal MSE2Collector::getStartPos | ( | ) | const throw () [inline] |
Returns the begin position of the detector.
Definition at line 201 of file MSE2Collector.h.
References myStartPos.
| virtual DetectorUsage MSE2Collector::getUsageType | ( | ) | const throw () [inline, virtual] |
Returns the detector's usage type.
Definition at line 102 of file MSE2Collector.h.
References myUsage.
| bool MSE2Collector::notifyEnter | ( | SUMOVehicle & | veh, |
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual] |
Adds the vehicle to known vehicles if not beyond the dector.
If the vehicles is within the detector are, it is added to the list of known vehicles. The method returns true as long as the vehicle is not beyond the detector.
| [in] | veh | The entering vehicle. |
| [in] | reason | how the vehicle enters the lane |
Reimplemented from MSMoveReminder.
Definition at line 108 of file MSE2Collector.cpp.
References MSVehicleType::getLengthWithGap(), SUMOVehicle::getPositionOnLane(), SUMOVehicle::getVehicleType(), myEndPos, myKnownVehicles, and myStartPos.
| bool MSE2Collector::notifyLeave | ( | SUMOVehicle & | veh, |
| SUMOReal | lastPos, | ||
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual] |
Removes a known vehicle due to its lane-change.
If the reported vehicle is known, it is removed from the list of vehicles to regard (myKnownVehicles).
| [in] | veh | The leaving vehicle. |
| [in] | lastPos | Position on the lane when leaving. |
| [in] | isArrival | whether the vehicle arrived at its destination |
| [in] | isLaneChange | whether the vehicle changed from the lane |
Reimplemented from MSMoveReminder.
Definition at line 95 of file MSE2Collector.cpp.
References MSMoveReminder::NOTIFICATION_JUNCTION.
| bool MSE2Collector::notifyMove | ( | SUMOVehicle & | veh, |
| SUMOReal | oldPos, | ||
| SUMOReal | newPos, | ||
| SUMOReal | newSpeed | ||
| ) | throw () [virtual] |
Adds/removes vehicles from the list of vehicles to regard.
As soon as the reported vehicle enters the detector area (position>myStartPos) it is added to the list of vehicles to regard (myKnownVehicles). It is removed from this list if it leaves the detector (position<lengt>myEndPos). The method returns true as long as the vehicle is not beyond the detector.
| [in] | veh | The vehicle in question. |
| [in] | oldPos | Position before the move-micro-timestep. |
| [in] | newPos | Position after the move-micro-timestep. |
| [in] | newSpeed | Unused here. |
Reimplemented from MSMoveReminder.
Definition at line 72 of file MSE2Collector.cpp.
References MSVehicleType::getLengthWithGap(), SUMOVehicle::getVehicleType(), myEndPos, myKnownVehicles, and myStartPos.
| virtual void MSMoveReminder::notifyMoveInternal | ( | SUMOVehicle & | veh, |
| SUMOReal | timeOnLane, | ||
| SUMOReal | speed | ||
| ) | throw () [inline, virtual, inherited] |
Internal notification about the vehicle moves.
Indicator if the reminders is still active for the passed vehicle/parameters. If false, the vehicle will erase this reminder from it's reminder-container.
| [in] | veh | Vehicle that asks this reminder. |
| [in] | timeOnLane | time the vehicle spent on the lane. |
| [in] | speed | Moving speed. |
Reimplemented in MSMeanData::MeanDataValueTracker, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSMeanData_HBEFA::MSLaneMeanDataValues, and MSMeanData_Net::MSLaneMeanDataValues.
Definition at line 196 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
| MSE2Collector& MSE2Collector::operator= | ( | const MSE2Collector & | ) | [private] |
Invalidated assignment operator.
| void MSE2Collector::reset | ( | ) | throw () [virtual] |
Resets all values.
This method is called on initialisation and as soon as the values were written. Values for the next interval may be collected, then. The list of known vehicles stays untouched.
Reimplemented from MSDetectorFileOutput.
Definition at line 124 of file MSE2Collector.cpp.
References myIntervalHaltingVehicleDurations, myJamLengthInMetersSum, myJamLengthInVehiclesSum, myMaxJamInMeters, myMaxJamInVehicles, myMaxOccupancy, myMaxVehicleNumber, myMeanMaxJamInMeters, myMeanMaxJamInVehicles, myMeanVehicleNumber, myOccupancySum, myPastIntervalStandingDurations, myPastStandingDurations, mySpeedSum, myStartedHalts, myTimeSamples, and myVehicleSamples.
| void Named::setID | ( | const std::string & | newID | ) | [inline, inherited] |
| void MSE2Collector::writeXMLDetectorProlog | ( | OutputDevice & | dev | ) | const throw (IOError) [virtual] |
Opens the XML-output using "detector" as root element.
| [in] | dev | The output device to write the root into |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Implements MSDetectorFileOutput.
Definition at line 384 of file MSE2Collector.cpp.
| void MSE2Collector::writeXMLOutput | ( | OutputDevice & | dev, |
| SUMOTime | startTime, | ||
| SUMOTime | stopTime | ||
| ) | throw (IOError) [virtual] |
Writes collected values into the given stream.
| [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 (!!! not yet implemented) |
Implements MSDetectorFileOutput.
Definition at line 320 of file MSE2Collector.cpp.
References MAX2(), STEPS2TIME, SUMOReal, and time2string().
SUMOReal MSE2Collector::myCurrentJamLengthInMeters [private] |
The overall jam length in meters.
Definition at line 412 of file MSE2Collector.h.
Referenced by getCurrentJamLengthInMeters().
unsigned MSE2Collector::myCurrentJamLengthInVehicles [private] |
The overall jam length in vehicles.
Definition at line 414 of file MSE2Collector.h.
Referenced by getCurrentJamLengthInVehicles().
unsigned MSE2Collector::myCurrentJamNo [private] |
The current jam number.
Definition at line 406 of file MSE2Collector.h.
Referenced by getCurrentJamNumber().
SUMOReal MSE2Collector::myCurrentMaxJamLengthInMeters [private] |
the current maximum jam length in meters
Definition at line 408 of file MSE2Collector.h.
Referenced by getCurrentMaxJamLengthInMeters().
unsigned MSE2Collector::myCurrentMaxJamLengthInVehicles [private] |
The current maximum jam length in vehicles.
Definition at line 410 of file MSE2Collector.h.
Referenced by getCurrentMaxJamLengthInVehicles().
SUMOReal MSE2Collector::myCurrentMeanLength [private] |
The current mean length.
Definition at line 404 of file MSE2Collector.h.
Referenced by getCurrentMeanLength().
SUMOReal MSE2Collector::myCurrentMeanSpeed [private] |
The current mean speed.
Definition at line 402 of file MSE2Collector.h.
Referenced by getCurrentMeanSpeed().
SUMOReal MSE2Collector::myCurrentOccupancy [private] |
The current occupancy.
Definition at line 400 of file MSE2Collector.h.
Referenced by getCurrentOccupancy().
unsigned MSE2Collector::myCurrentStartedHalts [private] |
The number of started halts in the last step.
Definition at line 416 of file MSE2Collector.h.
Referenced by getCurrentStartedHalts().
SUMOReal MSE2Collector::myEndPos [private] |
The position the detector ends at.
Definition at line 340 of file MSE2Collector.h.
Referenced by getEndPos(), notifyEnter(), and notifyMove().
std::map<SUMOVehicle*, SUMOTime> MSE2Collector::myHaltingVehicleDurations [private] |
Storage for halting durations of known vehicles (for halting vehicles)
Definition at line 350 of file MSE2Collector.h.
std::string Named::myID [protected, inherited] |
The name of the object.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 81 of file Named.h.
Referenced by RORouteDef_OrigDest::buildCurrentRoute(), RORouteDef_Complete::buildCurrentRoute(), RORouteDef_Alternatives::buildCurrentRoute(), NBEdge::computeEdgeShape(), Named::getID(), NBEdge::getLaneID(), MSRoute::release(), Named::setID(), NBEdge::splitGeometry(), NBNode::writeLogic(), and MSMeanData::writeXMLOutput().
std::map<SUMOVehicle*, SUMOTime> MSE2Collector::myIntervalHaltingVehicleDurations [private] |
Storage for halting durations of known vehicles (current interval)
Definition at line 353 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::myJamDistanceThreshold [private] |
Two standing vehicles must be closer than this to be counted into the same jam.
Definition at line 336 of file MSE2Collector.h.
SUMOReal MSE2Collector::myJamHaltingSpeedThreshold [private] |
A vehicle must driver slower than this to be counted as a part of a jam.
Definition at line 332 of file MSE2Collector.h.
A vehicle must be that long beyond myJamHaltingSpeedThreshold to be counted as a part of a jam.
Definition at line 334 of file MSE2Collector.h.
SUMOReal MSE2Collector::myJamLengthInMetersSum [private] |
unsigned MSE2Collector::myJamLengthInVehiclesSum [private] |
The sum of jam lengths [#veh].
Definition at line 372 of file MSE2Collector.h.
Referenced by reset().
std::list<SUMOVehicle*> MSE2Collector::myKnownVehicles [private] |
List of known vehicles.
Definition at line 347 of file MSE2Collector.h.
Referenced by getCurrentVehicleNumber(), notifyEnter(), notifyMove(), and ~MSE2Collector().
MSLane* const MSMoveReminder::myLane [protected, inherited] |
Lane on which the reminder works.
Definition at line 211 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getLane().
SUMOReal MSE2Collector::myMaxJamInMeters [private] |
unsigned MSE2Collector::myMaxJamInVehicles [private] |
SUMOReal MSE2Collector::myMaxOccupancy [private] |
unsigned MSE2Collector::myMaxVehicleNumber [private] |
The max number of vehicles [#veh].
Definition at line 392 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::myMeanMaxJamInMeters [private] |
unsigned MSE2Collector::myMeanMaxJamInVehicles [private] |
unsigned MSE2Collector::myMeanVehicleNumber [private] |
The mean number of vehicles [#veh].
Definition at line 390 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::myOccupancySum [private] |
std::vector<SUMOTime> MSE2Collector::myPastIntervalStandingDurations [private] |
Halting durations of ended halts for the current interval [s].
Definition at line 359 of file MSE2Collector.h.
Referenced by reset().
std::vector<SUMOTime> MSE2Collector::myPastStandingDurations [private] |
Halting durations of ended halts [s].
Definition at line 356 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::mySpeedSum [private] |
The sum of collected vehicle speeds [m/s].
Definition at line 366 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::myStartedHalts [private] |
The number of started halts [#].
Definition at line 368 of file MSE2Collector.h.
Referenced by reset().
SUMOReal MSE2Collector::myStartPos [private] |
The position the detector starts at.
Definition at line 338 of file MSE2Collector.h.
Referenced by getStartPos(), notifyEnter(), and notifyMove().
unsigned MSE2Collector::myTimeSamples [private] |
The current aggregation duration [#steps].
Definition at line 376 of file MSE2Collector.h.
Referenced by reset().
DetectorUsage MSE2Collector::myUsage [private] |
Information about how this detector is used.
Definition at line 344 of file MSE2Collector.h.
Referenced by getUsageType().
unsigned MSE2Collector::myVehicleSamples [private] |
The number of collected samples [#].
Definition at line 374 of file MSE2Collector.h.
Referenced by reset().