SUMO - Simulation of Urban MObility
|
The gui-version of the MSInductLoop. More...
#include <GUIInductLoop.h>
Data Structures | |
class | MyWrapper |
A MSInductLoop-visualiser. 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. | |
virtual GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
Returns this detector's visualisation-wrapper. | |
std::vector< VehicleData > | collectVehiclesOnDet (SUMOTime t) const |
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 |
Returns the lane the reminder works on. | |
SUMOReal | getPosition () const |
Returns the position of the detector on the lane. | |
GUIInductLoop (const std::string &id, MSLane *const lane, SUMOReal position, bool splitByType) | |
Constructor. | |
virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) |
Internal notification about the vehicle moves. | |
void | reset () |
Resets all generated values to allow computation of next interval. | |
void | setID (const std::string &newID) |
resets the id | |
~GUIInductLoop () | |
Destructor. | |
Methods inherited from MSMoveReminder | |
bool | notifyMove (SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) |
Checks whether the vehicle shall be counted and/or shall still touch this MSMoveReminder. | |
bool | notifyLeave (SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason) |
Dismisses the vehicle if it is on the detector due to a lane change. | |
bool | notifyEnter (SUMOVehicle &veh, MSMoveReminder::Notification reason) |
Returns whether the detector may has to be concerned during the vehicle's further movement. | |
Methods returning current values | |
SUMOReal | getCurrentSpeed () const |
Returns the speed of the vehicle on the detector. | |
SUMOReal | getCurrentLength () const |
Returns the length of the vehicle on the detector. | |
SUMOReal | getCurrentOccupancy () const |
Returns the current occupancy. | |
unsigned int | getCurrentPassedNumber () const |
Returns the number of vehicles that have passed the detector. | |
std::vector< std::string > | getCurrentVehicleIDs () const |
Returns the ids of vehicles that have passed the detector. | |
SUMOReal | getTimestepsSinceLastDetection () const |
Returns the time since the last vehicle left the detector. | |
Methods inherited from MSDetectorFileOutput. | |
void | writeXMLOutput (OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime) |
Writes collected values into the given stream. | |
void | writeXMLDetectorProlog (OutputDevice &dev) const |
Opens the XML-output using "detector" as root element. | |
Virtual methods to implement by derived classes | |
virtual void | detectorUpdate (const SUMOTime step) |
Updates the detector (computes values) |
Data Fields | |
MFXMutex | myLock |
Mutex preventing parallel read/write access to internal MSInductLoop state. |
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) |
Methods that add and remove vehicles from internal container | |
void | enterDetectorByMove (SUMOVehicle &veh, SUMOReal entryTimestep) |
Introduces a vehicle to the detector's map myVehiclesOnDet. | |
void | leaveDetectorByMove (SUMOVehicle &veh, SUMOReal leaveTimestep) |
Processes a vehicle that leaves the detector. | |
void | leaveDetectorByLaneChange (SUMOVehicle &veh) |
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) |
Adds up VehicleData::speedM. | |
static SUMOReal | lengthSum (SUMOReal sumSoFar, const MSInductLoop::VehicleData &data) |
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) |
The gui-version of the MSInductLoop.
Allows the building of a wrapper (also declared herein) which draws the detector on the gl-canvas. Uses a mutex to avoid parallel read/write operations. The mutex is only set within methods that change MSInductLoop-internal state and within "collectVehiclesOnDet". All other reading operations should be performed via the simulation loop only.
Definition at line 61 of file GUIInductLoop.h.
|
protectedinherited |
Type of myVehicleDataCont.
Definition at line 356 of file MSInductLoop.h.
|
protectedinherited |
Type of myVehiclesOnDet.
Definition at line 366 of file MSInductLoop.h.
|
inherited |
Definition of a vehicle state.
Definition at line 93 of file MSMoveReminder.h.
GUIInductLoop::GUIInductLoop | ( | const std::string & | id, |
MSLane *const | lane, | ||
SUMOReal | position, | ||
bool | splitByType | ||
) |
Constructor.
[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 58 of file GUIInductLoop.cpp.
GUIInductLoop::~GUIInductLoop | ( | ) |
Destructor.
Definition at line 63 of file GUIInductLoop.cpp.
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 114 of file Named.h.
References Named::StoringVisitor::add().
|
virtual |
Returns this detector's visualisation-wrapper.
Reimplemented from MSDetectorFileOutput.
Definition at line 67 of file GUIInductLoop.cpp.
References MSMoveReminder::getLane(), and MSInductLoop::myPosition.
|
virtual |
Returns vehicle data for vehicles that have been on the detector starting at the given time.
This method uses a mutex to prevent parallel read/write access to the vehicle buffer
[in] | t | The time from which vehicles shall be counted |
Reimplemented from MSInductLoop.
Definition at line 99 of file GUIInductLoop.cpp.
References myLock.
|
inlinevirtualinherited |
Updates the detector (computes values)
[in] | step | The current time step |
Reimplemented in MSMeanData, MSE3Collector, MSMeanData_Harmonoise, and MSE2Collector.
Definition at line 113 of file MSDetectorFileOutput.h.
References UNUSED_PARAMETER.
|
protectedvirtual |
Introduces a vehicle to the detector's map myVehiclesOnDet.
Locks the internal mutex before calling MSInductLoop::enterDetectorByMove()
veh | The entering vehicle. |
entryTimestep | Timestep (not necessary integer) of entrance. |
Reimplemented from MSInductLoop.
Definition at line 80 of file GUIInductLoop.cpp.
References myLock.
|
inherited |
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 139 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), MSInductLoop::lengthSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
|
inherited |
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 148 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSNet::getCurrentTimeStep(), MSNet::getInstance(), MAX2(), MIN2(), STEPS2TIME, SUMOReal, and TS.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
|
inherited |
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 165 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, and MSNet::getInstance().
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
|
inherited |
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 130 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), MSInductLoop::speedSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
|
inherited |
Returns the ids of vehicles that have passed the detector.
Definition at line 172 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, and MSNet::getInstance().
Referenced by TraCIServerAPI_InductionLoop::processGet().
|
inlineinherited |
Returns the id.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBEdge::connections_sorter(), NLDetectorBuilder::convUncontE2PosLength(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), NBRampsComputer::moveRampRight(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), MSVehicle::MSVehicle(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Person::notifyLeave(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_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(), NBLoadedTLDef::SignalGroup::patchTYellow(), AGStreet::print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), NIXMLConnectionsHandler::validateLaneInfo(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSEmissionExport::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(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSInductLoop::writeTypedXMLOutput(), MSFullExport::writeVehicles(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlineinherited |
Returns the lane the reminder works on.
Definition at line 87 of file MSMoveReminder.h.
References MSMoveReminder::myLane.
Referenced by GUIInstantInductLoop::buildDetectorGUIRepresentation(), buildDetectorGUIRepresentation(), MSE2Collector::detectorUpdate(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), TraCIServerAPI_InductionLoop::processGet(), and MSMeanData::writeEdge().
|
inlineinherited |
Returns the position of the detector on the lane.
Definition at line 99 of file MSInductLoop.h.
References MSInductLoop::myPosition.
Referenced by TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), and TraCIServerAPI_InductionLoop::processGet().
|
inherited |
Returns the time since the last vehicle left the detector.
Definition at line 183 of file MSInductLoop.cpp.
References MSNet::getInstance(), MSInductLoop::myLastLeaveTime, MSInductLoop::myVehiclesOnDet, and STEPS2TIME.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
|
protectedvirtual |
Removes a vehicle from the detector's map myVehiclesOnDet.
Locks the internal mutex before calling MSInductLoop::leaveDetectorByLaneChange()
veh | The leaving vehicle. |
Reimplemented from MSInductLoop.
Definition at line 92 of file GUIInductLoop.cpp.
References myLock.
|
protectedvirtual |
Processes a vehicle that leaves the detector.
Locks the internal mutex before calling MSInductLoop::leaveDetectorByMove()
veh | The leaving vehicle. |
leaveTimestep | Timestep (not necessary integer) of leaving. |
Reimplemented from MSInductLoop.
Definition at line 86 of file GUIInductLoop.cpp.
References myLock.
|
inlinestaticprotectedinherited |
Adds up VehicleData::lengthM.
Definition at line 332 of file MSInductLoop.h.
References MSInductLoop::VehicleData::lengthM.
Referenced by MSInductLoop::getCurrentLength(), and MSInductLoop::writeTypedXMLOutput().
|
virtualinherited |
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 124 of file MSInductLoop.cpp.
|
virtualinherited |
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 113 of file MSInductLoop.cpp.
References MSInductLoop::leaveDetectorByLaneChange(), and MSMoveReminder::NOTIFICATION_JUNCTION.
|
virtualinherited |
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 84 of file MSInductLoop.cpp.
References MSInductLoop::enterDetectorByMove(), MSNet::getInstance(), MSVehicleType::getLength(), SUMOVehicle::getVehicleType(), MSInductLoop::leaveDetectorByMove(), MSInductLoop::myPosition, STEPS2TIME, and SUMOReal.
|
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] | timeOnLane | time the vehicle spent on the lane. |
[in] | speed | Moving speed. |
Reimplemented in MSMeanData::MeanDataValueTracker, MSMeanData_Net::MSLaneMeanDataValues, MSMeanData_Harmonoise::MSLaneMeanDataValues, and MSMeanData_HBEFA::MSLaneMeanDataValues.
Definition at line 200 of file MSMoveReminder.h.
References UNUSED_PARAMETER.
|
virtual |
Resets all generated values to allow computation of next interval.
Locks the internal mutex before calling MSInductLoop::reset()
Reimplemented from MSInductLoop.
Definition at line 73 of file GUIInductLoop.cpp.
References myLock.
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 68 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
|
inlinestaticprotectedinherited |
Adds up VehicleData::speedM.
Definition at line 327 of file MSInductLoop.h.
References MSInductLoop::VehicleData::speedM.
Referenced by MSInductLoop::getCurrentSpeed(), and MSInductLoop::writeTypedXMLOutput().
|
protectedinherited |
Definition at line 232 of file MSInductLoop.cpp.
References StringUtils::escapeXML(), Named::getID(), MSInductLoop::lengthSum(), MAX2(), MIN2(), MSInductLoop::myDismissedVehicleNumber, MSInductLoop::speedSum(), STEPS2TIME, SUMOReal, and time2string().
Referenced by MSInductLoop::writeXMLOutput().
|
virtualinherited |
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 193 of file MSInductLoop.cpp.
References OutputDevice::writeXMLHeader().
|
virtualinherited |
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 199 of file MSInductLoop.cpp.
References MSInductLoop::mySplitByType, MSInductLoop::myVehicleDataCont, MSInductLoop::myVehiclesOnDet, MSInductLoop::reset(), and MSInductLoop::writeTypedXMLOutput().
|
protectedinherited |
The number of dismissed vehicles.
Definition at line 352 of file MSInductLoop.h.
Referenced by MSInductLoop::leaveDetectorByLaneChange(), MSInductLoop::reset(), and MSInductLoop::writeTypedXMLOutput().
|
protectedinherited |
The name of the object.
Definition at line 121 of file Named.h.
Referenced by NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), MSCalibrator::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
protectedinherited |
Lane on which the reminder works.
Definition at line 215 of file MSMoveReminder.h.
Referenced by MSE2Collector::detectorUpdate(), MSMoveReminder::getLane(), MSE2Collector::MSE2Collector(), and MSMoveReminder::MSMoveReminder().
|
protectedinherited |
Leave-time of the last vehicle detected [s].
Definition at line 346 of file MSInductLoop.h.
Referenced by MSInductLoop::getTimestepsSinceLastDetection(), and MSInductLoop::leaveDetectorByMove().
|
protectedinherited |
Occupancy by the last vehicle detected.
Definition at line 349 of file MSInductLoop.h.
Referenced by MSInductLoop::leaveDetectorByMove().
|
protectedinherited |
Data of vehicles that have completely passed the detector in the last time interval.
Definition at line 362 of file MSInductLoop.h.
Referenced by MSInductLoop::collectVehiclesOnDet(), and MSInductLoop::reset().
|
mutable |
Mutex preventing parallel read/write access to internal MSInductLoop state.
Definition at line 217 of file GUIInductLoop.h.
Referenced by collectVehiclesOnDet(), enterDetectorByMove(), leaveDetectorByLaneChange(), leaveDetectorByMove(), and reset().
|
protectedinherited |
Detector's position on lane [m].
Definition at line 340 of file MSInductLoop.h.
Referenced by buildDetectorGUIRepresentation(), GUIInductLoop::MyWrapper::getParameterWindow(), MSInductLoop::getPosition(), MSInductLoop::MSInductLoop(), and MSInductLoop::notifyMove().
|
protectedinherited |
Whether additional information split by vehicle classes shall be generated.
Definition at line 343 of file MSInductLoop.h.
Referenced by MSInductLoop::writeXMLOutput().
|
protectedinherited |
Data of vehicles that have completely passed the detector.
Definition at line 359 of file MSInductLoop.h.
Referenced by MSInductLoop::collectVehiclesOnDet(), MSInductLoop::leaveDetectorByMove(), MSInductLoop::reset(), and MSInductLoop::writeXMLOutput().
|
protectedinherited |
Data for vehicles that have entered the detector (vehicle -> enter time)
Definition at line 369 of file MSInductLoop.h.
Referenced by MSInductLoop::collectVehiclesOnDet(), MSInductLoop::enterDetectorByMove(), MSInductLoop::getTimestepsSinceLastDetection(), MSInductLoop::leaveDetectorByLaneChange(), MSInductLoop::leaveDetectorByMove(), and MSInductLoop::writeXMLOutput().