SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GUI_E2_ZS_Collector Class Reference

The gui-version of the MS_E2_ZS_Collector. More...

#include <GUI_E2_ZS_Collector.h>

Inheritance diagram for GUI_E2_ZS_Collector:
Inheritance graph
Collaboration diagram for GUI_E2_ZS_Collector:
Collaboration graph

Data Structures

class  MyWrapper
 

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...
 
virtual GUIDetectorWrapperbuildDetectorGUIRepresentation ()
 Returns the wrapper for this detector. 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...
 
 GUI_E2_ZS_Collector (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...
 
 GUI_E2_ZS_Collector (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...
 
 ~GUI_E2_ZS_Collector ()
 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...
 

Virtual methods to implement by derived classes

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

The gui-version of the MS_E2_ZS_Collector.

Allows the building of a wrapper (also declared herein) which draws the detector on the gl-canvas. Beside this, the method "amVisible" is overridden to signalise that this detector is not used for simulation- -internal reasons, but is placed over the simulation by the user.

Definition at line 57 of file GUI_E2_ZS_Collector.h.

Member Enumeration Documentation

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

GUI_E2_ZS_Collector::GUI_E2_ZS_Collector ( 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 55 of file GUI_E2_ZS_Collector.cpp.

GUI_E2_ZS_Collector::GUI_E2_ZS_Collector ( 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 63 of file GUI_E2_ZS_Collector.cpp.

GUI_E2_ZS_Collector::~GUI_E2_ZS_Collector ( )

Destructor.

Definition at line 71 of file GUI_E2_ZS_Collector.cpp.

Member Function Documentation

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

Adds this object to the given container.

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

Definition at line 129 of file Named.h.

References Named::StoringVisitor::add().

GUIDetectorWrapper * GUI_E2_ZS_Collector::buildDetectorGUIRepresentation ( )
virtual

Returns the wrapper for this detector.

Returns
The wrapper representing the detector
See also
MyWrapper

Reimplemented from MSDetectorFileOutput.

Definition at line 75 of file GUI_E2_ZS_Collector.cpp.

Referenced by GUI_E2_ZS_CollectorOverLanes::MyWrapper::MyWrapper().

void MSE2Collector::detectorUpdate ( const SUMOTime  step)
virtualinherited

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.

Parameters
[in]currentTimeThe current simulation time

Reimplemented from MSDetectorFileOutput.

Definition at line 221 of file MSE2Collector.cpp.

References DELTA_T, MSE2Collector::JamInfo::firstStandingVehicle, MSE2Collector::JamInfo::lastStandingVehicle, MAX2(), MSE2Collector::myCurrentHaltingsNumber, MSE2Collector::myCurrentJamLengthInMeters, MSE2Collector::myCurrentJamLengthInVehicles, MSE2Collector::myCurrentJamNo, MSE2Collector::myCurrentMaxJamLengthInMeters, MSE2Collector::myCurrentMaxJamLengthInVehicles, MSE2Collector::myCurrentMeanLength, MSE2Collector::myCurrentMeanSpeed, MSE2Collector::myCurrentOccupancy, MSE2Collector::myCurrentStartedHalts, MSE2Collector::myEndPos, MSE2Collector::myHaltingVehicleDurations, MSE2Collector::myIntervalHaltingVehicleDurations, MSE2Collector::myJamDistanceThreshold, MSE2Collector::myJamHaltingSpeedThreshold, MSE2Collector::myJamHaltingTimeThreshold, MSE2Collector::myJamLengthInMetersSum, MSE2Collector::myJamLengthInVehiclesSum, MSE2Collector::myKnownVehicles, MSE2Collector::myMaxJamInMeters, MSE2Collector::myMaxJamInVehicles, MSE2Collector::myMaxOccupancy, MSE2Collector::myMaxVehicleNumber, MSE2Collector::myMeanMaxJamInMeters, MSE2Collector::myMeanMaxJamInVehicles, MSE2Collector::myMeanVehicleNumber, MSE2Collector::myOccupancySum, MSE2Collector::myPastIntervalStandingDurations, MSE2Collector::myPastStandingDurations, MSE2Collector::myPreviousKnownVehicles, MSE2Collector::mySpeedSum, MSE2Collector::myStartedHalts, MSE2Collector::myStartPos, MSE2Collector::myTimeSamples, MSE2Collector::myVehicleSamples, and SUMOReal.

int MSE2Collector::getCurrentHaltingNumber ( ) const
inherited

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 MSE2Collector::myCurrentHaltingsNumber.

Referenced by TraCIServerAPI_ArealDetector::processGet().

SUMOReal MSE2Collector::getCurrentJamLengthInMeters ( ) const
inherited

Returns the length of all jams in meters.

Definition at line 557 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentJamLengthInMeters.

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

int MSE2Collector::getCurrentJamLengthInVehicles ( ) const
inherited

Returns the length of all jams in vehicles.

Definition at line 551 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentJamLengthInVehicles.

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

int MSE2Collector::getCurrentJamNumber ( ) const
inherited

Returns the current number of jams.

Definition at line 533 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentJamNo.

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

SUMOReal MSE2Collector::getCurrentMaxJamLengthInMeters ( ) const
inherited

Returns the length in meters of the currently largest jam.

Definition at line 545 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentMaxJamLengthInMeters.

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

int MSE2Collector::getCurrentMaxJamLengthInVehicles ( ) const
inherited

Returns the length in vehicles of the currently largest jam.

Definition at line 539 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentMaxJamLengthInVehicles.

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

SUMOReal MSE2Collector::getCurrentMeanLength ( ) const
inherited

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

Definition at line 527 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentMeanLength.

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

SUMOReal MSE2Collector::getCurrentMeanSpeed ( ) const
inherited

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

Definition at line 521 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentMeanSpeed.

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

SUMOReal MSE2Collector::getCurrentOccupancy ( ) const
inherited

Returns the curent detector occupancy.

Definition at line 515 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentOccupancy.

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

int MSE2Collector::getCurrentStartedHalts ( ) const
inherited

Returns the length of all jams in meters.

Definition at line 563 of file MSE2Collector.cpp.

References MSE2Collector::myCurrentStartedHalts.

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

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

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 MSE2Collector::myPreviousKnownVehicles.

Referenced by TraCIServerAPI_ArealDetector::processGet().

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

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 MSE2Collector::myPreviousKnownVehicles.

Referenced by MSSOTLE2Sensors::count().

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

Definition at line 225 of file MSMoveReminder.h.

References MSMoveReminder::myDescription.

SUMOReal MSE2Collector::getEndPos ( ) const
inlineinherited

Returns the end position of the detector.

Returns
The detector's end position

Definition at line 256 of file MSE2Collector.h.

References MSE2Collector::myEndPos.

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

int MSE2Collector::getEstimatedCurrentVehicleNumber ( SUMOReal  speedThreshold) const
inherited

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, MSE2Collector::myKnownVehicles, MSMoveReminder::myLane, MSE2Collector::myPreviousKnownVehicles, and SUMOReal.

SUMOReal MSE2Collector::getEstimateQueueLength ( ) const
inherited

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, MSE2Collector::myPreviousKnownVehicles, SUMOReal, time2string(), and WRITE_MESSAGE.

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(), 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(), 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(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), GNEEdge::getGNEJunctionDest(), GNEEdge::getGNEJunctionSource(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIVehicle::getParameterWindow(), GUILane::getParentName(), 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(), 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(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSE2Collector::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_TLS::processGet(), TraCIServerAPI_InductionLoop::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(), ROPerson::Ride::saveAsXML(), 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(), 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(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), 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(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and RONet::~RONet().

int MSE2Collector::getPassedVeh ( )
inlineinherited

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 MSE2Collector::myPassedVeh.

Referenced by MSSOTLE2Sensors::getPassedVeh().

SUMOReal MSE2Collector::getStartPos ( ) const
inlineinherited

Returns the begin position of the detector.

Returns
The detector's begin position

Definition at line 247 of file MSE2Collector.h.

References MSE2Collector::myStartPos.

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

virtual DetectorUsage MSE2Collector::getUsageType ( ) const
inlinevirtualinherited

Returns the detector's usage type.

See also
DetectorUsage
Returns
How the detector is used.

Definition at line 148 of file MSE2Collector.h.

References MSE2Collector::myUsage.

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.

bool MSE2Collector::notifyEnter ( SUMOVehicle veh,
MSMoveReminder::Notification  reason 
)
virtualinherited

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(), MSE2Collector::myEndPos, MSMoveReminder::myLane, and MSDetectorFileOutput::vehicleApplies().

bool MSE2Collector::notifyLeave ( SUMOVehicle veh,
SUMOReal  lastPos,
MSMoveReminder::Notification  reason 
)
virtualinherited

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.

bool MSE2Collector::notifyMove ( SUMOVehicle veh,
SUMOReal  oldPos,
SUMOReal  newPos,
SUMOReal  newSpeed 
)
virtualinherited

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(), MSE2Collector::myEndPos, MSE2Collector::myKnownVehicles, MSMoveReminder::myLane, MSE2Collector::myPassedVeh, MSE2Collector::myStartPos, NUMERICAL_EPS, MSCFModel::passingTime(), MSCFModel::speedAfterTime(), SUMOReal, time2string(), TS, and WRITE_MESSAGE.

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 MSMoveReminder::updateDetector().

void MSMoveReminder::removeFromVehicleUpdateValues ( SUMOVehicle veh)
protectedinherited
void MSMoveReminder::setDescription ( const std::string &  description)
inlineinherited
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().

void MSE2Collector::subtractPassedVeh ( int  passed)
inlineinherited

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 MSE2Collector::myPassedVeh.

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

Checks whether the detector measures vehicles of the given type.

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

Definition at line 146 of file MSDetectorFileOutput.h.

References MSVehicleType::getID(), SUMOVehicle::getVehicleType(), and MSDetectorFileOutput::myVehicleTypes.

Referenced by MSInductLoop::notifyEnter(), MSE2Collector::notifyEnter(), and MSInstantInductLoop::notifyMove().

void MSE2Collector::writeXMLDetectorProlog ( OutputDevice dev) const
virtualinherited

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

Field Documentation

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

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

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