![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <InductionLoop.h>
Static Public Member Functions | |
| static void | cleanup () |
| static double | getIntervalMeanSpeed (const std::string &loopID) |
| static double | getIntervalOccupancy (const std::string &loopID) |
| static std::vector< std::string > | getIntervalVehicleIDs (const std::string &loopID) |
| static int | getIntervalVehicleNumber (const std::string &loopID) |
| static std::string | getLaneID (const std::string &loopID) |
| static double | getLastIntervalMeanSpeed (const std::string &loopID) |
| static double | getLastIntervalOccupancy (const std::string &loopID) |
| static std::vector< std::string > | getLastIntervalVehicleIDs (const std::string &loopID) |
| static int | getLastIntervalVehicleNumber (const std::string &loopID) |
| static double | getLastStepMeanLength (const std::string &loopID) |
| static double | getLastStepMeanSpeed (const std::string &loopID) |
| static double | getLastStepOccupancy (const std::string &loopID) |
| static std::vector< std::string > | getLastStepVehicleIDs (const std::string &loopID) |
| static int | getLastStepVehicleNumber (const std::string &loopID) |
| static double | getPosition (const std::string &loopID) |
| static double | getTimeSinceDetection (const std::string &loopID) |
| LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API NamedRTree * | getTree () |
| Returns a tree filled with inductive loop instances. | |
| static std::vector< libsumo::TraCIVehicleData > | getVehicleData (const std::string &loopID) |
| static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData) |
| static std::shared_ptr< VariableWrapper > | makeWrapper () |
| static void | overrideTimeSinceDetection (const std::string &loopID, double time) |
| static void | storeShape (const std::string &id, PositionVector &shape) |
| Saves the shape of the requested object in the given container. | |
Private Member Functions | |
| InductionLoop ()=delete | |
| invalidated standard constructor | |
Static Private Member Functions | |
| static MSInductLoop * | getDetector (const std::string &loopID) |
| static MEInductLoop * | getMEDetector (const std::string &loopID) |
Static Private Attributes | |
| static ContextSubscriptionResults | myContextSubscriptionResults |
| static SubscriptionResults | mySubscriptionResults |
| static NamedRTree * | myTree |
Definition at line 45 of file InductionLoop.h.
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 277 of file libsumo/InductionLoop.cpp.
References cleanup(), and myTree.
Referenced by cleanup().
|
staticprivate |
Definition at line 223 of file libsumo/InductionLoop.cpp.
References NamedObjectCont< T >::get(), getDetector(), MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.
Referenced by getDetector(), getIntervalMeanSpeed(), getIntervalOccupancy(), getIntervalVehicleIDs(), getIntervalVehicleNumber(), getLaneID(), getLastIntervalMeanSpeed(), getLastIntervalOccupancy(), getLastIntervalVehicleIDs(), getLastIntervalVehicleNumber(), getLastStepMeanLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getPosition(), getTimeSinceDetection(), getVehicleData(), overrideTimeSinceDetection(), and storeShape().
|
static |
Definition at line 139 of file libsumo/InductionLoop.cpp.
References getDetector(), MEInductLoop::getEdge(), getIntervalMeanSpeed(), MSEdge::getLength(), MEInductLoop::getMeanData(), getMEDetector(), MSEdge::getSpeedLimit(), and MSGlobals::gUseMesoSim.
Referenced by getIntervalMeanSpeed(), and handleVariable().
|
static |
Definition at line 127 of file libsumo/InductionLoop.cpp.
References getDetector(), MEInductLoop::getEdge(), getIntervalOccupancy(), MEInductLoop::getMeanData(), getMEDetector(), MSEdge::getNumLanes(), MSMeanData_Net::MSLaneMeanDataValues::getOccupancy(), MSGlobals::gUseMesoSim, and SIMSTEP.
Referenced by getIntervalOccupancy(), and handleVariable().
|
static |
Definition at line 167 of file libsumo/InductionLoop.cpp.
References getDetector(), getIntervalVehicleIDs(), MSGlobals::gUseMesoSim, and WRITE_ERROR.
Referenced by getIntervalVehicleIDs(), and handleVariable().
|
static |
Definition at line 156 of file libsumo/InductionLoop.cpp.
References getDetector(), getIntervalVehicleNumber(), getMEDetector(), and MSGlobals::gUseMesoSim.
Referenced by getIntervalVehicleNumber(), and handleVariable().
|
static |
Definition at line 70 of file libsumo/InductionLoop.cpp.
References getDetector(), and getLaneID().
Referenced by getLaneID(), and handleVariable().
|
static |
Definition at line 187 of file libsumo/InductionLoop.cpp.
References getDetector(), getLastIntervalMeanSpeed(), MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.
Referenced by getLastIntervalMeanSpeed(), and handleVariable().
|
static |
Definition at line 177 of file libsumo/InductionLoop.cpp.
References getDetector(), getLastIntervalOccupancy(), MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.
Referenced by getLastIntervalOccupancy(), and handleVariable().
|
static |
Definition at line 207 of file libsumo/InductionLoop.cpp.
References getDetector(), getLastIntervalVehicleIDs(), MSGlobals::gUseMesoSim, and WRITE_ERROR.
Referenced by getLastIntervalVehicleIDs(), and handleVariable().
|
static |
Definition at line 197 of file libsumo/InductionLoop.cpp.
References getDetector(), getLastIntervalVehicleNumber(), MSGlobals::gUseMesoSim, libsumo::INVALID_INT_VALUE, and WRITE_ERROR.
Referenced by getLastIntervalVehicleNumber(), and handleVariable().
|
static |
Definition at line 100 of file libsumo/InductionLoop.cpp.
References DELTA_T, getDetector(), and getLastStepMeanLength().
Referenced by getLastStepMeanLength(), and handleVariable().
|
static |
Definition at line 82 of file libsumo/InductionLoop.cpp.
References DELTA_T, getDetector(), and getLastStepMeanSpeed().
Referenced by getLastStepMeanSpeed(), and handleVariable().
|
static |
Definition at line 94 of file libsumo/InductionLoop.cpp.
References getDetector(), and getLastStepOccupancy().
Referenced by getLastStepOccupancy(), and handleVariable().
|
static |
Definition at line 88 of file libsumo/InductionLoop.cpp.
References DELTA_T, getDetector(), and getLastStepVehicleIDs().
Referenced by getLastStepVehicleIDs(), and handleVariable().
|
static |
Definition at line 76 of file libsumo/InductionLoop.cpp.
References DELTA_T, getDetector(), and getLastStepVehicleNumber().
Referenced by getLastStepVehicleNumber(), and handleVariable().
|
staticprivate |
Definition at line 233 of file libsumo/InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), getMEDetector(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.
Referenced by getIntervalMeanSpeed(), getIntervalOccupancy(), getIntervalVehicleNumber(), and getMEDetector().
|
static |
Definition at line 64 of file libsumo/InductionLoop.cpp.
References getDetector(), and getPosition().
Referenced by getPosition(), and handleVariable().
|
static |
Definition at line 106 of file libsumo/InductionLoop.cpp.
References getDetector(), and getTimeSinceDetection().
Referenced by getTimeSinceDetection(), and handleVariable().
|
static |
Returns a tree filled with inductive loop instances.
Definition at line 262 of file libsumo/InductionLoop.cpp.
References MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), getTree(), myTree, PositionVector::positionAtOffset(), SUMO_TAG_INDUCTION_LOOP, Position::x(), and Position::y().
Referenced by getTree().
|
static |
Definition at line 111 of file libsumo/InductionLoop.cpp.
References DELTA_T, getDetector(), getVehicleData(), and SIMSTEP.
Referenced by getVehicleData(), and handleVariable().
|
static |
Definition at line 296 of file libsumo/InductionLoop.cpp.
References getIntervalMeanSpeed(), getIntervalOccupancy(), getIntervalVehicleIDs(), getIntervalVehicleNumber(), getLaneID(), getLastIntervalMeanSpeed(), getLastIntervalOccupancy(), getLastIntervalVehicleIDs(), getLastIntervalVehicleNumber(), getLastStepMeanLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getPosition(), getTimeSinceDetection(), getVehicleData(), handleVariable(), libsumo::ID_COUNT, libsumo::LAST_STEP_LENGTH, libsumo::LAST_STEP_MEAN_SPEED, libsumo::LAST_STEP_OCCUPANCY, libsumo::LAST_STEP_TIME_SINCE_DETECTION, libsumo::LAST_STEP_VEHICLE_DATA, libsumo::LAST_STEP_VEHICLE_ID_LIST, libsumo::LAST_STEP_VEHICLE_NUMBER, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_INTERVAL_IDS, libsumo::VAR_INTERVAL_NUMBER, libsumo::VAR_INTERVAL_OCCUPANCY, libsumo::VAR_INTERVAL_SPEED, libsumo::VAR_LANE_ID, libsumo::VAR_LAST_INTERVAL_IDS, libsumo::VAR_LAST_INTERVAL_NUMBER, libsumo::VAR_LAST_INTERVAL_OCCUPANCY, libsumo::VAR_LAST_INTERVAL_SPEED, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, and libsumo::VAR_POSITION.
Referenced by handleVariable(), and makeWrapper().
|
static |
Definition at line 290 of file libsumo/InductionLoop.cpp.
References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.
Referenced by makeWrapper().
|
static |
Definition at line 217 of file libsumo/InductionLoop.cpp.
References getDetector(), and overrideTimeSinceDetection().
Referenced by overrideTimeSinceDetection().
|
static |
Saves the shape of the requested object in the given container.
| id | The id of the loop to retrieve |
| shape | The container to fill |
Definition at line 283 of file libsumo/InductionLoop.cpp.
References getDetector(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), PositionVector::positionAtOffset(), and storeShape().
Referenced by storeShape().
|
staticprivate |
Definition at line 96 of file InductionLoop.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 95 of file InductionLoop.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 97 of file InductionLoop.h.