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 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. 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 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 507 of file libsumo/Person.cpp.
References MSTransportableControl::add(), MSTransportableControl::buildPerson(), DEF_MAX, SUMOVehicleParameter::depart, 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(), TL, toString(), and WRITE_WARNINGF.
|
static |
Definition at line 673 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 651 of file libsumo/Person.cpp.
References MSTransportable::appendStage().
|
static |
Definition at line 694 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 711 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getArrivalPos(), Named::getID(), MSNet::getInstance(), MSTransportable::getMaxSpeed(), MSNet::getStoppingPlace(), MSEdge::parseEdgesList(), SUMO_TAG_BUS_STOP, TIME2STEPS, and MSPModel::UNSPECIFIED_POS_LAT.
|
staticprivate |
Definition at line 572 of file libsumo/Person.cpp.
References MSEdge::dictionary(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSNet::getInstance(), MSEdge::getLength(), MSTransportable::getMaxSpeed(), MSNet::getStoppingPlace(), StringTokenizer::getVector(), libsumo::INVALID_DOUBLE_VALUE, MSEdge::parseEdgesList(), libsumo::STAGE_DRIVING, libsumo::STAGE_WAITING, libsumo::STAGE_WALKING, SUMO_TAG_BUS_STOP, SUMO_TAG_PARKING_AREA, TIME2STEPS, and MSPModel::UNSPECIFIED_POS_LAT.
|
staticprivate |
Definition at line 181 of file libsumo/Person.cpp.
References Reservation::from, Reservation::fromPos, Named::getID(), Reservation::group, Reservation::id, Reservation::persons, Reservation::pickupTime, Reservation::reservationTime, Reservation::state, STEPS2TIME, Reservation::to, and Reservation::toPos.
|
static |
Definition at line 94 of file libsumo/Person.cpp.
References GeomHelper::naviDegree().
|
static |
Definition at line 236 of file libsumo/Person.cpp.
References MSStage::getEdges(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), and MSTransportable::getNumStages().
|
static |
Definition at line 125 of file libsumo/Person.cpp.
References Named::getIDSecure().
|
static |
Definition at line 131 of file libsumo/Person.cpp.
|
static |
Definition at line 230 of file libsumo/Person.cpp.
|
staticprivate |
Definition at line 1179 of file libsumo/Person.cpp.
References libsumo::Helper::getPerson().
|
static |
Definition at line 82 of file libsumo/Person.cpp.
References libsumo::Helper::makeTraCIPosition().
|
static |
Definition at line 88 of file libsumo/Person.cpp.
References libsumo::Helper::makeTraCIPosition().
|
static |
Definition at line 330 of file libsumo/Person.cpp.
|
static |
Definition at line 119 of file libsumo/Person.cpp.
|
static |
Definition at line 100 of file libsumo/Person.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSEdge::getLanes(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::slopeDegreeAtOffset().
|
static |
Definition at line 113 of file libsumo/Person.cpp.
|
static |
Definition at line 255 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(), SIMSTEP, STEPS2TIME, toString(), WAITING, and WALKING.
|
static |
Definition at line 136 of file libsumo/Person.cpp.
References Reservation::ASSIGNED, MSDevice_Taxi::getDispatchAlgorithm(), MSDispatch::getReservations(), MSDispatch::getRunningReservations(), Reservation::NEW, Reservation::ONBOARD, and Reservation::RETRIEVED.
|
static |
Definition at line 218 of file libsumo/Person.cpp.
|
static |
Definition at line 336 of file libsumo/Person.cpp.
References Named::getID().
|
static |
Definition at line 224 of file libsumo/Person.cpp.
|
static |
Definition at line 1197 of file libsumo/Person.cpp.
References libsumo::ID_COUNT, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, 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_STAGES_REMAINING, libsumo::VAR_TAXI_RESERVATIONS, libsumo::VAR_TYPE, libsumo::VAR_VEHICLE, and libsumo::VAR_WAITING_TIME.
|
static |
Definition at line 1191 of file libsumo/Person.cpp.
|
static |
Definition at line 808 of file libsumo/Person.cpp.
References MSLane::dictionary(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), MSStageMoving::getPState(), MSTransportable::getStageType(), MSTransportable::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), libsumo::INVALID_DOUBLE_VALUE, MSTransportableStateAdapter::moveTo(), MSPModel::SIDEWALK_OFFSET, SIMSTEP, toString(), and WALKING.
|
static |
Definition at line 834 of file libsumo/Person.cpp.
References Position::angleTo2D(), MSTransportable::appendStage(), PositionVector::distance2D(), Position::distanceTo2D(), 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(), 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, TL, toString(), MSPModel::UNSPECIFIED_POS_LAT, WAITING, WAITING_FOR_DEPART, WALKING, and WRITE_WARNINGF.
|
static |
Definition at line 1157 of file libsumo/Person.cpp.
References MSTransportable::getNumRemainingStages(), and MSTransportable::removeStage().
|
static |
Definition at line 743 of file libsumo/Person.cpp.
References MSTransportable::getNumRemainingStages(), and MSTransportable::removeStage().
|
static |
Definition at line 659 of file libsumo/Person.cpp.
References MSTransportable::appendStage(), MSTransportable::getNumRemainingStages(), and MSTransportable::removeStage().
|
static |
Definition at line 756 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(), MSTransportable::getStageType(), NORMAL, MSPerson::reroute(), toString(), WAITING, and WALKING.
|
static |
Definition at line 491 of file libsumo/Person.cpp.
|
static |
Definition at line 497 of file libsumo/Person.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), and MSVehicleControl::getVType().
|
static |
Definition at line 169 of file libsumo/Person.cpp.
References MSDevice_Taxi::getDispatchAlgorithm(), and MSDispatch_TraCI::splitReservation().
|
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 1185 of file libsumo/Person.cpp.
|
staticprivate |
|
staticprivate |