![]() |
SUMO - Simulation of Urban MObility
|
#include <TraCI_Person.h>

Static Public Member Functions | |
| static void | add (const std::string &personID, const std::string &edgeID, double pos, double depart=DEPARTFLAG_NOW, const std::string typeID="DEFAULT_PEDTYPE") |
| static void | appendDrivingStage (const std::string &personID, const std::string &toEdge, const std::string &lines, const std::string &stopID="") |
| static void | appendWaitingStage (const std::string &personID, double duration, const std::string &description="waiting", const std::string &stopID="") |
| static void | appendWalkingStage (const std::string &personID, const std::vector< std::string > &edgeIDs, double arrivalPos, double duration=-1, double speed=-1, const std::string &stopID="") |
| static double | getAngle (const std::string &personID) |
| static TraCIColor | getColor (const std::string &personID) |
| static std::vector< std::string > | getEdges (const std::string &personID, int nextStageIndex=0) |
| static int | getIDCount () |
| static std::vector< std::string > | getIDList () |
| static double | getLanePosition (const std::string &personID) |
| static std::string | getNextEdge (const std::string &personID) |
| static std::string | getParameter (const std::string &routeID, const std::string ¶m) |
| static TraCIPosition | getPosition (const std::string &personID) |
| static int | getRemainingStages (const std::string &personID) |
| static std::string | getRoadID (const std::string &personID) |
| static double | getSpeed (const std::string &personID) |
| static int | getStage (const std::string &personID, int nextStageIndex=0) |
| static std::string | getTypeID (const std::string &personID) |
| static std::string | getVehicle (const std::string &personID) |
| static double | getWaitingTime (const std::string &personID) |
| static void | removeStage (const std::string &personID, int nextStageIndex) |
| static void | removeStages (const std::string &personID) |
| static void | rerouteTraveltime (const std::string &personID) |
| static void | setColor (const std::string &personID, const TraCIColor &c) |
| static void | setHeight (const std::string &personID, double height) |
| static void | setLength (const std::string &personID, double length) |
| static void | setMinGap (const std::string &personID, double minGap) |
| static void | setParameter (const std::string &personID, const std::string &key, const std::string &value) |
| static void | setSpeed (const std::string &personID, double speed) |
| static void | setType (const std::string &personID, const std::string &typeID) |
| static void | setWidth (const std::string &personID, double width) |
Private Member Functions | |
| TraCI_Person & | operator= (const TraCI_Person &src) |
| invalidated assignment operator More... | |
| TraCI_Person () | |
| invalidated standard constructor More... | |
| TraCI_Person (const TraCI_Person &src) | |
| invalidated copy constructor More... | |
Static Private Member Functions | |
| static MSTransportable * | getPerson (const std::string &id) |
| static std::string | getSingularVType (const std::string &personID) |
Friends | |
| bool | TraCIServerAPI_Person::processSet (TraCIServer &, tcpip::Storage &, tcpip::Storage &) |
Definition at line 49 of file TraCI_Person.h.
|
private |
invalidated standard constructor
|
private |
invalidated copy constructor
|
static |
Definition at line 201 of file TraCI_Person.cpp.
References MSTransportableControl::add(), MSTransportableControl::buildPerson(), SUMOVehicleParameter::depart, DEPART_DEF_MAX, DEPART_POS_GIVEN, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, MSEdge::dictionary(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSEdge::getLength(), getPerson(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, TIME2STEPS, time2string(), toString(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 267 of file TraCI_Person.cpp.
References MSTransportable::appendStage(), MSEdge::dictionary(), MSNet::getInstance(), getPerson(), MSNet::getStoppingPlace(), NUMERICAL_EPS, and SUMO_TAG_BUS_STOP.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 288 of file TraCI_Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSNet::getInstance(), getPerson(), MSNet::getStoppingPlace(), SUMO_TAG_BUS_STOP, and TIME2STEPS.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 305 of file TraCI_Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), MSTransportable::getID(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), getPerson(), MSNet::getStoppingPlace(), MSTransportable::getVehicleType(), MSEdge::parseEdgesList(), SUMO_TAG_BUS_STOP, and TIME2STEPS.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 76 of file TraCI_Person.cpp.
References getPerson(), and GeomHelper::naviDegree().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 100 of file TraCI_Person.cpp.
References TraCIColor::a, RGBColor::alpha(), TraCIColor::b, RGBColor::blue(), SUMOVehicleParameter::color, TraCIColor::g, MSTransportable::getParameter(), getPerson(), RGBColor::green(), TraCIColor::r, and RGBColor::red().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 130 of file TraCI_Person.cpp.
References MSTransportable::getEdges(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 59 of file TraCI_Person.cpp.
References MSNet::getInstance(), MSNet::getPersonControl(), and MSTransportableControl::size().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 46 of file TraCI_Person.cpp.
References MSNet::getInstance(), MSNet::getPersonControl(), MSTransportableControl::loadedBegin(), MSTransportableControl::loadedEnd(), and MSTransportable::WAITING_FOR_DEPART.
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 94 of file TraCI_Person.cpp.
References MSTransportable::getEdgePos(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 124 of file TraCI_Person.cpp.
References getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 177 of file TraCI_Person.cpp.
References Parameterised::getParameter(), MSTransportable::getParameter(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
staticprivate |
Definition at line 430 of file TraCI_Person.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), and MSNet::getPersonControl().
Referenced by add(), appendDrivingStage(), appendWaitingStage(), appendWalkingStage(), getAngle(), getColor(), getEdges(), getLanePosition(), getNextEdge(), getParameter(), getPosition(), getRemainingStages(), getRoadID(), getSingularVType(), getSpeed(), getStage(), getTypeID(), getVehicle(), getWaitingTime(), removeStage(), rerouteTraveltime(), setParameter(), setSpeed(), and setType().
|
static |
Definition at line 65 of file TraCI_Person.cpp.
References getPerson(), MSTransportable::getPosition(), Position::x(), TraCIPosition::x, Position::y(), TraCIPosition::y, TraCIPosition::z, and Position::z().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 160 of file TraCI_Person.cpp.
References MSTransportable::getNumRemainingStages(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 88 of file TraCI_Person.cpp.
References MSTransportable::getEdge(), Named::getID(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
staticprivate |
Definition at line 440 of file TraCI_Person.cpp.
References MSVehicleType::getID(), getPerson(), and MSTransportable::getSingularType().
Referenced by TraCIServerAPI_Person::processSet(), setColor(), setHeight(), setLength(), setMinGap(), and setWidth().
|
static |
Definition at line 82 of file TraCI_Person.cpp.
References getPerson(), and MSTransportable::getSpeed().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 147 of file TraCI_Person.cpp.
References MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), getPerson(), and MSTransportable::getStageType().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 112 of file TraCI_Person.cpp.
References MSVehicleType::getID(), getPerson(), and MSTransportable::getVehicleType().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 166 of file TraCI_Person.cpp.
References SUMOVehicle::getID(), getPerson(), and MSTransportable::getVehicle().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 118 of file TraCI_Person.cpp.
References getPerson(), and MSTransportable::getWaitingSeconds().
Referenced by TraCIServerAPI_Person::processGet().
|
private |
invalidated assignment operator
|
static |
Definition at line 337 of file TraCI_Person.cpp.
References MSTransportable::getNumRemainingStages(), getPerson(), and MSTransportable::removeStage().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
|
static |
Definition at line 350 of file TraCI_Person.cpp.
References MSTransportable::appendStage(), PedestrianRouter< E, L, N, V, INTERNALROUTER >::compute(), EDGEFUNC_NORMAL, MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSTransportable::getEdges(), MSTransportable::getID(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), MSTransportable::getNumRemainingStages(), MSNet::getPedestrianRouter(), getPerson(), MSTransportable::getVehicleType(), MSTransportable::MOVING_WITHOUT_VEHICLE, and MSTransportable::removeStage().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 421 of file TraCI_Person.cpp.
References TraCIColor::a, TraCIColor::b, TraCIColor::g, getSingularVType(), TraCI_VehicleType::getVType(), TraCIColor::r, and MSVehicleType::setColor().
|
static |
Definition at line 411 of file TraCI_Person.cpp.
References getSingularVType(), TraCI_VehicleType::getVType(), and MSVehicleType::setHeight().
|
static |
Definition at line 401 of file TraCI_Person.cpp.
References getSingularVType(), TraCI_VehicleType::getVType(), and MSVehicleType::setLength().
|
static |
Definition at line 416 of file TraCI_Person.cpp.
References getSingularVType(), TraCI_VehicleType::getVType(), and MSVehicleType::setMinGap().
|
static |
untested setter functions which alter the person's vtype
Definition at line 395 of file TraCI_Person.cpp.
References MSTransportable::getParameter(), and getPerson().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 185 of file TraCI_Person.cpp.
References getPerson(), and MSTransportable::setSpeed().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 191 of file TraCI_Person.cpp.
References MSNet::getInstance(), getPerson(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and MSTransportable::replaceVehicleType().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 406 of file TraCI_Person.cpp.
References getSingularVType(), TraCI_VehicleType::getVType(), and MSVehicleType::setWidth().
|
friend |