![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <Person.h>
Static Public Member Functions | |
LIBSUMO_ID_PARAMETER_API static LIBSUMO_VEHICLE_TYPE_GETTER void | add (const std::string &personID, const std::string &edgeID, double pos, double depart=libsumo::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 | appendStage (const std::string &personID, const libsumo::TraCIStage &stage) |
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 std::vector< std::string > | getEdges (const std::string &personID, int nextStageIndex=0) |
static std::string | getLaneID (const std::string &personID) |
static double | getLanePosition (const std::string &personID) |
static std::string | getNextEdge (const std::string &personID) |
static libsumo::TraCIPosition | getPosition (const std::string &personID, const bool includeZ=false) |
static libsumo::TraCIPosition | getPosition3D (const std::string &personID) |
static int | getRemainingStages (const std::string &personID) |
static std::string | getRoadID (const std::string &personID) |
static double | getSlope (const std::string &personID) |
static double | getSpeed (const std::string &personID) |
static libsumo::TraCIStage | getStage (const std::string &personID, int nextStageIndex=0) |
static std::vector< libsumo::TraCIReservation > | getTaxiReservations (int onlyNew=false) |
static std::string | getTypeID (const std::string &personID) |
static std::string | getVehicle (const std::string &personID) |
static double | getWaitingTime (const std::string &personID) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
static std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | moveTo (const std::string &personID, const std::string &edgeID, double position) |
static void | moveToXY (const std::string &personID, const std::string &edgeID, const double x, const double y, double angle=libsumo::INVALID_DOUBLE_VALUE, const int keepRoute=1) |
static void | removeStage (const std::string &personID, int nextStageIndex) |
static void | replaceStage (const std::string &personID, const int stageIndex, const libsumo::TraCIStage &stage) |
static void | rerouteTraveltime (const std::string &personID) |
static void | setSpeed (const std::string &personID, double speed) |
static void | setType (const std::string &personID, const std::string &typeID) |
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Private Member Functions | |
Person ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static MSStage * | convertTraCIStage (const TraCIStage &stage, const std::string personID) |
static MSPerson * | getPerson (const std::string &id) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 445 of file libsumo/Person.cpp.
References MSTransportableControl::add(), MSTransportableControl::buildPerson(), SUMOVehicleParameter::depart, DEPART_DEF_MAX, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, MSEdge::dictionary(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSEdge::getLength(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), GIVEN, SUMOVehicleParameter::id, TIME2STEPS, time2string(), toString(), and WRITE_WARNING.
|
static |
Definition at line 611 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSEdge::dictionary(), MSNet::getInstance(), MSEdge::getLength(), MSNet::getStoppingPlace(), and SUMO_TAG_BUS_STOP.
|
static |
Definition at line 589 of file libsumo/Person.cpp.
References MSTransportable::appendStage().
|
static |
Definition at line 632 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSNet::getInstance(), MSNet::getStoppingPlace(), SUMO_TAG_BUS_STOP, and TIME2STEPS.
|
static |
Definition at line 649 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), Named::getID(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), MSNet::getStoppingPlace(), MSTransportable::getVehicleType(), MSEdge::parseEdgesList(), SUMO_TAG_BUS_STOP, and TIME2STEPS.
|
staticprivate |
Definition at line 510 of file libsumo/Person.cpp.
References MSEdge::dictionary(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSNet::getInstance(), MSEdge::getLength(), MSVehicleType::getMaxSpeed(), MSNet::getStoppingPlace(), StringTokenizer::getVector(), MSTransportable::getVehicleType(), libsumo::INVALID_DOUBLE_VALUE, MSEdge::parseEdgesList(), libsumo::STAGE_DRIVING, libsumo::STAGE_WAITING, libsumo::STAGE_WALKING, SUMO_TAG_BUS_STOP, SUMO_TAG_PARKING_AREA, and TIME2STEPS.
|
static |
Definition at line 89 of file libsumo/Person.cpp.
References GeomHelper::naviDegree().
|
static |
Definition at line 198 of file libsumo/Person.cpp.
References MSTransportable::getEdges(), MSTransportable::getNumRemainingStages(), and MSTransportable::getNumStages().
|
static |
Definition at line 120 of file libsumo/Person.cpp.
References Named::getIDSecure().
|
static |
Definition at line 126 of file libsumo/Person.cpp.
|
static |
Definition at line 192 of file libsumo/Person.cpp.
|
staticprivate |
Definition at line 1070 of file libsumo/Person.cpp.
References libsumo::Helper::getPerson().
|
static |
Definition at line 77 of file libsumo/Person.cpp.
References libsumo::Helper::makeTraCIPosition().
|
static |
Definition at line 83 of file libsumo/Person.cpp.
References libsumo::Helper::makeTraCIPosition().
|
static |
Definition at line 280 of file libsumo/Person.cpp.
|
static |
Definition at line 114 of file libsumo/Person.cpp.
|
static |
Definition at line 95 of file libsumo/Person.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSEdge::getLanes(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::slopeDegreeAtOffset().
|
static |
Definition at line 108 of file libsumo/Person.cpp.
|
static |
Definition at line 217 of file libsumo/Person.cpp.
References DRIVING, MSStage::getArrivalPos(), MSStage::getArrived(), MSStage::getDeparted(), MSStage::getDestinationStop(), MSStage::getDistance(), MSStage::getEdges(), Named::getID(), MSStageDriving::getIntendedDepart(), MSStageDriving::getIntendedVehicleID(), MSStageDriving::getLines(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSStage::getStageDescription(), MSStage::getStageType(), MSStageDriving::getVehicleType(), libsumo::INVALID_DOUBLE_VALUE, MSTransportable::isPerson(), STEPS2TIME, toString(), and WALKING.
|
static |
Definition at line 131 of file libsumo/Person.cpp.
References MSDevice_Taxi::getDispatchAlgorithm(), Named::getID(), MSDispatch_TraCI::getReservationID(), MSDispatch::getReservations(), STEPS2TIME, and SUMOTime_MAX.
|
static |
Definition at line 180 of file libsumo/Person.cpp.
|
static |
Definition at line 286 of file libsumo/Person.cpp.
References Named::getID().
|
static |
Definition at line 186 of file libsumo/Person.cpp.
|
static |
Definition at line 1088 of file libsumo/Person.cpp.
References libsumo::ID_COUNT, libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, libsumo::VAR_LANE_ID, libsumo::VAR_LANEPOSITION, libsumo::VAR_NEXT_EDGE, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_ROAD_ID, libsumo::VAR_SLOPE, libsumo::VAR_SPEED, libsumo::VAR_STAGES_REMAINING, libsumo::VAR_TAXI_RESERVATIONS, libsumo::VAR_TYPE, libsumo::VAR_VEHICLE, and libsumo::VAR_WAITING_TIME.
|
static |
Definition at line 1082 of file libsumo/Person.cpp.
|
static |
Definition at line 746 of file libsumo/Person.cpp.
References MSEdge::dictionary(), and MSTransportable::getCurrentStageDescription().
|
static |
Definition at line 771 of file libsumo/Person.cpp.
References Position::angleTo2D(), MSTransportable::appendStage(), PositionVector::distance2D(), Position::distanceTo2D(), FALLTHROUGH, MSTransportableControl::forceDeparture(), MSLane::geometryPositionAtOffset(), MSStage::getArrivalPos(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), MSLane::getEdge(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSStageMoving::getEdges(), MSEdge::getFromJunction(), Named::getID(), Named::getIDSecure(), MSNet::getInstance(), MSTransportable::getNumRemainingStages(), MSNet::getPersonControl(), MSTransportable::getPosition(), MSStageMoving::getRoute(), MSStageMoving::getRouteStep(), MSLane::getShape(), MSTransportable::getStageType(), MSEdge::getToJunction(), MSTransportable::getVClass(), MSTransportable::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), MSGlobals::gLateralResolution, libsumo::INVALID_DOUBLE_VALUE, GeomHelper::INVALID_OFFSET, MSEdge::isNormal(), MSEdge::isWalkingArea(), MIN2(), PositionVector::move2side(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), GeomHelper::naviDegree(), MSTransportable::removeStage(), PositionVector::rotationAtOffset(), libsumo::Helper::setRemoteControlled(), SVC_IGNORING, toString(), WAITING, WAITING_FOR_DEPART, WALKING, and WRITE_WARNING.
|
static |
Definition at line 681 of file libsumo/Person.cpp.
References MSTransportable::getNumRemainingStages(), and MSTransportable::removeStage().
|
static |
Definition at line 597 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getNumRemainingStages(), and MSTransportable::removeStage().
|
static |
Definition at line 694 of file libsumo/Person.cpp.
References PedestrianRouter< E, L, N, V >::compute(), MSStage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSStage::getEdges(), MSTransportable::getEdges(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSNet::getPedestrianRouter(), MSTransportable::getStageType(), MSTransportable::getVehicleType(), NORMAL, MSPerson::reroute(), toString(), WAITING, and WALKING.
|
static |
Definition at line 429 of file libsumo/Person.cpp.
|
static |
Definition at line 435 of file libsumo/Person.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), and MSVehicleControl::getVType().
|
static |
Saves the shape of the requested object in the given container.
id | The id of the poi to retrieve |
shape | The container to fill |
Definition at line 1076 of file libsumo/Person.cpp.
|
staticprivate |
|
staticprivate |