![]() |
SUMO - Simulation of Urban MObility
|
#include <Person.h>
Static Public Member Functions | |
static LIBSUMO_VEHICLE_TYPE_GETTER 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 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, const bool includeZ=false) |
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 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, const int keepRouteFlag) |
static void | removeStage (const std::string &personID, int nextStageIndex) |
static void | rerouteTraveltime (const std::string &personID) |
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) |
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 MSPerson * | getPerson (const std::string &id) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 323 of file 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 389 of file 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 410 of file 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 427 of file 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 81 of file Person.cpp.
References getPerson(), and GeomHelper::naviDegree().
Referenced by handleVariable().
|
static |
Definition at line 135 of file Person.cpp.
References MSTransportable::getEdges(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 69 of file Person.cpp.
References MSNet::getInstance(), MSNet::getPersonControl(), and MSTransportableControl::size().
Referenced by handleVariable().
|
static |
Definition at line 56 of file Person.cpp.
References MSNet::getInstance(), MSNet::getPersonControl(), MSTransportableControl::loadedBegin(), MSTransportableControl::loadedEnd(), and MSTransportable::WAITING_FOR_DEPART.
Referenced by handleVariable().
|
static |
Definition at line 99 of file Person.cpp.
References libsumo::TraCIColor::a, RGBColor::alpha(), libsumo::TraCIColor::b, RGBColor::blue(), SUMOVehicleParameter::color, libsumo::TraCIColor::g, MSTransportable::getEdgePos(), MSTransportable::getParameter(), getPerson(), RGBColor::green(), libsumo::TraCIColor::r, and RGBColor::red().
Referenced by handleVariable().
|
static |
Definition at line 129 of file Person.cpp.
References MSPerson::getNextEdge(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 182 of file Person.cpp.
References MSVehicleType::getActionStepLengthSecs(), MSCFModel::getApparentDecel(), MSVehicleType::getCarFollowModel(), MSCFModel::getEmergencyDecel(), MSCFModel::getHeadwayTime(), MSVehicleType::getHeight(), MSCFModel::getImperfection(), MSVehicleType::getLength(), MSCFModel::getMaxAccel(), MSCFModel::getMaxDecel(), MSVehicleType::getMaxSpeed(), MSVehicleType::getMaxSpeedLat(), MSVehicleType::getMinGap(), MSVehicleType::getMinGapLat(), PollutantsInterface::getName(), Distribution_Parameterized::getParameter(), Parameterised::getParameter(), MSTransportable::getParameter(), getPerson(), MSVehicleType::getSpeedFactor(), getVehicleShapeName(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), and toString().
Referenced by TraCIServerAPI_Person::processGet().
|
staticprivate |
Definition at line 797 of file Person.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), and MSNet::getPersonControl().
Referenced by add(), appendDrivingStage(), appendWaitingStage(), appendWalkingStage(), getAngle(), getEdges(), getLanePosition(), getNextEdge(), getParameter(), getPosition(), getRemainingStages(), getRoadID(), getSpeed(), getStage(), getTypeID(), getVehicle(), getWaitingTime(), moveTo(), moveToXY(), removeStage(), rerouteTraveltime(), setParameter(), setSpeed(), setType(), and storeShape().
|
static |
Definition at line 75 of file Person.cpp.
References getPerson(), and libsumo::Helper::makeTraCIPosition().
Referenced by handleVariable(), and storeShape().
|
static |
Definition at line 165 of file Person.cpp.
References MSTransportable::getNumRemainingStages(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 93 of file Person.cpp.
References MSTransportable::getEdge(), Named::getID(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 87 of file Person.cpp.
References getPerson(), and MSTransportable::getSpeed().
Referenced by handleVariable().
|
static |
Definition at line 152 of file Person.cpp.
References MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), getPerson(), and MSTransportable::getStageType().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 117 of file Person.cpp.
References MSVehicleType::getID(), getPerson(), and MSTransportable::getVehicleType().
Referenced by handleVariable(), and TraCIServerAPI_Person::processGet().
|
static |
Definition at line 171 of file Person.cpp.
References SUMOVehicle::getID(), getPerson(), and MSTransportable::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 123 of file Person.cpp.
References getPerson(), and MSTransportable::getWaitingSeconds().
Referenced by handleVariable().
|
static |
Definition at line 820 of file Person.cpp.
References getAngle(), getIDCount(), getIDList(), getLanePosition(), getNextEdge(), getPosition(), getRemainingStages(), getRoadID(), getSpeed(), getTypeID(), getVehicle(), getWaitingTime(), ID_COUNT, TRACI_ID_LIST, VAR_ANGLE, VAR_COLOR, VAR_LANEPOSITION, VAR_NEXT_EDGE, VAR_POSITION, VAR_POSITION3D, VAR_ROAD_ID, VAR_SPEED, VAR_STAGES_REMAINING, VAR_TYPE, VAR_VEHICLE, VAR_WAITING_TIME, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_Person::processGet().
|
static |
Definition at line 814 of file Person.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
static |
Definition at line 524 of file Person.cpp.
References MSEdge::dictionary(), MSTransportable::getCurrentStageDescription(), and getPerson().
|
static |
Definition at line 549 of file Person.cpp.
References Position::angleTo2D(), PositionVector::distance2D(), Position::distanceTo2D(), MSLane::geometryPositionAtOffset(), MSTransportable::getCurrentStage(), MSTransportable::getCurrentStageDescription(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSPerson::MSPersonStage_Walking::getEdges(), Named::getID(), MSTransportable::getID(), Named::getIDSecure(), MSNet::getInstance(), getPerson(), MSTransportable::getPosition(), MSPerson::MSPersonStage_Walking::getRoute(), MSPerson::MSPersonStage_Walking::getRouteStep(), MSLane::getShape(), MSTransportable::getStageType(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), MSLane::getWidth(), MSGlobals::gLateralResolution, INVALID_DOUBLE_VALUE, GeomHelper::INVALID_OFFSET, MIN2(), PositionVector::move2side(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), MSTransportable::MOVING_WITHOUT_VEHICLE, GeomHelper::naviDegree(), PositionVector::rotationAtOffset(), libsumo::Helper::setRemoteControlled(), toString(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 459 of file Person.cpp.
References MSTransportable::getNumRemainingStages(), getPerson(), and MSTransportable::removeStage().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 472 of file Person.cpp.
References PedestrianRouter< E, L, N, V >::compute(), EDGEFUNC_NORMAL, MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSTransportable::Stage::getEdges(), MSTransportable::getEdges(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSNet::getPedestrianRouter(), getPerson(), MSTransportable::getStageType(), MSTransportable::getVehicleType(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSPerson::reroute(), toString(), and MSTransportable::WAITING.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
untested setter functions which alter the person's vtype
Definition at line 666 of file Person.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, SUMOVehicleParameter::color, libsumo::TraCIColor::g, PollutantsInterface::getClassByName(), MSTransportable::getParameter(), getPerson(), MSTransportable::getSingularType(), getVehicleClassID(), getVehicleShapeID(), SUMOXMLDefinitions::LateralAlignments, LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, SUMOVehicleParameter::parametersSet, SUMOVehicleParserHelper::processActionStepLength(), libsumo::TraCIColor::r, RGBColor::set(), MSVehicleType::setAccel(), MSVehicleType::setActionStepLength(), MSVehicleType::setApparentDecel(), MSVehicleType::setDecel(), MSVehicleType::setEmergencyDecel(), MSVehicleType::setEmissionClass(), MSVehicleType::setHeight(), MSVehicleType::setImperfection(), MSVehicleType::setLength(), MSVehicleType::setMaxSpeed(), MSVehicleType::setMaxSpeedLat(), MSVehicleType::setMinGap(), MSVehicleType::setMinGapLat(), MSVehicleType::setPreferredLateralAlignment(), MSVehicleType::setShape(), MSVehicleType::setSpeedFactor(), MSVehicleType::setTau(), MSVehicleType::setVClass(), MSVehicleType::setWidth(), and VEHPARS_COLOR_SET.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 307 of file Person.cpp.
References getPerson(), and MSTransportable::setSpeed().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 313 of file Person.cpp.
References MSNet::getInstance(), getPerson(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and MSTransportable::replaceVehicleType().
Referenced by TraCIServerAPI_Person::processSet().
|
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 808 of file Person.cpp.
References getPerson(), and getPosition().
|
staticprivate |
Definition at line 101 of file Person.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 100 of file Person.h.
Referenced by makeWrapper().