|
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 | |
| virtual GUIDetectorWrapper * | buildDetectorGUIRepresentation () |
| Returns this detector's visualisation-wrapper. | |
| 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. | |
| GUIInductLoop (const std::string &id, MSLane *const lane, SUMOReal position, bool splitByType) throw () | |
| Constructor. | |
| virtual void | notifyMoveInternal (SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed) throw () |
| Internal notification about the vehicle moves. | |
| void | reset () throw () |
| Resets all generated values to allow computation of next interval. | |
| void | setID (const std::string &newID) |
| resets the id | |
| ~GUIInductLoop () 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) | |
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) throw (IOError) |
Methods that add and remove vehicles from internal container | |
| void | enterDetectorByMove (SUMOVehicle &veh, SUMOReal entryTimestep) throw () |
| Introduces a vehicle to the detector's map myVehiclesOnDet. | |
| void | leaveDetectorByMove (SUMOVehicle &veh, SUMOReal leaveTimestep) throw () |
| Processes a vehicle that leaves the detector. | |
| 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) | |
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 57 of file GUIInductLoop.h.
typedef std::deque< VehicleData > MSInductLoop::VehicleDataCont [protected, inherited] |
Type of myVehicleDataCont.
Definition at line 352 of file MSInductLoop.h.
typedef std::map< SUMOVehicle*, SUMOReal > MSInductLoop::VehicleMap [protected, inherited] |
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.
| GUIInductLoop::GUIInductLoop | ( | const std::string & | id, |
| MSLane *const | lane, | ||
| SUMOReal | position, | ||
| bool | splitByType | ||
| ) | throw () |
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 60 of file GUIInductLoop.cpp.
| GUIInductLoop::~GUIInductLoop | ( | ) | throw () |
Destructor.
Definition at line 65 of file GUIInductLoop.cpp.
| GUIDetectorWrapper * GUIInductLoop::buildDetectorGUIRepresentation | ( | ) | [virtual] |
Returns this detector's visualisation-wrapper.
Reimplemented from MSDetectorFileOutput.
Definition at line 69 of file GUIInductLoop.cpp.
References MSMoveReminder::getLane(), and MSInductLoop::myPosition.
| std::vector< MSInductLoop::VehicleData > GUIInductLoop::collectVehiclesOnDet | ( | SUMOTime | t | ) | const throw () [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 105 of file GUIInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet().
| 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 GUIInductLoop::enterDetectorByMove | ( | SUMOVehicle & | veh, |
| SUMOReal | entryTimestep | ||
| ) | throw () [protected, virtual] |
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 83 of file GUIInductLoop.cpp.
References MSInductLoop::enterDetectorByMove().
| SUMOReal MSInductLoop::getCurrentLength | ( | ) | const throw () [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 138 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), MSInductLoop::lengthSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getCurrentOccupancy | ( | ) | const throw () [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 147 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().
| unsigned int MSInductLoop::getCurrentPassedNumber | ( | ) | const throw () [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 164 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, and MSNet::getInstance().
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getCurrentSpeed | ( | ) | const throw () [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 129 of file MSInductLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSNet::getInstance(), MSInductLoop::speedSum(), and SUMOReal.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| std::vector< std::string > MSInductLoop::getCurrentVehicleIDs | ( | ) | const throw () [inherited] |
Returns the ids of vehicles that have passed the detector.
Definition at line 171 of file MSInductLoop.cpp.
References MSInductLoop::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(), buildDetectorGUIRepresentation(), TraCIServerAPI_InductionLoop::processGet(), and MSMeanData::writeEdge().
| SUMOReal MSInductLoop::getPosition | ( | ) | const [inline, inherited] |
Returns the position of the detector on the lane.
Definition at line 95 of file MSInductLoop.h.
References MSInductLoop::myPosition.
Referenced by TraCIServerAPI_InductionLoop::processGet().
| SUMOReal MSInductLoop::getTimestepsSinceLastDetection | ( | ) | const throw () [inherited] |
Returns the time since the last vehicle left the detector.
Definition at line 182 of file MSInductLoop.cpp.
References MSNet::getInstance(), MSInductLoop::myLastLeaveTime, MSInductLoop::myVehiclesOnDet, and STEPS2TIME.
Referenced by GUIInductLoop::MyWrapper::getParameterWindow(), and TraCIServerAPI_InductionLoop::processGet().
| void GUIInductLoop::leaveDetectorByLaneChange | ( | SUMOVehicle & | veh | ) | throw () [protected, virtual] |
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 97 of file GUIInductLoop.cpp.
References MSInductLoop::leaveDetectorByLaneChange().
| void GUIInductLoop::leaveDetectorByMove | ( | SUMOVehicle & | veh, |
| SUMOReal | leaveTimestep | ||
| ) | throw () [protected, virtual] |
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 90 of file GUIInductLoop.cpp.
References MSInductLoop::leaveDetectorByMove().
| static SUMOReal MSInductLoop::lengthSum | ( | SUMOReal | sumSoFar, |
| const MSInductLoop::VehicleData & | data | ||
| ) | throw () [inline, static, protected, inherited] |
Adds up VehicleData::lengthM.
Definition at line 328 of file MSInductLoop.h.
Referenced by MSInductLoop::getCurrentLength().
| bool MSInductLoop::notifyEnter | ( | SUMOVehicle & | veh, |
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual, inherited] |
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 MSInductLoop::myPosition.
| bool MSInductLoop::notifyLeave | ( | SUMOVehicle & | veh, |
| SUMOReal | lastPos, | ||
| MSMoveReminder::Notification | reason | ||
| ) | throw () [virtual, inherited] |
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, inherited] |
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.
| void GUIInductLoop::reset | ( | ) | throw () [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 75 of file GUIInductLoop.cpp.
References MFXMutex::lock(), myLock, and MFXMutex::unlock().
| void Named::setID | ( | const std::string & | newID | ) | [inline, inherited] |
| static SUMOReal MSInductLoop::speedSum | ( | SUMOReal | sumSoFar, |
| const MSInductLoop::VehicleData & | data | ||
| ) | throw () [inline, static, protected, inherited] |
Adds up VehicleData::speedM.
Definition at line 323 of file MSInductLoop.h.
Referenced by MSInductLoop::getCurrentSpeed().
| void MSInductLoop::writeTypedXMLOutput | ( | OutputDevice & | dev, |
| SUMOTime | startTime, | ||
| SUMOTime | stopTime, | ||
| const std::string & | type, | ||
| const VehicleDataCont & | vdc, | ||
| const VehicleMap & | vm | ||
| ) | throw (IOError) [protected, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
The number of dismissed vehicles.
Definition at line 348 of file MSInductLoop.h.
Referenced by MSInductLoop::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, inherited] |
Leave-time of the last vehicle detected [s].
Definition at line 342 of file MSInductLoop.h.
Referenced by MSInductLoop::getTimestepsSinceLastDetection().
SUMOReal MSInductLoop::myLastOccupancy [protected, inherited] |
Occupancy by the last vehicle detected.
Definition at line 345 of file MSInductLoop.h.
VehicleDataCont MSInductLoop::myLastVehicleDataCont [protected, inherited] |
Data of vehicles that have completely passed the detector in the last time interval.
Definition at line 358 of file MSInductLoop.h.
Referenced by MSInductLoop::reset().
MFXMutex GUIInductLoop::myLock [mutable] |
Mutex preventing parallel read/write access to internal MSInductLoop state.
Definition at line 213 of file GUIInductLoop.h.
Referenced by reset().
const SUMOReal MSInductLoop::myPosition [protected, inherited] |
Detector's position on lane [m].
Definition at line 336 of file MSInductLoop.h.
Referenced by buildDetectorGUIRepresentation(), GUIInductLoop::MyWrapper::getParameterWindow(), MSInductLoop::getPosition(), and MSInductLoop::notifyEnter().
bool MSInductLoop::mySplitByType [protected, inherited] |
Whether additional information split by vehicle classes shall be generated.
Definition at line 339 of file MSInductLoop.h.
VehicleDataCont MSInductLoop::myVehicleDataCont [protected, inherited] |
Data of vehicles that have completely passed the detector.
Definition at line 355 of file MSInductLoop.h.
Referenced by MSInductLoop::reset().
VehicleMap MSInductLoop::myVehiclesOnDet [protected, inherited] |
Data for vehicles that have entered the detector (vehicle -> enter time)
Definition at line 365 of file MSInductLoop.h.
Referenced by MSInductLoop::getTimestepsSinceLastDetection().