![]() |
Eclipse 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 | appendStage (const TraCIStage &stage, const std::string &personID) |
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 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 TraCIStage | 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=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 TraCIStage &stage) |
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 MSTransportable::Stage * | 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 393 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 553 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 532 of file Person.cpp.
References MSTransportable::appendStage(), convertTraCIStage(), and getPerson().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 574 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 591 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().
|
staticprivate |
Definition at line 458 of file Person.cpp.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, MSEdge::dictionary(), libsumo::TraCIStage::edges, MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSTransportable::getID(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), getPerson(), MSNet::getStoppingPlace(), StringTokenizer::getVector(), MSTransportable::getVehicleType(), libsumo::TraCIStage::line, NUMERICAL_EPS, MSEdge::parseEdgesList(), SUMO_TAG_BUS_STOP, TIME2STEPS, libsumo::TraCIStage::travelTime, and libsumo::TraCIStage::type.
Referenced by appendStage(), and replaceStage().
|
static |
Definition at line 86 of file Person.cpp.
References getPerson(), and GeomHelper::naviDegree().
Referenced by handleVariable().
|
static |
Definition at line 153 of file Person.cpp.
References MSTransportable::getEdges(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 68 of file Person.cpp.
References MSNet::getInstance(), MSNet::getPersonControl(), and MSTransportableControl::size().
Referenced by handleVariable().
|
static |
Definition at line 55 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 117 of file Person.cpp.
References MSTransportable::getEdgePos(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 147 of file Person.cpp.
References MSPerson::getNextEdge(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 248 of file Person.cpp.
References Parameterised::getParameter(), MSTransportable::getParameter(), and getPerson().
Referenced by TraCIServerAPI_Person::processGet().
|
staticprivate |
Definition at line 964 of file Person.cpp.
References MSTransportableControl::get(), MSNet::getInstance(), and MSNet::getPersonControl().
Referenced by add(), appendDrivingStage(), appendStage(), appendWaitingStage(), appendWalkingStage(), convertTraCIStage(), getAngle(), getEdges(), getLanePosition(), getNextEdge(), getParameter(), getPosition(), getPosition3D(), getRemainingStages(), getRoadID(), getSlope(), getSpeed(), getStage(), getTypeID(), getVehicle(), getWaitingTime(), moveTo(), moveToXY(), removeStage(), replaceStage(), rerouteTraveltime(), setParameter(), setSpeed(), setType(), and storeShape().
|
static |
Definition at line 74 of file Person.cpp.
References getPerson(), and libsumo::Helper::makeTraCIPosition().
Referenced by getPosition3D(), handleVariable(), and storeShape().
|
static |
Definition at line 80 of file Person.cpp.
References getPerson(), getPosition(), and libsumo::Helper::makeTraCIPosition().
|
static |
Definition at line 231 of file Person.cpp.
References MSTransportable::getNumRemainingStages(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 111 of file Person.cpp.
References MSTransportable::getEdge(), Named::getID(), and getPerson().
Referenced by handleVariable().
|
static |
Definition at line 92 of file Person.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSEdge::getLanes(), getPerson(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::slopeDegreeAtOffset().
Referenced by handleVariable().
|
static |
Definition at line 105 of file Person.cpp.
References getPerson(), and MSTransportable::getSpeed().
Referenced by handleVariable().
|
static |
Definition at line 172 of file Person.cpp.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, MSTransportable::Stage::getArrivalPos(), MSTransportable::Stage::getDestinationStop(), MSTransportable::Stage::getDistance(), MSTransportable::Stage::getEdges(), Named::getID(), MSVehicleType::getID(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), getPerson(), MSTransportable::Stage::getStageDescription(), MSTransportable::Stage::getStageType(), MSTransportable::Stage::getVehicle(), SUMOTrafficObject::getVehicleType(), libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, libsumo::STAGE_DRIVING, libsumo::STAGE_WALKING, STEPS2TIME, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, and libsumo::TraCIStage::vType.
Referenced by TraCIServerAPI_Person::processGet().
|
static |
Definition at line 135 of file Person.cpp.
References MSVehicleType::getID(), getPerson(), and MSTransportable::getVehicleType().
Referenced by handleVariable(), and TraCIServerAPI_Person::processGet().
|
static |
Definition at line 237 of file Person.cpp.
References SUMOTrafficObject::getID(), getPerson(), and MSTransportable::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 141 of file Person.cpp.
References getPerson(), and MSTransportable::getWaitingSeconds().
Referenced by handleVariable().
|
static |
Definition at line 987 of file Person.cpp.
References getAngle(), getIDCount(), getIDList(), getLanePosition(), getNextEdge(), getPosition(), getRemainingStages(), getRoadID(), getSlope(), getSpeed(), getTypeID(), getVehicle(), getWaitingTime(), libsumo::ID_COUNT, libsumo::TRACI_ID_LIST, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, 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_TYPE, libsumo::VAR_VEHICLE, libsumo::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 981 of file Person.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
Referenced by libsumo::Helper::handleSingleSubscription().
|
static |
Definition at line 688 of file Person.cpp.
References MSEdge::dictionary(), MSTransportable::getCurrentStageDescription(), and getPerson().
|
static |
Definition at line 713 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::getVClass(), MSTransportable::getVehicleType(), MSVehicleType::getWidth(), MSLane::getWidth(), MSGlobals::gLateralResolution, libsumo::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(), SVC_IGNORING, toString(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 623 of file Person.cpp.
References MSTransportable::getNumRemainingStages(), getPerson(), and MSTransportable::removeStage().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 539 of file Person.cpp.
References MSTransportable::appendStage(), convertTraCIStage(), MSTransportable::getNumRemainingStages(), getPerson(), and MSTransportable::removeStage().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 636 of file Person.cpp.
References PedestrianRouter::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 833 of file Person.cpp.
References MSTransportable::getParameter(), and getPerson().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 377 of file Person.cpp.
References getPerson(), and MSTransportable::setSpeed().
Referenced by TraCIServerAPI_Person::processSet().
|
static |
Definition at line 383 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 975 of file Person.cpp.
References getPerson(), and getPosition().
Referenced by libsumo::Helper::findObjectShape().
|
staticprivate |
Definition at line 106 of file Person.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 105 of file Person.h.
Referenced by makeWrapper().