![]() |
SUMO - Simulation of Urban MObility
|
An areal (along a single lane) detector. More...
#include <MSE2Collector.h>
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 MSLane * | getLane () 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... | |
MSE2Collector & | operator= (const MSE2Collector &) |
Invalidated assignment operator. More... | |
Private Attributes | |
std::map< const std::string, SUMOTime > | myHaltingVehicleDurations |
Storage for halting durations of known vehicles (for halting vehicles) More... | |
std::map< const std::string, SUMOTime > | myIntervalHaltingVehicleDurations |
Storage for halting durations of known vehicles (current interval) More... | |
std::vector< VehicleInfo > | myKnownVehicles |
List of known vehicles. More... | |
std::vector< SUMOTime > | myPastIntervalStandingDurations |
Halting durations of ended halts for the current interval [s]. More... | |
std::vector< SUMOTime > | myPastStandingDurations |
Halting durations of ended halts [s]. More... | |
std::vector< VehicleInfo > | myPreviousKnownVehicles |
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 GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
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... | |
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 83 of file MSE2Collector.h.
|
inherited |
Definition of a vehicle state.
Definition at line 95 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, | ||
const std::string & | vTypes | ||
) |
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 53 of file MSE2Collector.cpp.
References myEndPos, MSMoveReminder::myLane, myStartPos, and reset().
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.
[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 77 of file MSE2Collector.cpp.
References myEndPos, MSMoveReminder::myLane, myStartPos, and reset().
|
virtual |
|
private |
Invalidated copy constructor.
|
inlineinherited |
Adds this object to the given container.
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
|
inlinevirtualinherited |
Builds the graphical representation.
Meant to be overridden by graphical versions of the detectors
Reimplemented in GUI_E2_ZS_Collector, GUIInductLoop, GUIE3Collector, GUI_E2_ZS_CollectorOverLanes, GUIInstantInductLoop, and GUIMEInductLoop.
Definition at line 136 of file MSDetectorFileOutput.h.
|
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 221 of file MSE2Collector.cpp.
References DELTA_T, MSE2Collector::JamInfo::firstStandingVehicle, MSE2Collector::JamInfo::lastStandingVehicle, MAX2(), myCurrentHaltingsNumber, myCurrentJamLengthInMeters, myCurrentJamLengthInVehicles, myCurrentJamNo, myCurrentMaxJamLengthInMeters, myCurrentMaxJamLengthInVehicles, myCurrentMeanLength, myCurrentMeanSpeed, myCurrentOccupancy, myCurrentStartedHalts, myEndPos, myHaltingVehicleDurations, myIntervalHaltingVehicleDurations, myJamDistanceThreshold, myJamHaltingSpeedThreshold, myJamHaltingTimeThreshold, myJamLengthInMetersSum, myJamLengthInVehiclesSum, myKnownVehicles, myMaxJamInMeters, myMaxJamInVehicles, myMaxOccupancy, myMaxVehicleNumber, myMeanMaxJamInMeters, myMeanMaxJamInVehicles, myMeanVehicleNumber, myOccupancySum, myPastIntervalStandingDurations, myPastStandingDurations, myPreviousKnownVehicles, mySpeedSum, myStartedHalts, myStartPos, myTimeSamples, myVehicleSamples, and SUMOReal.
Referenced by getUsageType().
int MSE2Collector::getCurrentHaltingNumber | ( | ) | const |
Returns the number of current haltings within the area.
If no vehicle is within the area, 0 is returned.
Definition at line 569 of file MSE2Collector.cpp.
References myCurrentHaltingsNumber.
Referenced by getEndPos(), and TraCIServerAPI_ArealDetector::processGet().
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().
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().
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().
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().
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().
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().
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().
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().
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().
std::vector< std::string > MSE2Collector::getCurrentVehicleIDs | ( | ) | const |
Returns the IDs of the vehicles within the area.
Definition at line 575 of file MSE2Collector.cpp.
References myPreviousKnownVehicles.
Referenced by getEndPos(), and TraCIServerAPI_ArealDetector::processGet().
int MSE2Collector::getCurrentVehicleNumber | ( | ) | const |
Returns the number of vehicles currently on the detector.
Definition at line 438 of file MSE2Collector.cpp.
References myPreviousKnownVehicles.
Referenced by MSSOTLE2Sensors::count(), getEndPos(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), MSSOTLE2Sensors::meanVehiclesSpeed(), and TraCIServerAPI_ArealDetector::processGet().
const std::vector< MSE2Collector::VehicleInfo > & MSE2Collector::getCurrentVehicles | ( | ) | const |
Returns the vehicles within the area.
Definition at line 586 of file MSE2Collector.cpp.
References myPreviousKnownVehicles.
Referenced by MSSOTLE2Sensors::count(), and getEndPos().
|
inlineinherited |
Definition at line 225 of file MSMoveReminder.h.
References MSMoveReminder::myDescription, and MSMoveReminder::removeFromVehicleUpdateValues().
Referenced by MSBaseVehicle::addStops().
|
inline |
Returns the end position of the detector.
Definition at line 256 of file MSE2Collector.h.
References getCurrentHaltingNumber(), getCurrentJamLengthInMeters(), getCurrentJamLengthInVehicles(), getCurrentJamNumber(), getCurrentMaxJamLengthInMeters(), getCurrentMaxJamLengthInVehicles(), getCurrentMeanLength(), getCurrentMeanSpeed(), getCurrentOccupancy(), getCurrentStartedHalts(), getCurrentVehicleIDs(), getCurrentVehicleNumber(), getCurrentVehicles(), getEstimatedCurrentVehicleNumber(), getEstimateQueueLength(), myEndPos, reset(), and SUMOReal.
Referenced by GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), and TraCIServerAPI_ArealDetector::processGet().
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().
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().
|
inlineinherited |
Returns the 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().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 59 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSLaneChanger::continueChange(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), operator<<(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 89 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSMeanData::MeanDataValues::notifyMove(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_ArealDetector::processGet(), and MSMeanData::writeEdge().
|
inline |
Returns the number of vehicles passed over the sensor.
Definition at line 332 of file MSE2Collector.h.
References myPassedVeh.
Referenced by MSSOTLE2Sensors::getPassedVeh().
|
inline |
Returns the begin position of the detector.
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().
|
inlinevirtual |
Returns the detector's usage type.
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().
|
inlineinherited |
Checks whether the detector is type specific.
Definition at line 155 of file MSDetectorFileOutput.h.
References MSDetectorFileOutput::myVehicleTypes.
Referenced by MSMeanData_Amitran::MSLaneMeanDataValues::write().
|
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 181 of file MSE2Collector.cpp.
References SUMOVehicle::getBackPositionOnLane(), SUMOVehicle::isOnRoad(), myEndPos, MSMoveReminder::myLane, and MSDetectorFileOutput::vehicleApplies().
Referenced by getUsageType().
|
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 172 of file MSE2Collector.cpp.
References MSMoveReminder::NOTIFICATION_JUNCTION.
Referenced by getUsageType().
|
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.
[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 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().
|
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.
[in] | veh | Vehicle that asks this reminder. |
[in] | frontOnLane | time the front of the vehicle spent on the lane. |
[in] | timeOnLane | time some part of the vehicle spent on the lane. |
[in] | meanSpeedFrontOnLane | Average speed for the time that the front is on the lane. |
[in] | meanSpeedVehicleOnLane | Average speed for the time that the vehicle is on the lane (with front or back). |
[in] | travelledDistanceFrontOnLane | distance travelled while overlapping with the lane. |
[in] | travelledDistanceVehicleOnLane | distance 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().
|
private |
Invalidated assignment operator.
|
protectedinherited |
Definition at line 94 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues.
Referenced by MSMoveReminder::getDescription(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), and MSMoveReminder::updateDetector().
|
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().
|
inlineinherited |
Definition at line 221 of file MSMoveReminder.h.
References MSMoveReminder::myDescription.
Referenced by MSMeanData::init(), MEInductLoop::MEInductLoop(), METriggeredCalibrator::METriggeredCalibrator(), and MSCalibrator::MSCalibrator().
|
inlineinherited |
resets the id
[in] | newID | The 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().
|
inline |
Subtract the number of vehicles indicated from passed from the sensor count.
[in] | passed | - int that indicates the number of vehicles to subtract |
Definition at line 340 of file MSE2Collector.h.
References myPassedVeh.
|
inherited |
Definition at line 51 of file MSMoveReminder.cpp.
References MSMoveReminder::myLastVehicleUpdateValues, MSMoveReminder::notifyMoveInternal(), MSMoveReminder::removeFromVehicleUpdateValues(), STEPS2TIME, and SUMOReal.
Referenced by MSMoveReminder::notifyLeave(), and MEVehicle::updateDetectorForWriting().
|
inlineinherited |
Checks whether the detector measures vehicles of the given type.
[in] | veh | the vehicle of which the type is checked. |
Definition at line 146 of file MSDetectorFileOutput.h.
References MSVehicleType::getID(), SUMOVehicle::getVehicleType(), and MSDetectorFileOutput::myVehicleTypes.
Referenced by MSMeanData::MeanDataValues::notifyEnter(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSInductLoop::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), and MSInstantInductLoop::notifyMove().
|
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 432 of file MSE2Collector.cpp.
References OutputDevice::writeXMLHeader().
Referenced by getUsageType().
|
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 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().
|
private |
The number of halted vehicles [#].
Definition at line 452 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentHaltingNumber().
|
private |
The overall jam length in meters.
Definition at line 446 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentJamLengthInMeters().
|
private |
The overall jam length in vehicles.
Definition at line 448 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentJamLengthInVehicles().
|
private |
The current jam number.
Definition at line 440 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentJamNumber().
|
private |
the current maximum jam length in meters
Definition at line 442 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentMaxJamLengthInMeters().
|
private |
The current maximum jam length in vehicles.
Definition at line 444 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentMaxJamLengthInVehicles().
|
private |
The current mean length.
Definition at line 438 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentMeanLength().
|
private |
The current mean speed.
Definition at line 436 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentMeanSpeed().
|
private |
The current occupancy.
Definition at line 434 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentOccupancy().
|
private |
The number of started halts in the last step.
Definition at line 450 of file MSE2Collector.h.
Referenced by detectorUpdate(), and getCurrentStartedHalts().
|
protectedinherited |
a description of this moveReminder
Definition at line 237 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getDescription(), and MSMoveReminder::setDescription().
|
private |
The position the detector ends at.
Definition at line 371 of file MSE2Collector.h.
Referenced by detectorUpdate(), getEndPos(), MSE2Collector(), notifyEnter(), and notifyMove().
|
private |
Storage for halting durations of known vehicles (for halting vehicles)
Definition at line 384 of file MSE2Collector.h.
Referenced by detectorUpdate(), and writeXMLOutput().
|
protectedinherited |
The name of the object.
Definition at line 136 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
private |
Storage for halting durations of known vehicles (current interval)
Definition at line 387 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
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().
|
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().
|
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().
|
private |
The sum of jam lengths [m].
Definition at line 404 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The sum of jam lengths [#veh].
Definition at line 406 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
List of known vehicles.
Definition at line 378 of file MSE2Collector.h.
Referenced by detectorUpdate(), getEstimatedCurrentVehicleNumber(), notifyMove(), and ~MSE2Collector().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 235 of file MSMoveReminder.h.
Referenced by getEstimatedCurrentVehicleNumber(), getEstimateQueueLength(), MSMoveReminder::getLane(), MSE2Collector(), MSMoveReminder::MSMoveReminder(), MSInductLoop::notifyEnter(), notifyEnter(), notifyMove(), and MSMeanData::MeanDataValueTracker::reset().
|
private |
The max jam length [m].
Definition at line 422 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The max jam length [#veh].
Definition at line 420 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The maximum occupancy [%].
Definition at line 414 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The max number of vehicles [#veh].
Definition at line 426 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The mean jam length [m].
Definition at line 418 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The mean jam length [#veh].
Definition at line 416 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The mean number of vehicles [#veh].
Definition at line 424 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The sum of occupancies [%].
Definition at line 412 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
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().
|
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().
|
private |
Halting durations of ended halts [s].
Definition at line 390 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
List of previously known vehicles.
Definition at line 381 of file MSE2Collector.h.
Referenced by detectorUpdate(), getCurrentVehicleIDs(), getCurrentVehicleNumber(), getCurrentVehicles(), getEstimatedCurrentVehicleNumber(), and getEstimateQueueLength().
|
private |
The sum of collected vehicle speeds [m/s].
Definition at line 400 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The number of started halts [#].
Definition at line 402 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
The position the detector starts at.
Definition at line 369 of file MSE2Collector.h.
Referenced by detectorUpdate(), getStartPos(), MSE2Collector(), and notifyMove().
|
private |
The current aggregation duration [#steps].
Definition at line 410 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
private |
Information about how this detector is used.
Definition at line 375 of file MSE2Collector.h.
Referenced by getUsageType().
|
private |
The number of collected samples [#].
Definition at line 408 of file MSE2Collector.h.
Referenced by detectorUpdate(), reset(), and writeXMLOutput().
|
protectedinherited |
The vehicle types to look for (empty means all)
Definition at line 162 of file MSDetectorFileOutput.h.
Referenced by MS_E2_ZS_CollectorOverLanes::extendTo(), MS_E2_ZS_CollectorOverLanes::init(), MSDetectorFileOutput::isTyped(), MSDetectorFileOutput::MSDetectorFileOutput(), and MSDetectorFileOutput::vehicleApplies().