![]() |
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.
|
staticprivate |
Definition at line 223 of file libsumo/InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.
|
static |
Definition at line 139 of file libsumo/InductionLoop.cpp.
References MEInductLoop::getEdge(), MSEdge::getLength(), MEInductLoop::getMeanData(), MSEdge::getSpeedLimit(), MSMeanData::MeanDataValues::getTravelledDistance(), and MSGlobals::gUseMesoSim.
|
static |
Definition at line 127 of file libsumo/InductionLoop.cpp.
References MEInductLoop::getEdge(), MEInductLoop::getMeanData(), MSEdge::getNumLanes(), MSMeanData_Net::MSLaneMeanDataValues::getOccupancy(), MSGlobals::gUseMesoSim, and SIMSTEP.
|
static |
Definition at line 167 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim, and WRITE_ERROR.
|
static |
Definition at line 156 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim.
|
static |
Definition at line 70 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 187 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.
|
static |
Definition at line 177 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.
|
static |
Definition at line 207 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim, and WRITE_ERROR.
|
static |
Definition at line 197 of file libsumo/InductionLoop.cpp.
References MSGlobals::gUseMesoSim, libsumo::INVALID_INT_VALUE, and WRITE_ERROR.
|
static |
Definition at line 100 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 82 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 94 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 88 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 76 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
staticprivate |
Definition at line 233 of file libsumo/InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.
|
static |
Definition at line 64 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 106 of file libsumo/InductionLoop.cpp.
|
static |
Returns a tree filled with inductive loop instances.
Definition at line 262 of file libsumo/InductionLoop.cpp.
References MSNet::getDetectorControl(), MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), MSDetectorControl::getTypedDetectors(), PositionVector::positionAtOffset(), SUMO_TAG_INDUCTION_LOOP, Position::x(), and Position::y().
|
static |
Definition at line 111 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 296 of file libsumo/InductionLoop.cpp.
References 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.
|
static |
Definition at line 290 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 217 of file libsumo/InductionLoop.cpp.
|
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 MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), and PositionVector::positionAtOffset().
|
staticprivate |
Definition at line 96 of file InductionLoop.h.
|
staticprivate |
Definition at line 95 of file InductionLoop.h.
|
staticprivate |
Definition at line 97 of file InductionLoop.h.