![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting induction loop values via TraCI. More...
#include <TraCIServerAPI_InductionLoop.h>
Static Public Member Functions | |
static bool | getPosition (const std::string &id, Position &p) |
Returns the named inductive loop's position. More... | |
static NamedRTree * | getTree () |
Returns a tree filled with inductive loop instances. More... | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa0: Get Induction Loop Variable) More... | |
Private Member Functions | |
TraCIServerAPI_InductionLoop & | operator= (const TraCIServerAPI_InductionLoop &s) |
invalidated assignment operator More... | |
TraCIServerAPI_InductionLoop (const TraCIServerAPI_InductionLoop &s) | |
invalidated copy constructor More... | |
APIs for getting/setting induction loop values via TraCI.
Definition at line 48 of file TraCIServerAPI_InductionLoop.h.
|
private |
invalidated copy constructor
|
static |
Returns the named inductive loop's position.
[in] | id | The id of the searched inductive loop |
[out] | p | The position, if the inductive loop is known |
Definition at line 164 of file TraCIServerAPI_InductionLoop.cpp.
References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), MSDetectorControl::getTypedDetectors(), PositionVector::positionAtOffset(), and SUMO_TAG_INDUCTION_LOOP.
Referenced by TraCIServer::findObjectShape().
|
static |
Returns a tree filled with inductive loop instances.
Definition at line 175 of file TraCIServerAPI_InductionLoop.cpp.
References MSNet::getDetectorControl(), MSNet::getInstance(), MSMoveReminder::getLane(), NamedObjectCont< T >::getMyMap(), MSInductLoop::getPosition(), MSLane::getShape(), MSDetectorControl::getTypedDetectors(), NamedRTree::Insert(), PositionVector::positionAtOffset(), SUMO_TAG_INDUCTION_LOOP, Position::x(), and Position::y().
Referenced by TraCIServer::collectObjectsInRange().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa0: Get Induction Loop Variable)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 50 of file TraCIServerAPI_InductionLoop.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, MSInductLoop::collectVehiclesOnDet(), DELTA_T, MSInductLoop::VehicleData::entryTimeM, NamedObjectCont< T >::get(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), MSNet::getDetectorControl(), Named::getID(), MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSInductLoop::getTimestepsSinceLastDetection(), MSDetectorControl::getTypedDetectors(), ID_COUNT, ID_LIST, MSInductLoop::VehicleData::idM, NamedObjectCont< T >::insertIDs(), LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_TIME_SINCE_DETECTION, LAST_STEP_VEHICLE_DATA, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, MSInductLoop::VehicleData::leaveTimeM, MSInductLoop::VehicleData::lengthM, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_INDUCTIONLOOP_VARIABLE, RTYPE_OK, SUMO_TAG_INDUCTION_LOOP, TYPE_COMPOUND, TYPE_DOUBLE, TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, MSInductLoop::VehicleData::typeIDM, VAR_LANE_ID, VAR_POSITION, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeStorage(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::TraCIServer().