![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <Person.h>
Data Structures | |
| class | reservation_by_id_sorter |
| clase for CW Sorter More... | |
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 > &edges, 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=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 double | getWalkingDistance (const std::string &personID, const std::string &edgeID, double pos, int laneIndex=0) |
| static double | getWalkingDistance2D (const std::string &personID, double x, double y) |
| static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData) |
| static std::shared_ptr< VariableWrapper > | makeWrapper () |
| static void | moveTo (const std::string &personID, const std::string &laneID, double pos, double posLat=libsumo::INVALID_DOUBLE_VALUE) |
| 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, double matchThreshold=100) |
| static void | remove (const std::string &personID, char reason=libsumo::REMOVE_VAPORIZED) |
| 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) |
| static std::string | splitTaxiReservation (std::string reservationID, const std::vector< std::string > &personIDs) |
| 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. | |
Private Member Functions | |
| Person ()=delete | |
| invalidated standard constructor | |
Static Private Member Functions | |
| static MSStage * | convertTraCIStage (const TraCIStage &stage, const std::string personID) |
| static bool | filterReservation (int stateFilter, const Reservation *res, std::vector< libsumo::TraCIReservation > &reservations) |
| static MSPerson * | getPerson (const std::string &id) |
Static Private Attributes | |
| static ContextSubscriptionResults | myContextSubscriptionResults |
| static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 550 of file libsumo/Person.cpp.
References add(), MSTransportableControl::add(), MSTransportableControl::buildPerson(), DEF_MAX, SUMOVehicleParameter::depart, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, MSEdge::dictionary(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSEdge::getLength(), getPerson(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), GIVEN, SUMOVehicleParameter::id, TIME2STEPS, time2string(), TL, toString(), and WRITE_WARNINGF.
Referenced by add().
|
static |
Definition at line 765 of file libsumo/Person.cpp.
References appendDrivingStage(), MSTransportable::appendStage(), MSEdge::dictionary(), MSNet::getInstance(), MSEdge::getLength(), getPerson(), and MSNet::getStoppingPlace().
Referenced by appendDrivingStage().
|
static |
Definition at line 743 of file libsumo/Person.cpp.
References appendStage(), MSTransportable::appendStage(), convertTraCIStage(), and getPerson().
Referenced by appendStage().
|
static |
Definition at line 786 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), appendWaitingStage(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSNet::getInstance(), getPerson(), MSNet::getStoppingPlace(), SUMO_TAG_BUS_STOP, and TIME2STEPS.
Referenced by appendWaitingStage().
|
static |
Definition at line 803 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), appendWalkingStage(), MSTransportable::getArrivalPos(), Named::getID(), MSNet::getInstance(), getPerson(), MSNet::getStoppingPlace(), MSEdge::parseEdgesList(), SUMO_TAG_BUS_STOP, TIME2STEPS, and MSPModel::UNSPECIFIED_POS_LAT.
Referenced by appendWalkingStage().
|
staticprivate |
Definition at line 615 of file libsumo/Person.cpp.
References convertTraCIStage(), MSEdge::dictionary(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSTransportable::getCurrentStage(), MSStage::getDestination(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStoppingPlace::getEndLanePosition(), OptionsCont::getFloat(), Named::getID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSEdge::getLength(), OptionsCont::getOptions(), MSTransportable::getParameter(), getPerson(), MSNet::getStoppingPlace(), StringTokenizer::getVector(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), libsumo::INVALID_DOUBLE_VALUE, SUMOVehicleParameter::modes, MSEdge::parseEdgesList(), SUMOVehicleParameter::parsePersonModes(), libsumo::STAGE_DRIVING, libsumo::STAGE_TRIP, libsumo::STAGE_WAITING, libsumo::STAGE_WALKING, SVC_BICYCLE, SVC_PASSENGER, TIME2STEPS, and MSPModel::UNSPECIFIED_POS_LAT.
Referenced by appendStage(), convertTraCIStage(), and replaceStage().
|
staticprivate |
Definition at line 218 of file libsumo/Person.cpp.
References filterReservation(), Named::getID(), and STEPS2TIME.
Referenced by filterReservation(), and getTaxiReservations().
|
static |
Definition at line 96 of file libsumo/Person.cpp.
References getAngle(), getPerson(), and GeomHelper::naviDegree().
Referenced by getAngle(), and handleVariable().
|
static |
Definition at line 273 of file libsumo/Person.cpp.
References getEdges(), MSStage::getEdges(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), and getPerson().
Referenced by getEdges(), and handleVariable().
|
static |
Definition at line 127 of file libsumo/Person.cpp.
References Named::getIDSecure(), getLaneID(), and getPerson().
Referenced by getLaneID(), and handleVariable().
|
static |
Definition at line 133 of file libsumo/Person.cpp.
References getLanePosition(), and getPerson().
Referenced by getLanePosition(), and handleVariable().
|
static |
Definition at line 267 of file libsumo/Person.cpp.
References getNextEdge(), and getPerson().
Referenced by getNextEdge(), and handleVariable().
|
staticprivate |
Definition at line 1277 of file libsumo/Person.cpp.
References libsumo::Helper::getPerson(), and getPerson().
Referenced by add(), appendDrivingStage(), appendStage(), appendWaitingStage(), appendWalkingStage(), convertTraCIStage(), getAngle(), getEdges(), getLaneID(), getLanePosition(), getNextEdge(), getPerson(), getPosition(), getPosition3D(), getRemainingStages(), getRoadID(), getSlope(), getSpeed(), getStage(), getTypeID(), getVehicle(), getWaitingTime(), getWalkingDistance(), getWalkingDistance2D(), moveTo(), moveToXY(), remove(), removeStage(), replaceStage(), rerouteTraveltime(), setSpeed(), setType(), and storeShape().
|
static |
Definition at line 84 of file libsumo/Person.cpp.
References getPerson(), getPosition(), and libsumo::Helper::makeTraCIPosition().
Referenced by getPosition(), getPosition3D(), handleVariable(), and storeShape().
|
static |
Definition at line 90 of file libsumo/Person.cpp.
References getPerson(), getPosition(), getPosition3D(), and libsumo::Helper::makeTraCIPosition().
Referenced by getPosition3D().
|
static |
Definition at line 367 of file libsumo/Person.cpp.
References getPerson(), and getRemainingStages().
Referenced by getRemainingStages(), and handleVariable().
|
static |
Definition at line 121 of file libsumo/Person.cpp.
References getPerson(), and getRoadID().
Referenced by getRoadID(), and handleVariable().
|
static |
Definition at line 102 of file libsumo/Person.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSEdge::getLanes(), getPerson(), MSLane::getShape(), getSidewalk(), getSlope(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::slopeDegreeAtOffset().
Referenced by getSlope(), and handleVariable().
|
static |
Definition at line 115 of file libsumo/Person.cpp.
References getPerson(), and getSpeed().
Referenced by getSpeed(), and handleVariable().
|
static |
Definition at line 292 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(), getPerson(), getStage(), MSStage::getStageDescription(), MSStage::getStageType(), MSStageDriving::getVehicleType(), libsumo::INVALID_DOUBLE_VALUE, MSTransportable::isPerson(), SIMSTEP, STEPS2TIME, toString(), WAITING, and WALKING.
Referenced by getStage(), and handleVariable().
|
static |
Definition at line 177 of file libsumo/Person.cpp.
References Reservation::ASSIGNED, filterReservation(), MSDevice_Taxi::getDispatchAlgorithm(), MSDispatch::getReservations(), MSDispatch::getRunningReservations(), getTaxiReservations(), Reservation::NEW, Reservation::ONBOARD, and Reservation::RETRIEVED.
Referenced by getTaxiReservations(), and handleVariable().
|
static |
Definition at line 255 of file libsumo/Person.cpp.
References getPerson(), and getTypeID().
Referenced by getTypeID(), and handleVariable().
|
static |
Definition at line 373 of file libsumo/Person.cpp.
References Named::getID(), getPerson(), and getVehicle().
Referenced by getVehicle(), and handleVariable().
|
static |
Definition at line 261 of file libsumo/Person.cpp.
References getPerson(), and getWaitingTime().
Referenced by getWaitingTime(), and handleVariable().
|
static |
Definition at line 139 of file libsumo/Person.cpp.
References MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageType(), MSLane::getEdge(), MSTransportable::getEdgePos(), MSStageMoving::getEdges(), MSNet::getInstance(), libsumo::Helper::getLaneChecking(), MSTransportable::getMaxSpeed(), MSNet::getPedestrianRouter(), getPerson(), MSStageWalking::getRoutePosition(), MSTransportable::getVTypeParameter(), getWalkingDistance(), libsumo::INVALID_DOUBLE_VALUE, PedestrianRouter< E, L, N, V >::recomputeWalkCosts(), SIMSTEP, TLF, and WALKING.
Referenced by getWalkingDistance(), getWalkingDistance2D(), and handleVariable().
|
static |
Definition at line 168 of file libsumo/Person.cpp.
References libsumo::Helper::convertCartesianToRoadMap(), getPerson(), MSVehicleType::getVehicleClass(), MSTransportable::getVehicleType(), getWalkingDistance(), and getWalkingDistance2D().
Referenced by getWalkingDistance2D(), and handleVariable().
|
static |
Definition at line 1295 of file libsumo/Person.cpp.
References libsumo::DISTANCE_REQUEST, getAngle(), getEdges(), getLaneID(), getLanePosition(), getNextEdge(), getPosition(), getRemainingStages(), getRoadID(), getSlope(), getSpeed(), getStage(), getTaxiReservations(), getTypeID(), getVehicle(), getWaitingTime(), getWalkingDistance(), getWalkingDistance2D(), handleVariable(), libsumo::ID_COUNT, libsumo::POSITION_ROADMAP, libsumo::Helper::readDistanceRequest(), libsumo::StorageHelper::readTypedInt(), libsumo::StorageHelper::readTypedString(), libsumo::StorageHelper::readTypedStringList(), libsumo::SPLIT_TAXI_RESERVATIONS, splitTaxiReservation(), libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, libsumo::VAR_EDGES, libsumo::VAR_IMPATIENCE, libsumo::VAR_LANE_ID, libsumo::VAR_LANEPOSITION, libsumo::VAR_MAXSPEED, libsumo::VAR_NEXT_EDGE, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_ROAD_ID, libsumo::VAR_SLOPE, libsumo::VAR_SPEED, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_STAGE, libsumo::VAR_STAGES_REMAINING, libsumo::VAR_TAXI_RESERVATIONS, libsumo::VAR_TYPE, libsumo::VAR_VEHICLE, libsumo::VAR_WAITING_TIME, Position::x(), and Position::y().
Referenced by handleVariable(), and makeWrapper().
|
static |
Definition at line 1289 of file libsumo/Person.cpp.
References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.
Referenced by makeWrapper().
|
static |
Definition at line 897 of file libsumo/Person.cpp.
References MSLane::dictionary(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), getPerson(), MSStageMoving::getPState(), MSTransportable::getStageType(), MSTransportable::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), libsumo::INVALID_DOUBLE_VALUE, moveTo(), MSTransportableStateAdapter::moveTo(), MSPModel::SIDEWALK_OFFSET, SIMSTEP, toString(), and WALKING.
Referenced by moveTo().
|
static |
Definition at line 923 of file libsumo/Person.cpp.
References Position::angleTo2D(), MSTransportable::appendStage(), PositionVector::distance2D(), Position::distanceTo2D(), MSLane::geometryPositionAtOffset(), MSTransportable::getAngle(), MSStage::getArrivalPos(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), MSLane::getEdge(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSStageMoving::getEdges(), MSEdge::getFromJunction(), Named::getID(), Named::getIDSecure(), MSNet::getInstance(), MSTransportable::getNumRemainingStages(), getPerson(), MSTransportable::getPosition(), MSStageMoving::getRoute(), MSStageMoving::getRouteStep(), MSLane::getShape(), getSidewalk(), 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(), moveToXY(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), GeomHelper::naviDegree(), MSTransportable::removeStage(), PositionVector::rotationAtOffset(), libsumo::Helper::setRemoteControlled(), SVC_IGNORING, TL, toString(), MSPModel::UNSPECIFIED_POS_LAT, WAITING, WAITING_FOR_DEPART, WALKING, and WRITE_WARNINGF.
Referenced by moveToXY().
|
static |
Definition at line 1255 of file libsumo/Person.cpp.
References MSTransportable::getNumRemainingStages(), getPerson(), remove(), and MSTransportable::removeStage().
Referenced by remove().
|
static |
Definition at line 832 of file libsumo/Person.cpp.
References MSTransportable::getNumRemainingStages(), getPerson(), removeStage(), and MSTransportable::removeStage().
Referenced by removeStage().
|
static |
Definition at line 751 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), convertTraCIStage(), MSTransportable::getNumRemainingStages(), getPerson(), MSTransportable::removeStage(), and replaceStage().
Referenced by replaceStage().
|
static |
Definition at line 845 of file libsumo/Person.cpp.
References PedestrianRouter< E, L, N, V >::compute(), MSStage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSStage::getEdges(), MSNet::getInstance(), MSTransportable::getMaxSpeed(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSNet::getPedestrianRouter(), getPerson(), MSTransportable::getStageType(), MSTransportable::getVTypeParameter(), NORMAL, MSPerson::replaceWalk(), rerouteTraveltime(), toString(), WAITING, and WALKING.
Referenced by rerouteTraveltime().
|
static |
Definition at line 534 of file libsumo/Person.cpp.
References getPerson(), and setSpeed().
Referenced by setSpeed().
|
static |
Definition at line 540 of file libsumo/Person.cpp.
References MSNet::getInstance(), getPerson(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and setType().
Referenced by setType().
|
static |
Definition at line 206 of file libsumo/Person.cpp.
References MSDevice_Taxi::getDispatchAlgorithm(), MSDispatch_TraCI::splitReservation(), and splitTaxiReservation().
Referenced by handleVariable(), and splitTaxiReservation().
|
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 1283 of file libsumo/Person.cpp.
References getPerson(), getPosition(), and storeShape().
Referenced by storeShape().
|
staticprivate |
Definition at line 118 of file Person.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 117 of file Person.h.
Referenced by makeWrapper().