![]() |
SUMO - Simulation of Urban MObility
|
#include <InductionLoop.h>
Static Public Member Functions | |
static int | getIDCount () |
static std::vector< std::string > | getIDList () |
static std::string | getLaneID (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) |
static LIBSUMO_SUBSCRIPTION_API NamedRTree * | getTree () |
Returns a tree filled with inductive loop instances. More... | |
static std::vector< libsumo::TraCIVehicleData > | getVehicleData (const std::string &detID) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Private Member Functions | |
InductionLoop ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static MSInductLoop * | getDetector (const std::string &detID) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
Definition at line 50 of file InductionLoop.h.
|
privatedelete |
invalidated standard constructor
|
staticprivate |
Definition at line 127 of file InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and SUMO_TAG_INDUCTION_LOOP.
Referenced by getLaneID(), getLastStepMeanLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getPosition(), getTimeSinceDetection(), getVehicleData(), and storeShape().
|
static |
Definition at line 55 of file InductionLoop.cpp.
References MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), NamedObjectCont< T >::size(), and SUMO_TAG_INDUCTION_LOOP.
Referenced by handleVariable().
|
static |
Definition at line 47 of file InductionLoop.cpp.
References MSNet::getDetectorControl(), MSNet::getInstance(), MSDetectorControl::getTypedDetectors(), NamedObjectCont< T >::insertIDs(), and SUMO_TAG_INDUCTION_LOOP.
Referenced by handleVariable().
|
static |
Definition at line 68 of file InductionLoop.cpp.
References getDetector(), Named::getID(), and MSMoveReminder::getLane().
Referenced by handleVariable().
|
static |
Definition at line 98 of file InductionLoop.cpp.
References MSInductLoop::getCurrentLength(), and getDetector().
Referenced by handleVariable().
|
static |
Definition at line 80 of file InductionLoop.cpp.
References MSInductLoop::getCurrentSpeed(), and getDetector().
Referenced by handleVariable().
|
static |
Definition at line 92 of file InductionLoop.cpp.
References MSInductLoop::getCurrentOccupancy(), and getDetector().
Referenced by handleVariable().
|
static |
Definition at line 86 of file InductionLoop.cpp.
References MSInductLoop::getCurrentVehicleIDs(), and getDetector().
Referenced by handleVariable().
|
static |
Definition at line 74 of file InductionLoop.cpp.
References MSInductLoop::getCurrentPassedNumber(), and getDetector().
Referenced by handleVariable().
|
static |
Definition at line 62 of file InductionLoop.cpp.
References getDetector(), and MSInductLoop::getPosition().
Referenced by handleVariable().
|
static |
Definition at line 104 of file InductionLoop.cpp.
References getDetector(), and MSInductLoop::getTimeSinceLastDetection().
Referenced by handleVariable().
|
static |
Returns a tree filled with inductive loop instances.
Definition at line 140 of file InductionLoop.cpp.
References MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), NamedRTree::Insert(), PositionVector::positionAtOffset(), SUMO_TAG_INDUCTION_LOOP, Position::x(), and Position::y().
|
static |
Definition at line 110 of file InductionLoop.cpp.
References MSInductLoop::collectVehiclesOnDet(), DELTA_T, getDetector(), and MSNet::getInstance().
Referenced by TraCIServerAPI_InductionLoop::processGet().
|
static |
Definition at line 167 of file InductionLoop.cpp.
References getIDCount(), getIDList(), getLaneID(), getLastStepMeanLength(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getPosition(), getTimeSinceDetection(), ID_COUNT, LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_TIME_SINCE_DETECTION, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, TRACI_ID_LIST, VAR_LANE_ID, VAR_POSITION, libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_InductionLoop::processGet().
|
static |
Definition at line 161 of file InductionLoop.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
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 154 of file InductionLoop.cpp.
References getDetector(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), and PositionVector::positionAtOffset().
|
staticprivate |
Definition at line 86 of file InductionLoop.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 85 of file InductionLoop.h.
Referenced by makeWrapper().