![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <InductionLoop.h>
Static Public Member Functions | |
static void | cleanup () |
static double | getIntervalMeanSpeed (const std::string &detID) |
static double | getIntervalOccupancy (const std::string &detID) |
static std::vector< std::string > | getIntervalVehicleIDs (const std::string &detID) |
static int | getIntervalVehicleNumber (const std::string &detID) |
static std::string | getLaneID (const std::string &detID) |
static double | getLastIntervalMeanSpeed (const std::string &detID) |
static double | getLastIntervalOccupancy (const std::string &detID) |
static std::vector< std::string > | getLastIntervalVehicleIDs (const std::string &detID) |
static int | getLastIntervalVehicleNumber (const std::string &detID) |
static double | getLastStepMeanLength (const std::string &detID) |
static double | getLastStepMeanSpeed (const std::string &detID) |
static double | getLastStepOccupancy (const std::string &detID) |
static std::vector< std::string > | getLastStepVehicleIDs (const std::string &detID) |
static int | getLastStepVehicleNumber (const std::string &detID) |
static double | getPosition (const std::string &detID) |
static double | getTimeSinceDetection (const std::string &detID) |
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 &detID) |
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 &detID, 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 &detID) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
static NamedRTree * | myTree |
Definition at line 44 of file InductionLoop.h.
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 222 of file libsumo/InductionLoop.cpp.
|
staticprivate |
Definition at line 179 of file libsumo/InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.
|
static |
Definition at line 131 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 125 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 143 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 137 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 68 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 155 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 149 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 167 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 161 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 98 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 80 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 92 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 86 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 74 of file libsumo/InductionLoop.cpp.
References DELTA_T.
|
static |
Definition at line 62 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 104 of file libsumo/InductionLoop.cpp.
|
static |
Returns a tree filled with inductive loop instances.
Definition at line 207 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 109 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 241 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_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 235 of file libsumo/InductionLoop.cpp.
|
static |
Definition at line 173 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 228 of file libsumo/InductionLoop.cpp.
References MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), and PositionVector::positionAtOffset().
|
staticprivate |
Definition at line 94 of file InductionLoop.h.
|
staticprivate |
Definition at line 93 of file InductionLoop.h.
|
staticprivate |
Definition at line 95 of file InductionLoop.h.