|
SUMO - Simulation of Urban MObility
|
An unextended detector measuring at a fixed position on a fixed lane. More...
#include <MSInductLoop.h>
Data Structures | |
| struct | VehicleData |
| Struct to store the data of the counted vehicle internally. 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 | |
| virtual std::vector< VehicleData > | collectVehiclesOnDet (SUMOTime t) const throw () |
| Returns vehicle data for vehicles that have been on the detector starting at the given time. | |
| const std::string & | getID () const |
| Returns the id. | |
| const MSLane * | getLane () const throw () |
| Returns the lane the reminder works on. | |
| SUMOReal | getPosition () const |
| Returns the position of the detector on the lane. | |
| MSInductLoop (const std::string &id, MSLane *const lane, SUMOReal positionInMeters, bool splitByType) throw () | |
| Constructor. | |
| virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) throw () |
| Internal notification about the vehicle moves. | |
| virtual void | reset () throw () |
| Resets all generated values to allow computation of next interval. | |
| void | setID (const std::string &newID) |
| resets the id | |
| ~MSInductLoop () throw () | |
| Destructor. | |
Methods inherited from MSMoveReminder | |
| bool | notifyMove (SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) throw () |
| Checks whether the vehicle shall be counted and/or shall still touch this MSMoveReminder. | |
| bool | notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason) throw () |
| Dismisses the vehicle if it is on the detector due to a lane change. | |
| bool | notifyEnter (SUMOVehicle &veh, MSMoveReminder::Notification reason) throw () |
| Returns whether the detector may has to be concerned during the vehicle's further movement. | |
Methods returning current values | |
| SUMOReal | getCurrentSpeed () const throw () |
| Returns the speed of the vehicle on the detector. | |
| SUMOReal | getCurrentLength () const throw () |
| Returns the length of the vehicle on the detector. | |
| SUMOReal | getCurrentOccupancy () const throw () |
| Returns the current occupancy. | |
| unsigned int | getCurrentPassedNumber () const throw () |
| Returns the number of vehicles that have passed the detector. | |
| std::vector< std::string > | getCurrentVehicleIDs () const throw () |
| Returns the ids of vehicles that have passed the detector. | |
| SUMOReal | getTimestepsSinceLastDetection () const throw () |
| Returns the time since the last vehicle left the detector. | |
Methods inherited from MSDetectorFileOutput. | |
| void | writeXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime) throw (IOError) |
| Writes collected values into the given stream. | |
| void | writeXMLDetectorProlog (OutputDevice &dev) const throw (IOError) |
| Opens the XML-output using "detector" as root element. | |
Virtual methods to implement by derived classes | |
| virtual void | detectorUpdate (const SUMOTime step) throw () |
| Updates the detector (computes values) | |
| virtual GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
| Builds the graphical representation. | |
Protected Types | |
| typedef std::deque< VehicleData > | VehicleDataCont |
| Type of myVehicleDataCont. | |
| typedef std::map< SUMOVehicle *, SUMOReal > | VehicleMap |
| Type of myVehiclesOnDet. | |
Protected Member Functions | |
| void | writeTypedXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime, const std::string &type, const VehicleDataCont &vdc, const VehicleMap &vm) throw (IOError) |
Methods that add and remove vehicles from internal container | |
| virtual void | enterDetectorByMove (SUMOVehicle &veh, SUMOReal entryTimestep) throw () |
| Introduces a vehicle to the detector's map myVehiclesOnDet. | |
| virtual void | leaveDetectorByMove (SUMOVehicle &veh, SUMOReal leaveTimestep) throw () |
| Processes a vehicle that leaves the detector. | |
| virtual void | leaveDetectorByLaneChange (SUMOVehicle &veh) throw () |
| Removes a vehicle from the detector's map myVehiclesOnDet. | |
Static Protected Member Functions | |
Function for summing up values | |
| static SUMOReal | speedSum (SUMOReal sumSoFar, const MSInductLoop::VehicleData &data) throw () |
| Adds up VehicleData::speedM. | |
| static SUMOReal | lengthSum (SUMOReal sumSoFar, const MSInductLoop::VehicleData &data) throw () |
| Adds up VehicleData::lengthM. | |
Protected Attributes | |
| unsigned | myDismissedVehicleNumber |
| The number of dismissed vehicles. | |
| std::string | myID |
| The name of the object. | |
| MSLane *const | myLane |
| Lane on which the reminder works. | |
| SUMOReal | myLastLeaveTime |
| Leave-time of the last vehicle detected [s]. | |
| SUMOReal | myLastOccupancy |
| Occupancy by the last vehicle detected. | |
| VehicleDataCont | myLastVehicleDataCont |
| Data of vehicles that have completely passed the detector in the last time interval. | |
| const SUMOReal | myPosition |
| Detector's position on lane [m]. | |
| bool | mySplitByType |
| Whether additional information split by vehicle classes shall be generated. | |
| VehicleDataCont | myVehicleDataCont |
| Data of vehicles that have completely passed the detector. | |
| VehicleMap | myVehiclesOnDet |
| Data for vehicles that have entered the detector (vehicle -> enter time) | |
Private Member Functions | |
| MSInductLoop (const MSInductLoop &) | |
| Invalidated copy constructor. | |
| MSInductLoop & | operator= (const MSInductLoop &) |
| Invalidated assignment operator. | |
An unextended detector measuring at a fixed position on a fixed lane.
Only vehicles that passed the entire detector are counted. We ignore vehicles that are emitted onto the detector and vehicles that change their lane while they are on the detector, because we cannot determine a meaningful enter/leave-times.
This detector uses the MSMoveReminder mechanism, i.e. the vehicles call the detector if they pass it.
Definition at line 66 of file MSInductLoop.h.
typedef std::deque< VehicleData > MSInductLoop::VehicleDataCont [protected] |
Type of myVehicleDataCont.
Definition at line 352 of file MSInductLoop.h.
typedef std::map< SUMOVehicle*, SUMOReal > MSInductLoop::VehicleMap [protected] |
Type of myVehiclesOnDet.
Definition at line 362 of file MSInductLoop.h.
enum MSMoveReminder::Notification [inherited] |
Definition of a vehicle state.
Definition at line 89 of file MSMoveReminder.h.
| MSInductLoop::MSInductLoop | ( | const std::string & | id, |
| MSLane *const | lane, | ||
| SUMOReal | positionInMeters, | ||
| bool | splitByType | ||
| ) | throw () |
Constructor.
Adds reminder to MSLane.
| [in] | id | Unique id |
| [in] | lane | Lane where detector woks on |
| [in] | position | Position of the detector within the lane |
| [in] | splitByType | Whether additional information split by vehicle classes shall be generated |
Definition at line 51 of file MSInductLoop.cpp.
References MSNet::getInstance(), and STEPS2TIME.
| MSInductLoop::~MSInductLoop | ( | ) | throw () |
Destructor.
Definition at line 65 of file MSInductLoop.cpp.
| MSInductLoop::MSInductLoop | ( | const MSInductLoop & | ) | [private] |
Invalidated copy constructor.
| virtual GUIDetectorWrapper* MSDetectorFileOutput::buildDetectorGUIRepresentation | ( | ) | [inline, virtual, inherited] |
Builds the graphical representation.
Meant to be overridden by grahical versions of the detectors
Reimplemented in GUI_E2_ZS_Collector, GUI_E2_ZS_CollectorOverLanes, GUIE3Collector, GUIInductLoop, and GUIInstantInductLoop.
Definition at line 117 of file MSDetectorFileOutput.h.
| std::vector< MSInductLoop::VehicleData > MSInductLoop::collectVehiclesOnDet | ( | SUMOTime | t | ) | const throw () [virtual] |
Returns vehicle data for vehicles that have been on the detector starting at the given time.
| [in] | t | The time from which vehicles shall be counted |
Reimplemented in GUIInductLoop.
Definition at line 301 of file MSInductLoop.cpp.
References MSNet::getCurrentTimeStep(), MSVehicleType::getID(), SUMOVehicle::getID(), MSNet::getInstance(), MSVehicleType::getLengthWithGap(), SUMOVehicle::getSpeed(), SUMOVehicle::getVehicleType(), MSInductLoop::VehicleData::speedM, STEPS2TIME, and SUMOReal.
Referenced by GUIInductLoop::collectVehiclesOnDet(), getCurrentLength(), getCurrentOccupancy(), getCurrentPassedNumber(), getCurrentSpeed(), getCurrentVehicleIDs(), and TraCIServerAPI_InductionLoop::processGet().
| virtual void MSDetectorFileOutput::detectorUpdate | ( | const SUMOTime | step | ) | throw () [inline, virtual, inherited] |
Updates the detector (computes values)
| [in] | step | The current time step |
Reimplemented in MSE2Collector, MSE3Collector, MSMeanData, and MSMeanData_Harmonoise.
Definition at line 109 of file MSDetectorFileOutput.h.
| void MSInductLoop::enterDetectorByMove | ( | SUMOVehicle & | veh, |
| SUMOReal | entryTimestep | ||
| ) | throw () [protected, virtual] |
Introduces a vehicle to the detector's map myVehiclesOnDet.
| veh | The entering vehicle. |
| entryTimestep | Timestep (not necessary integer) of entrance. |
Reimplemented in GUIInductLoop.
Definition at line 271 of file MSInductLoop.cpp.
Referenced by GUIInductLoop::enterDetectorByMove().
| SUMOReal MSInductLoop::getCurrentLength | ( | ) | const throw () |
Returns the length of the vehicle on the detector.
If no vehicle is on the detector, -1 is returned, otherwise this vehicle's length.
Definition at line 138 of file MSInductLoop.cpp.
References collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), lengthSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getCurrentOccupancy | ( | ) | const throw () |
Returns the current occupancy.
If a vehicle is on the detector, 1 is returned. If a vehicle has passed the detector in this timestep, its occupancy value is returned. If no vehicle has passed, 0 is returned.
Definition at line 147 of file MSInductLoop.cpp.
References collectVehiclesOnDet(), DELTA_T, MSNet::getCurrentTimeStep(), MSNet::getInstance(), MAX2(), MIN2(), STEPS2TIME, SUMOReal, and TS.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| unsigned int MSInductLoop::getCurrentPassedNumber | ( | ) | const throw () |
Returns the number of vehicles that have passed the detector.
If a vehicle is on the detector, 1 is returned. If a vehicle has passed the detector in this timestep, 1 is returned. If no vehicle has passed, 0 is returned.
Definition at line 164 of file MSInductLoop.cpp.
References collectVehiclesOnDet(), DELTA_T, and MSNet::getInstance().
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getCurrentSpeed | ( | ) | const throw () |
Returns the speed of the vehicle on the detector.
If no vehicle is on the detector, -1 is returned, otherwise this vehicle's current speed.
Definition at line 129 of file MSInductLoop.cpp.
References collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), speedSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| std::vector< std::string > MSInductLoop::getCurrentVehicleIDs | ( | ) | const throw () |
Returns the ids of vehicles that have passed the detector.
Definition at line 171 of file MSInductLoop.cpp.
References collectVehiclesOnDet(), DELTA_T, and MSNet::getInstance().
Referenced by TraCIServerAPI_InductionLoop::processGet().
| const std::string& Named::getID | ( | ) | const [inline, inherited] |
Returns the id.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 59 of file Named.h.
References Named::myID.
Referenced by RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), NIImporter_SUMO::addPhase(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), RORouteDef_Complete::buildCurrentRoute(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSVTypeProbe::execute(), Command_SaveTLSSwitches::execute(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSUnboundActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), Named::ComparatorIdLess::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedTLDef::SignalGroup::patchTYellow(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), NWWriter_SUMO::prohibitionConnection(), NBNodeCont::remapEdge(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeDummyEdges(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBConnection::replaceFrom(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NIXMLConnectionsHandler::validateLaneInfo(), MSInstantInductLoop::write(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), and MSRouteProbe::writeXMLOutput().
| const MSLane* MSMoveReminder::getLane | ( | ) | const throw () [inline, inherited] |
Returns the lane the reminder works on.
Definition at line 83 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by GUIInstantInductLoop::buildDetectorGUIRepresentation(), GUIInductLoop::buildDetectorGUIRepresentation(), TraCIServerAPI_InductionLoop::processGet(), and MSMeanData::writeEdge().
| SUMOReal MSInductLoop::getPosition | ( | ) | const [inline] |
Returns the position of the detector on the lane.
Definition at line 95 of file MSInductLoop.h.
References myPosition.
Referenced by TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getTimestepsSinceLastDetection | ( | ) | const throw () |
Returns the time since the last vehicle left the detector.
Definition at line 182 of file MSInductLoop.cpp.
References MSNet::getInstance(), myLastLeaveTime, myVehiclesOnDet, and STEPS2TIME.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| void MSInductLoop::leaveDetectorByLaneChange | ( | SUMOVehicle & | veh | ) | throw () [protected, virtual] |
Removes a vehicle from the detector's map myVehiclesOnDet.
| veh | The leaving vehicle. |
Reimplemented in GUIInductLoop.
Definition at line 293 of file MSInductLoop.cpp.
Referenced by GUIInductLoop::leaveDetectorByLaneChange().
| void MSInductLoop::leaveDetectorByMove | ( | SUMOVehicle & | veh, |
| SUMOReal | leaveTimestep | ||
| ) | throw () [protected, virtual] |
Processes a vehicle that leaves the detector.
Removes a vehicle from the detector's map myVehiclesOnDet and adds the vehicle data to the internal myVehicleDataCont.
| veh | The leaving vehicle. |
| leaveTimestep | Timestep (not necessary integer) of leaving. |
Reimplemented in GUIInductLoop.
Definition at line 278 of file MSInductLoop.cpp.
References SUMOReal.
Referenced by GUIInductLoop::leaveDetectorByMove().
| static SUMOReal MSInductLoop::lengthSum | ( | SUMOReal | sumSoFar, |
| const MSInductLoop::VehicleData & | data | ||
| ) | throw () [inline, static, protected] |
Adds up VehicleData::lengthM.
Definition at line 328 of file MSInductLoop.h.
Referenced by getCurrentLength().
| bool MSInductLoop::notifyEnter | ( | SUMOVehicle & | veh, |
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual] |
Returns whether the detector may has to be concerned during the vehicle's further movement.
If the detector is in front of the vehicle, true is returned. If the vehicle's front has passed the detector, false, because the vehicle is no longer relevant for the detector.
| [in] | veh | The entering vehicle. |
| [in] | reason | how the vehicle enters the lane |
Reimplemented from MSMoveReminder.
Definition at line 118 of file MSInductLoop.cpp.
References MSVehicleType::getLengthWithGap(), SUMOVehicle::getPositionOnLane(), SUMOVehicle::getVehicleType(), and myPosition.
| bool MSInductLoop::notifyLeave | ( | SUMOVehicle & | veh, |
| SUMOReal | lastPos, | ||
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual] |
Dismisses the vehicle if it is on the detector due to a lane change.
If the vehicle is on the detector, it will be dismissed by incrementing myDismissedVehicleNumber and removing this vehicle's entering time from myVehiclesOnDet.
| [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 107 of file MSInductLoop.cpp.
References MSMoveReminder::NOTIFICATION_JUNCTION.
| bool MSInductLoop::notifyMove | ( | SUMOVehicle & | veh, |
| SUMOReal | oldPos, | ||
| SUMOReal | newPos, | ||
| SUMOReal | newSpeed | ||
| ) | throw () [virtual] |
Checks whether the vehicle shall be counted and/or shall still touch this MSMoveReminder.
As soon a vehicle enters the detector, its entry time is computed and stored in myVehiclesOnDet via enterDetectorByMove. If it passes the detector, the according leaving time is computed and stored, too, using leaveDetectorByMove.
| [in] | veh | Vehicle that asks this remider. |
| [in] | oldPos | Position before move. |
| [in] | newPos | Position after move with newSpeed. |
| [in] | newSpeed | Moving speed. |
Reimplemented from MSMoveReminder.
Definition at line 78 of file MSInductLoop.cpp.
References MSNet::getInstance(), STEPS2TIME, and SUMOReal.
| virtual void MSMoveReminder::notifyMoveInternal | ( | SUMOVehicle & | veh, |
| SUMOReal | timeOnLane, | ||
| SUMOReal | speed | ||
| ) | throw () [inline, virtual, inherited] |
Internal notification about the vehicle moves.
Indicator if the reminders is still active for the passed vehicle/parameters. If false, the vehicle will erase this reminder from it's reminder-container.
| [in] | veh | Vehicle that asks this reminder. |
| [in] | timeOnLane | time the vehicle spent on the lane. |
| [in] | speed | Moving speed. |
Reimplemented in MSMeanData::MeanDataValueTracker, MSMeanData_Harmonoise::MSLaneMeanDataValues, MSMeanData_HBEFA::MSLaneMeanDataValues, and MSMeanData_Net::MSLaneMeanDataValues.
Definition at line 196 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
| MSInductLoop& MSInductLoop::operator= | ( | const MSInductLoop & | ) | [private] |
Invalidated assignment operator.
| void MSInductLoop::reset | ( | ) | throw () [virtual] |
Resets all generated values to allow computation of next interval.
Reimplemented from MSDetectorFileOutput.
Reimplemented in GUIInductLoop.
Definition at line 70 of file MSInductLoop.cpp.
References myDismissedVehicleNumber, myLastVehicleDataCont, and myVehicleDataCont.
| void Named::setID | ( | const std::string & | newID | ) | [inline, inherited] |
| static SUMOReal MSInductLoop::speedSum | ( | SUMOReal | sumSoFar, |
| const MSInductLoop::VehicleData & | data | ||
| ) | throw () [inline, static, protected] |
Adds up VehicleData::speedM.
Definition at line 323 of file MSInductLoop.h.
Referenced by getCurrentSpeed().
| void MSInductLoop::writeTypedXMLOutput | ( | OutputDevice & | dev, |
| SUMOTime | startTime, | ||
| SUMOTime | stopTime, | ||
| const std::string & | type, | ||
| const VehicleDataCont & | vdc, | ||
| const VehicleMap & | vm | ||
| ) | throw (IOError) [protected] |
Definition at line 231 of file MSInductLoop.cpp.
References StringUtils::escapeXML(), MAX2(), MIN2(), STEPS2TIME, SUMOReal, and time2string().
| void MSInductLoop::writeXMLDetectorProlog | ( | OutputDevice & | dev | ) | const throw (IOError) [virtual] |
Opens the XML-output using "detector" as root element.
| [in] | dev | The output device to write the root into |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Implements MSDetectorFileOutput.
Definition at line 192 of file MSInductLoop.cpp.
| void MSInductLoop::writeXMLOutput | ( | OutputDevice & | dev, |
| SUMOTime | startTime, | ||
| SUMOTime | stopTime | ||
| ) | throw (IOError) [virtual] |
Writes collected values into the given stream.
| [in] | dev | The output device to write the data into |
| [in] | startTime | First time step the data were gathered |
| [in] | stopTime | Last time step the data were gathered |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Implements MSDetectorFileOutput.
Definition at line 198 of file MSInductLoop.cpp.
unsigned MSInductLoop::myDismissedVehicleNumber [protected] |
The number of dismissed vehicles.
Definition at line 348 of file MSInductLoop.h.
Referenced by reset().
std::string Named::myID [protected, inherited] |
The name of the object.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 81 of file Named.h.
Referenced by RORouteDef_OrigDest::buildCurrentRoute(), RORouteDef_Complete::buildCurrentRoute(), RORouteDef_Alternatives::buildCurrentRoute(), NBEdge::computeEdgeShape(), Named::getID(), NBEdge::getLaneID(), MSRoute::release(), Named::setID(), NBEdge::splitGeometry(), NBNode::writeLogic(), and MSMeanData::writeXMLOutput().
MSLane* const MSMoveReminder::myLane [protected, inherited] |
Lane on which the reminder works.
Definition at line 211 of file MSMoveReminder.h.
Referenced by MSMoveReminder::getLane().
SUMOReal MSInductLoop::myLastLeaveTime [protected] |
Leave-time of the last vehicle detected [s].
Definition at line 342 of file MSInductLoop.h.
Referenced by getTimestepsSinceLastDetection().
SUMOReal MSInductLoop::myLastOccupancy [protected] |
Occupancy by the last vehicle detected.
Definition at line 345 of file MSInductLoop.h.
VehicleDataCont MSInductLoop::myLastVehicleDataCont [protected] |
Data of vehicles that have completely passed the detector in the last time interval.
Definition at line 358 of file MSInductLoop.h.
Referenced by reset().
const SUMOReal MSInductLoop::myPosition [protected] |
Detector's position on lane [m].
Definition at line 336 of file MSInductLoop.h.
Referenced by GUIInductLoop::buildDetectorGUIRepresentation(), GUIInductLoop::MyWrapper::getParameterWindow(), getPosition(), and notifyEnter().
bool MSInductLoop::mySplitByType [protected] |
Whether additional information split by vehicle classes shall be generated.
Definition at line 339 of file MSInductLoop.h.
VehicleDataCont MSInductLoop::myVehicleDataCont [protected] |
Data of vehicles that have completely passed the detector.
Definition at line 355 of file MSInductLoop.h.
Referenced by reset().
VehicleMap MSInductLoop::myVehiclesOnDet [protected] |
Data for vehicles that have entered the detector (vehicle -> enter time)
Definition at line 365 of file MSInductLoop.h.
Referenced by getTimestepsSinceLastDetection().