SUMO - Simulation of Urban MObility
MSE2Collector Class Reference

An areal (along a single lane) detector. More...

#include <MSE2Collector.h>

Inheritance diagram for MSE2Collector:
Inheritance graph
Collaboration diagram for MSE2Collector:
Collaboration graph

Data Structures

struct  JamInfo
 Internal representation of a jam. More...
 
struct  VehicleInfo
 Internal representation of a vehicle. 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 addTo (const StoringVisitor &cont) const
 Adds this object to the given container. More...
 
void detectorUpdate (const SUMOTime step)
 Computes the detector values in each time step. More...
 
const std::string & getDescription () const
 
SUMOReal getEndPos () const
 Returns the end position of the detector. More...
 
int getEstimatedCurrentVehicleNumber (SUMOReal speedThreshold) const
 Returns an estimate of the number of vehicles currently on the detector. More...
 
SUMOReal getEstimateQueueLength () const
 Returns an estimate of the lenght of the queue of vehicles currently stopped on the detector. More...
 
const std::string & getID () const
 Returns the id. More...
 
const MSLanegetLane () const
 Returns the lane the reminder works on. More...
 
int getPassedVeh ()
 Returns the number of vehicles passed over the sensor. More...
 
SUMOReal getStartPos () const
 Returns the begin position of the detector. More...
 
virtual DetectorUsage getUsageType () const
 Returns the detector's usage type. More...
 
 MSE2Collector (const std::string &id, DetectorUsage usage, MSLane *const lane, SUMOReal startPos, SUMOReal detLength, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold, const std::string &vTypes)
 Constructor. More...
 
 MSE2Collector (const std::string &id, DetectorUsage usage, MSLane *const lane, SUMOReal startPos, SUMOReal detLength, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold, const std::set< std::string > &vTypes)
 Constructor. More...
 
virtual void notifyMoveInternal (const SUMOVehicle &veh, const SUMOReal frontOnLane, const SUMOReal timeOnLane, const SUMOReal meanSpeedFrontOnLane, const SUMOReal meanSpeedVehicleOnLane, const SUMOReal travelledDistanceFrontOnLane, const SUMOReal travelledDistanceVehicleOnLane)
 Internal notification about the vehicle moves. More...
 
void reset ()
 Resets all values. More...
 
void setDescription (const std::string &description)
 
void setID (const std::string &newID)
 resets the id More...
 
void subtractPassedVeh (int passed)
 Subtract the number of vehicles indicated from passed from the sensor count. More...
 
virtual ~MSE2Collector ()
 Destructor. More...
 
Methods inherited from MSMoveReminder
bool notifyMove (SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
 Adds/removes vehicles from the list of vehicles to regard. More...
 
bool notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason)
 Removes a known vehicle due to its lane-change. More...
 
bool notifyEnter (SUMOVehicle &veh, MSMoveReminder::Notification reason)
 Adds the vehicle to known vehicles if not beyond the dector. More...
 
Methods inherited from MSDetectorFileOutput.
void writeXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
 Writes collected values into the given stream. More...
 
void writeXMLDetectorProlog (OutputDevice &dev) const
 Opens the XML-output using "detector" as root element. More...
 
Methods returning current values
int getCurrentVehicleNumber () const
 Returns the number of vehicles currently on the detector. More...
 
SUMOReal getCurrentOccupancy () const
 Returns the curent detector occupancy. More...
 
SUMOReal getCurrentMeanSpeed () const
 Returns the mean vehicle speed of vehicles currently on the detector. More...
 
SUMOReal getCurrentMeanLength () const
 Returns the mean vehicle length of vehicles currently on the detector. More...
 
int getCurrentJamNumber () const
 Returns the current number of jams. More...
 
int getCurrentMaxJamLengthInVehicles () const
 Returns the length in vehicles of the currently largest jam. More...
 
SUMOReal getCurrentMaxJamLengthInMeters () const
 Returns the length in meters of the currently largest jam. More...
 
int getCurrentJamLengthInVehicles () const
 Returns the length of all jams in vehicles. More...
 
SUMOReal getCurrentJamLengthInMeters () const
 Returns the length of all jams in meters. More...
 
int getCurrentStartedHalts () const
 Returns the length of all jams in meters. More...
 
int getCurrentHaltingNumber () const
 Returns the number of current haltings within the area. More...
 
std::vector< std::string > getCurrentVehicleIDs () const
 Returns the IDs of the vehicles within the area. More...
 
const std::vector< VehicleInfo > & getCurrentVehicles () const
 Returns the vehicles within the area. More...
 
Interface methods, to be derived by subclasses
void updateDetector (SUMOVehicle &veh, SUMOReal entryPos, SUMOReal leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp)
 

Static Public Member Functions

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...
 

Protected Member Functions

void removeFromVehicleUpdateValues (SUMOVehicle &veh)
 

Protected Attributes

std::string myDescription
 a description of this moveReminder More...
 
std::string myID
 The name of the object. More...
 
MSLane *const myLane
 Lane on which the reminder works. More...
 

Private Member Functions

 MSE2Collector (const MSE2Collector &)
 Invalidated copy constructor. More...
 
MSE2Collectoroperator= (const MSE2Collector &)
 Invalidated assignment operator. More...
 

Private Attributes

std::map< const std::string, SUMOTimemyHaltingVehicleDurations
 Storage for halting durations of known vehicles (for halting vehicles) More...
 
std::map< const std::string, SUMOTimemyIntervalHaltingVehicleDurations
 Storage for halting durations of known vehicles (current interval) More...
 
std::vector< VehicleInfomyKnownVehicles
 List of known vehicles. More...
 
std::vector< SUMOTimemyPastIntervalStandingDurations
 Halting durations of ended halts for the current interval [s]. More...
 
std::vector< SUMOTimemyPastStandingDurations
 Halting durations of ended halts [s]. More...
 
std::vector< VehicleInfomyPreviousKnownVehicles
 List of previously known vehicles. More...
 
DetectorUsage myUsage
 Information about how this detector is used. More...
 
Detector parameter
SUMOReal myJamHaltingSpeedThreshold
 A vehicle must driver slower than this to be counted as a part of a jam. More...
 
SUMOTime myJamHaltingTimeThreshold
 A vehicle must be that long beyond myJamHaltingSpeedThreshold to be counted as a part of a jam. More...
 
SUMOReal myJamDistanceThreshold
 Two standing vehicles must be closer than this to be counted into the same jam. More...
 
SUMOReal myStartPos
 The position the detector starts at. More...
 
SUMOReal myEndPos
 The position the detector ends at. More...
 
Values generated for aggregated file output
SUMOReal mySpeedSum
 The sum of collected vehicle speeds [m/s]. More...
 
SUMOReal myStartedHalts
 The number of started halts [#]. More...
 
SUMOReal myJamLengthInMetersSum
 The sum of jam lengths [m]. More...
 
int myJamLengthInVehiclesSum
 The sum of jam lengths [#veh]. More...
 
SUMOReal myVehicleSamples
 The number of collected samples [#]. More...
 
int myTimeSamples
 The current aggregation duration [#steps]. More...
 
SUMOReal myOccupancySum
 The sum of occupancies [%]. More...
 
SUMOReal myMaxOccupancy
 The maximum occupancy [%]. More...
 
int myMeanMaxJamInVehicles
 The mean jam length [#veh]. More...
 
SUMOReal myMeanMaxJamInMeters
 The mean jam length [m]. More...
 
int myMaxJamInVehicles
 The max jam length [#veh]. More...
 
SUMOReal myMaxJamInMeters
 The max jam length [m]. More...
 
int myMeanVehicleNumber
 The mean number of vehicles [#veh]. More...
 
int myMaxVehicleNumber
 The max number of vehicles [#veh]. More...
 
Values generated describing the current state
SUMOReal myCurrentOccupancy
 The current occupancy. More...
 
SUMOReal myCurrentMeanSpeed
 The current mean speed. More...
 
SUMOReal myCurrentMeanLength
 The current mean length. More...
 
int myCurrentJamNo
 The current jam number. More...
 
SUMOReal myCurrentMaxJamLengthInMeters
 the current maximum jam length in meters More...
 
int myCurrentMaxJamLengthInVehicles
 The current maximum jam length in vehicles. More...
 
SUMOReal myCurrentJamLengthInMeters
 The overall jam length in meters. More...
 
int myCurrentJamLengthInVehicles
 The overall jam length in vehicles. More...
 
int myCurrentStartedHalts
 The number of started halts in the last step. More...
 
int myCurrentHaltingsNumber
 The number of halted vehicles [#]. More...
 
int myPassedVeh
 The number of vehicles passed on the sensor. More...
 

Virtual methods to implement by derived classes

virtual GUIDetectorWrapperbuildDetectorGUIRepresentation ()
 Builds the graphical representation. More...
 
bool vehicleApplies (const SUMOVehicle &veh) const
 Checks whether the detector measures vehicles of the given type. More...
 
bool isTyped () const
 Checks whether the detector is type specific. More...
 
std::set< std::string > myVehicleTypes
 The vehicle types to look for (empty means all) More...
 

Detailed Description

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.

See also
Named
MSMoveReminder
MSDetectorFileOutput
Command

Definition at line 83 of file MSE2Collector.h.

Member Enumeration Documentation

§ Notification

Definition of a vehicle state.

Enumerator
NOTIFICATION_DEPARTED 

The vehicle has departed (was inserted into the network)

NOTIFICATION_JUNCTION 

The vehicle arrived at a junction.

NOTIFICATION_SEGMENT 

The vehicle changes the segment (meso only)

NOTIFICATION_LANE_CHANGE 

The vehicle changes lanes (micro only) XXX: What if a vehicle changes lanes and passes a junction simultaneously?

NOTIFICATION_TELEPORT 

The vehicle is being teleported.

NOTIFICATION_PARKING 

The vehicle starts or ends parking.

NOTIFICATION_ARRIVED 

The vehicle arrived at its destination (is deleted)

NOTIFICATION_VAPORIZED 

The vehicle got vaporized.

NOTIFICATION_TELEPORT_ARRIVED 

The vehicle was teleported out of the net.

Definition at line 95 of file MSMoveReminder.h.

Constructor & Destructor Documentation

§ MSE2Collector() [1/3]

MSE2Collector::MSE2Collector ( const std::string &  id,
DetectorUsage  usage,
MSLane *const  lane,
SUMOReal  startPos,
SUMOReal  detLength,
SUMOTime  haltingTimeThreshold,
SUMOReal  haltingSpeedThreshold,
SUMOReal  jamDistThreshold,
const std::string &  vTypes 
)

Constructor.

Parameters
[in]idThe detector's unique id.
[in]usageInformation how the detector is used
[in]laneThe lane to place the detector at
[in]startPosBegin position of the detector
[in]detLengthLength of the detector
[in]haltingTimeThresholdThe time a vehicle's speed must be below haltingSpeedThreshold to be assigned as jammed
[in]haltingSpeedThresholdThe speed a vehicle's speed must be below to be assigned as jammed
[in]jamDistThresholdThe distance between two vehicles in order to not count them to one jam
Todo:
The lane should not be given as a pointer

Definition at line 53 of file MSE2Collector.cpp.

References myEndPos, MSMoveReminder::myLane, myStartPos, and reset().

§ MSE2Collector() [2/3]

MSE2Collector::MSE2Collector ( const std::string &  id,
DetectorUsage  usage,
MSLane *const  lane,
SUMOReal  startPos,
SUMOReal  detLength,
SUMOTime  haltingTimeThreshold,
SUMOReal  haltingSpeedThreshold,
SUMOReal  jamDistThreshold,
const std::set< std::string > &  vTypes 
)

Constructor.

Parameters
[in]idThe detector's unique id.
[in]usageInformation how the detector is used
[in]laneThe lane to place the detector at
[in]startPosBegin position of the detector
[in]detLengthLength of the detector
[in]haltingTimeThresholdThe time a vehicle's speed must be below haltingSpeedThreshold to be assigned as jammed
[in]haltingSpeedThresholdThe speed a vehicle's speed must be below to be assigned as jammed
[in]jamDistThresholdThe distance between two vehicles in order to not count them to one jam
Todo:
The lane should not be given as a pointer

Definition at line 77 of file MSE2Collector.cpp.

References myEndPos, MSMoveReminder::myLane, myStartPos, and reset().

§ ~MSE2Collector()

MSE2Collector::~MSE2Collector ( )
virtual

Destructor.

Definition at line 101 of file MSE2Collector.cpp.

References myKnownVehicles.

§ MSE2Collector() [3/3]

MSE2Collector::MSE2Collector ( const MSE2Collector )
private

Invalidated copy constructor.

Member Function Documentation

§ addTo()

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

Adds this object to the given container.

Parameters

Definition at line 129 of file Named.h.

References Named::StoringVisitor::add().

§ buildDetectorGUIRepresentation()

virtual GUIDetectorWrapper* MSDetectorFileOutput::buildDetectorGUIRepresentation ( )
inlinevirtualinherited

Builds the graphical representation.

Meant to be overridden by graphical versions of the detectors

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

Reimplemented in GUI_E2_ZS_Collector, GUIInductLoop, GUIE3Collector, GUI_E2_ZS_CollectorOverLanes, GUIInstantInductLoop, and GUIMEInductLoop.

Definition at line 136 of file MSDetectorFileOutput.h.

§ detectorUpdate()

§ getCurrentHaltingNumber()

int MSE2Collector::getCurrentHaltingNumber ( ) const

Returns the number of current haltings within the area.

If no vehicle is within the area, 0 is returned.

Returns
The mean number of haltings within the area

Definition at line 569 of file MSE2Collector.cpp.

References myCurrentHaltingsNumber.

Referenced by getEndPos(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentJamLengthInMeters()

SUMOReal MSE2Collector::getCurrentJamLengthInMeters ( ) const

Returns the length of all jams in meters.

Definition at line 557 of file MSE2Collector.cpp.

References myCurrentJamLengthInMeters.

Referenced by getEndPos(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentJamLengthInVehicles()

int MSE2Collector::getCurrentJamLengthInVehicles ( ) const

Returns the length of all jams in vehicles.

Definition at line 551 of file MSE2Collector.cpp.

References myCurrentJamLengthInVehicles, and SUMOReal.

Referenced by getEndPos(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentJamNumber()

int MSE2Collector::getCurrentJamNumber ( ) const

Returns the current number of jams.

Definition at line 533 of file MSE2Collector.cpp.

References myCurrentJamNo.

Referenced by getEndPos(), and GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().

§ getCurrentMaxJamLengthInMeters()

SUMOReal MSE2Collector::getCurrentMaxJamLengthInMeters ( ) const

Returns the length in meters of the currently largest jam.

Definition at line 545 of file MSE2Collector.cpp.

References myCurrentMaxJamLengthInMeters.

Referenced by getEndPos(), and GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().

§ getCurrentMaxJamLengthInVehicles()

int MSE2Collector::getCurrentMaxJamLengthInVehicles ( ) const

Returns the length in vehicles of the currently largest jam.

Definition at line 539 of file MSE2Collector.cpp.

References myCurrentMaxJamLengthInVehicles, and SUMOReal.

Referenced by getEndPos(), and GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().

§ getCurrentMeanLength()

SUMOReal MSE2Collector::getCurrentMeanLength ( ) const

Returns the mean vehicle length of vehicles currently on the detector.

Definition at line 527 of file MSE2Collector.cpp.

References myCurrentMeanLength.

Referenced by getEndPos(), and GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().

§ getCurrentMeanSpeed()

SUMOReal MSE2Collector::getCurrentMeanSpeed ( ) const

Returns the mean vehicle speed of vehicles currently on the detector.

Definition at line 521 of file MSE2Collector.cpp.

References myCurrentMeanSpeed, and SUMOReal.

Referenced by getEndPos(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), MSSOTLE2Sensors::meanVehiclesSpeed(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentOccupancy()

SUMOReal MSE2Collector::getCurrentOccupancy ( ) const

Returns the curent detector occupancy.

Definition at line 515 of file MSE2Collector.cpp.

References myCurrentOccupancy, and SUMOReal.

Referenced by getEndPos(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentStartedHalts()

int MSE2Collector::getCurrentStartedHalts ( ) const

Returns the length of all jams in meters.

Definition at line 563 of file MSE2Collector.cpp.

References myCurrentStartedHalts.

Referenced by getEndPos(), and GUI_E2_ZS_Collector::MyWrapper::getParameterWindow().

§ getCurrentVehicleIDs()

std::vector< std::string > MSE2Collector::getCurrentVehicleIDs ( ) const

Returns the IDs of the vehicles within the area.

Returns
The IDs of the vehicles that have passed the entry, but not yet an exit point

Definition at line 575 of file MSE2Collector.cpp.

References myPreviousKnownVehicles.

Referenced by getEndPos(), and TraCIServerAPI_ArealDetector::processGet().

§ getCurrentVehicleNumber()

int MSE2Collector::getCurrentVehicleNumber ( ) const

§ getCurrentVehicles()

const std::vector< MSE2Collector::VehicleInfo > & MSE2Collector::getCurrentVehicles ( ) const

Returns the vehicles within the area.

Returns
The vehicles that have passed the entry, but not yet an exit point

Definition at line 586 of file MSE2Collector.cpp.

References myPreviousKnownVehicles.

Referenced by MSSOTLE2Sensors::count(), and getEndPos().

§ getDescription()

const std::string& MSMoveReminder::getDescription ( ) const
inlineinherited

§ getEndPos()

§ getEstimatedCurrentVehicleNumber()

int MSE2Collector::getEstimatedCurrentVehicleNumber ( SUMOReal  speedThreshold) const

Returns an estimate of the number of vehicles currently on the detector.

Definition at line 450 of file MSE2Collector.cpp.

References MSLane::getLength(), MSLane::getSpeedLimit(), max, myKnownVehicles, MSMoveReminder::myLane, myPreviousKnownVehicles, and SUMOReal.

Referenced by getEndPos().

§ getEstimateQueueLength()

SUMOReal MSE2Collector::getEstimateQueueLength ( ) const

Returns an estimate of the lenght of the queue of vehicles currently stopped on the detector.

Definition at line 473 of file MSE2Collector.cpp.

References DBG, Named::getID(), MSNet::getInstance(), MSLane::getLength(), max, MSMoveReminder::myLane, myPreviousKnownVehicles, SUMOReal, time2string(), and WRITE_MESSAGE.

Referenced by getEndPos().

§ getID()

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

Returns the id.

Returns
The stored id

Definition at line 66 of file Named.h.

References Named::myID.

Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), GNEEdge::getGNEJunctionDest(), GNEEdge::getGNEJunctionSource(), MSLink::getInternalLengthsAfter(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTsender::notifyMove(), notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::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(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_SL2015::patchSpeed(), MSLCM_LC2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), MSBaseVehicle::reroute(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), writeXMLOutput(), MSInductLoop::writeXMLOutput(), and RONet::~RONet().

§ getIDSecure()

§ getLane()

§ getPassedVeh()

int MSE2Collector::getPassedVeh ( )
inline

Returns the number of vehicles passed over the sensor.

Returns
number of cars passed over the sensor

Definition at line 332 of file MSE2Collector.h.

References myPassedVeh.

Referenced by MSSOTLE2Sensors::getPassedVeh().

§ getStartPos()

SUMOReal MSE2Collector::getStartPos ( ) const
inline

Returns the begin position of the detector.

Returns
The detector's begin position

Definition at line 247 of file MSE2Collector.h.

References myStartPos.

Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), and TraCIServerAPI_ArealDetector::processGet().

§ getUsageType()

virtual DetectorUsage MSE2Collector::getUsageType ( ) const
inlinevirtual

Returns the detector's usage type.

See also
DetectorUsage
Returns
How the detector is used.

Definition at line 148 of file MSE2Collector.h.

References detectorUpdate(), myUsage, notifyEnter(), notifyLeave(), notifyMove(), SUMOReal, writeXMLDetectorProlog(), and writeXMLOutput().

Referenced by GUI_E2_ZS_Collector::MyWrapper::drawGL().

§ isTyped()

bool MSDetectorFileOutput::isTyped ( ) const
inlineinherited

Checks whether the detector is type specific.

Returns
whether vehicle types are considered

Definition at line 155 of file MSDetectorFileOutput.h.

References MSDetectorFileOutput::myVehicleTypes.

Referenced by MSMeanData_Amitran::MSLaneMeanDataValues::write().

§ notifyEnter()

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

Parameters
[in]vehThe entering vehicle.
[in]reasonhow the vehicle enters the lane
Returns
False, if vehicle passed the detector entirely, else true.
See also
MSMoveReminder::notifyEnter
MSMoveReminder::Notification

Reimplemented from MSMoveReminder.

Definition at line 181 of file MSE2Collector.cpp.

References SUMOVehicle::getBackPositionOnLane(), SUMOVehicle::isOnRoad(), myEndPos, MSMoveReminder::myLane, and MSDetectorFileOutput::vehicleApplies().

Referenced by getUsageType().

§ notifyLeave()

bool MSE2Collector::notifyLeave ( SUMOVehicle veh,
SUMOReal  lastPos,
MSMoveReminder::Notification  reason 
)
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).

Parameters
[in]vehThe leaving vehicle.
[in]lastPosPosition on the lane when leaving.
[in]isArrivalwhether the vehicle arrived at its destination
[in]isLaneChangewhether the vehicle changed from the lane
See also
MSMoveReminder::notifyLeave

Reimplemented from MSMoveReminder.

Definition at line 172 of file MSE2Collector.cpp.

References MSMoveReminder::NOTIFICATION_JUNCTION.

Referenced by getUsageType().

§ notifyMove()

bool MSE2Collector::notifyMove ( SUMOVehicle veh,
SUMOReal  oldPos,
SUMOReal  newPos,
SUMOReal  newSpeed 
)
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<length>myEndPos). The method returns true as long as the vehicle is not beyond the detector.

Parameters
[in]vehThe vehicle in question.
[in]oldPosPosition before the move-micro-timestep.
[in]newPosPosition after the move-micro-timestep.
[in]newSpeedUnused here.
Returns
False, if vehicle passed the detector entirely, else true.
See also
MSMoveReminder
MSMoveReminder::notifyMove

Reimplemented from MSMoveReminder.

Definition at line 107 of file MSE2Collector.cpp.

References DBG, SUMOVehicle::getAcceleration(), Named::getID(), SUMOVehicle::getID(), MSVehicleType::getID(), MSNet::getInstance(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), SUMOVehicle::getPreviousSpeed(), SUMOVehicle::getVehicleType(), MSGlobals::gSemiImplicitEulerUpdate, MAX2(), MIN2(), myEndPos, myKnownVehicles, MSMoveReminder::myLane, myPassedVeh, myStartPos, NUMERICAL_EPS, MSCFModel::passingTime(), MSCFModel::speedAfterTime(), SUMOReal, time2string(), TS, and WRITE_MESSAGE.

Referenced by getUsageType().

§ notifyMoveInternal()

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

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.

Parameters
[in]vehVehicle that asks this reminder.
[in]frontOnLanetime the front of the vehicle spent on the lane.
[in]timeOnLanetime some part of the vehicle spent on the lane.
[in]meanSpeedFrontOnLaneAverage speed for the time that the front is on the lane.
[in]meanSpeedVehicleOnLaneAverage speed for the time that the vehicle is on the lane (with front or back).
[in]travelledDistanceFrontOnLanedistance travelled while overlapping with the lane.
[in]travelledDistanceVehicleOnLanedistance travelled while front was on the lane.

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

Definition at line 205 of file MSMoveReminder.h.

References UNUSED_PARAMETER.

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

§ operator=()

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

Invalidated assignment operator.

§ removeFromVehicleUpdateValues()

void MSMoveReminder::removeFromVehicleUpdateValues ( SUMOVehicle veh)
protectedinherited

§ reset()

void MSE2Collector::reset ( )
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 195 of file MSE2Collector.cpp.

References myIntervalHaltingVehicleDurations, myJamLengthInMetersSum, myJamLengthInVehiclesSum, myMaxJamInMeters, myMaxJamInVehicles, myMaxOccupancy, myMaxVehicleNumber, myMeanMaxJamInMeters, myMeanMaxJamInVehicles, myMeanVehicleNumber, myOccupancySum, myPassedVeh, myPastIntervalStandingDurations, myPastStandingDurations, mySpeedSum, myStartedHalts, myTimeSamples, and myVehicleSamples.

Referenced by getEndPos(), MSE2Collector(), and writeXMLOutput().

§ setDescription()

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

§ setID()

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

resets the id

Parameters
[in]newIDThe new id of this object

Definition at line 74 of file Named.h.

References Named::myID.

Referenced by NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().

§ subtractPassedVeh()

void MSE2Collector::subtractPassedVeh ( int  passed)
inline

Subtract the number of vehicles indicated from passed from the sensor count.

Parameters
[in]passed- int that indicates the number of vehicles to subtract

Definition at line 340 of file MSE2Collector.h.

References myPassedVeh.

§ updateDetector()

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

§ vehicleApplies()

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

§ writeXMLDetectorProlog()

void MSE2Collector::writeXMLDetectorProlog ( OutputDevice dev) const
virtual

Opens the XML-output using "detector" as root element.

Parameters
[in]devThe output device to write the root into
See also
MSDetectorFileOutput::writeXMLDetectorProlog
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Implements MSDetectorFileOutput.

Definition at line 432 of file MSE2Collector.cpp.

References OutputDevice::writeXMLHeader().

Referenced by getUsageType().

§ writeXMLOutput()

void MSE2Collector::writeXMLOutput ( OutputDevice dev,
SUMOTime  startTime,
SUMOTime  stopTime 
)
virtual

Writes collected values into the given stream.

Parameters
[in]devThe output device to write the data into
[in]startTimeFirst time step the data were gathered
[in]stopTimeLast time step the data were gathered
See also
MSDetectorFileOutput::writeXMLOutput
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Implements MSDetectorFileOutput.

Definition at line 367 of file MSE2Collector.cpp.

References Named::getID(), MAX2(), myHaltingVehicleDurations, myIntervalHaltingVehicleDurations, myJamLengthInMetersSum, myJamLengthInVehiclesSum, myMaxJamInMeters, myMaxJamInVehicles, myMaxOccupancy, myMaxVehicleNumber, myMeanMaxJamInMeters, myMeanMaxJamInVehicles, myMeanVehicleNumber, myOccupancySum, myPassedVeh, myPastIntervalStandingDurations, myPastStandingDurations, mySpeedSum, myStartedHalts, myTimeSamples, myVehicleSamples, reset(), STEPS2TIME, SUMOReal, and time2string().

Referenced by getUsageType().

Field Documentation

§ myCurrentHaltingsNumber

int MSE2Collector::myCurrentHaltingsNumber
private

The number of halted vehicles [#].

Definition at line 452 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentHaltingNumber().

§ myCurrentJamLengthInMeters

SUMOReal MSE2Collector::myCurrentJamLengthInMeters
private

The overall jam length in meters.

Definition at line 446 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentJamLengthInMeters().

§ myCurrentJamLengthInVehicles

int MSE2Collector::myCurrentJamLengthInVehicles
private

The overall jam length in vehicles.

Definition at line 448 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentJamLengthInVehicles().

§ myCurrentJamNo

int MSE2Collector::myCurrentJamNo
private

The current jam number.

Definition at line 440 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentJamNumber().

§ myCurrentMaxJamLengthInMeters

SUMOReal MSE2Collector::myCurrentMaxJamLengthInMeters
private

the current maximum jam length in meters

Definition at line 442 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentMaxJamLengthInMeters().

§ myCurrentMaxJamLengthInVehicles

int MSE2Collector::myCurrentMaxJamLengthInVehicles
private

The current maximum jam length in vehicles.

Definition at line 444 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentMaxJamLengthInVehicles().

§ myCurrentMeanLength

SUMOReal MSE2Collector::myCurrentMeanLength
private

The current mean length.

Definition at line 438 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentMeanLength().

§ myCurrentMeanSpeed

SUMOReal MSE2Collector::myCurrentMeanSpeed
private

The current mean speed.

Definition at line 436 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentMeanSpeed().

§ myCurrentOccupancy

SUMOReal MSE2Collector::myCurrentOccupancy
private

The current occupancy.

Definition at line 434 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentOccupancy().

§ myCurrentStartedHalts

int MSE2Collector::myCurrentStartedHalts
private

The number of started halts in the last step.

Definition at line 450 of file MSE2Collector.h.

Referenced by detectorUpdate(), and getCurrentStartedHalts().

§ myDescription

std::string MSMoveReminder::myDescription
protectedinherited

a description of this moveReminder

Definition at line 237 of file MSMoveReminder.h.

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

§ myEndPos

SUMOReal MSE2Collector::myEndPos
private

The position the detector ends at.

Definition at line 371 of file MSE2Collector.h.

Referenced by detectorUpdate(), getEndPos(), MSE2Collector(), notifyEnter(), and notifyMove().

§ myHaltingVehicleDurations

std::map<const std::string, SUMOTime> MSE2Collector::myHaltingVehicleDurations
private

Storage for halting durations of known vehicles (for halting vehicles)

Definition at line 384 of file MSE2Collector.h.

Referenced by detectorUpdate(), and writeXMLOutput().

§ myID

§ myIntervalHaltingVehicleDurations

std::map<const std::string, SUMOTime> MSE2Collector::myIntervalHaltingVehicleDurations
private

Storage for halting durations of known vehicles (current interval)

Definition at line 387 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myJamDistanceThreshold

SUMOReal MSE2Collector::myJamDistanceThreshold
private

Two standing vehicles must be closer than this to be counted into the same jam.

Definition at line 367 of file MSE2Collector.h.

Referenced by detectorUpdate().

§ myJamHaltingSpeedThreshold

SUMOReal MSE2Collector::myJamHaltingSpeedThreshold
private

A vehicle must driver slower than this to be counted as a part of a jam.

Definition at line 363 of file MSE2Collector.h.

Referenced by detectorUpdate().

§ myJamHaltingTimeThreshold

SUMOTime MSE2Collector::myJamHaltingTimeThreshold
private

A vehicle must be that long beyond myJamHaltingSpeedThreshold to be counted as a part of a jam.

Definition at line 365 of file MSE2Collector.h.

Referenced by detectorUpdate().

§ myJamLengthInMetersSum

SUMOReal MSE2Collector::myJamLengthInMetersSum
private

The sum of jam lengths [m].

Definition at line 404 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myJamLengthInVehiclesSum

int MSE2Collector::myJamLengthInVehiclesSum
private

The sum of jam lengths [#veh].

Definition at line 406 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myKnownVehicles

std::vector<VehicleInfo> MSE2Collector::myKnownVehicles
private

List of known vehicles.

Definition at line 378 of file MSE2Collector.h.

Referenced by detectorUpdate(), getEstimatedCurrentVehicleNumber(), notifyMove(), and ~MSE2Collector().

§ myLane

§ myMaxJamInMeters

SUMOReal MSE2Collector::myMaxJamInMeters
private

The max jam length [m].

Definition at line 422 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMaxJamInVehicles

int MSE2Collector::myMaxJamInVehicles
private

The max jam length [#veh].

Definition at line 420 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMaxOccupancy

SUMOReal MSE2Collector::myMaxOccupancy
private

The maximum occupancy [%].

Definition at line 414 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMaxVehicleNumber

int MSE2Collector::myMaxVehicleNumber
private

The max number of vehicles [#veh].

Definition at line 426 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMeanMaxJamInMeters

SUMOReal MSE2Collector::myMeanMaxJamInMeters
private

The mean jam length [m].

Definition at line 418 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMeanMaxJamInVehicles

int MSE2Collector::myMeanMaxJamInVehicles
private

The mean jam length [#veh].

Definition at line 416 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myMeanVehicleNumber

int MSE2Collector::myMeanVehicleNumber
private

The mean number of vehicles [#veh].

Definition at line 424 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myOccupancySum

SUMOReal MSE2Collector::myOccupancySum
private

The sum of occupancies [%].

Definition at line 412 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myPassedVeh

int MSE2Collector::myPassedVeh
private

The number of vehicles passed on the sensor.

Definition at line 454 of file MSE2Collector.h.

Referenced by getPassedVeh(), notifyMove(), reset(), subtractPassedVeh(), and writeXMLOutput().

§ myPastIntervalStandingDurations

std::vector<SUMOTime> MSE2Collector::myPastIntervalStandingDurations
private

Halting durations of ended halts for the current interval [s].

Definition at line 393 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myPastStandingDurations

std::vector<SUMOTime> MSE2Collector::myPastStandingDurations
private

Halting durations of ended halts [s].

Definition at line 390 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myPreviousKnownVehicles

std::vector<VehicleInfo> MSE2Collector::myPreviousKnownVehicles
private

§ mySpeedSum

SUMOReal MSE2Collector::mySpeedSum
private

The sum of collected vehicle speeds [m/s].

Definition at line 400 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myStartedHalts

SUMOReal MSE2Collector::myStartedHalts
private

The number of started halts [#].

Definition at line 402 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myStartPos

SUMOReal MSE2Collector::myStartPos
private

The position the detector starts at.

Definition at line 369 of file MSE2Collector.h.

Referenced by detectorUpdate(), getStartPos(), MSE2Collector(), and notifyMove().

§ myTimeSamples

int MSE2Collector::myTimeSamples
private

The current aggregation duration [#steps].

Definition at line 410 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myUsage

DetectorUsage MSE2Collector::myUsage
private

Information about how this detector is used.

Definition at line 375 of file MSE2Collector.h.

Referenced by getUsageType().

§ myVehicleSamples

SUMOReal MSE2Collector::myVehicleSamples
private

The number of collected samples [#].

Definition at line 408 of file MSE2Collector.h.

Referenced by detectorUpdate(), reset(), and writeXMLOutput().

§ myVehicleTypes

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

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