Eclipse SUMO - Simulation of Urban MObility
LIBSUMO_NAMESPACE::Person Class Reference

#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::TraCIReservationgetTaxiReservations (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 MSStageconvertTraCIStage (const TraCIStage &stage, const std::string personID)
 
static bool filterReservation (int stateFilter, const Reservation *res, std::vector< libsumo::TraCIReservation > &reservations)
 
static MSPersongetPerson (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 45 of file Person.h.

Constructor & Destructor Documentation

◆ Person()

LIBSUMO_NAMESPACE::Person::Person ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ add()

◆ appendDrivingStage()

void Person::appendDrivingStage ( const std::string &  personID,
const std::string &  toEdge,
const std::string &  lines,
const std::string &  stopID = "" 
)
static

◆ appendStage()

void Person::appendStage ( const std::string &  personID,
const libsumo::TraCIStage stage 
)
static

Definition at line 651 of file libsumo/Person.cpp.

References MSTransportable::appendStage().

◆ appendWaitingStage()

void Person::appendWaitingStage ( const std::string &  personID,
double  duration,
const std::string &  description = "waiting",
const std::string &  stopID = "" 
)
static

◆ appendWalkingStage()

void Person::appendWalkingStage ( const std::string &  personID,
const std::vector< std::string > &  edges,
double  arrivalPos,
double  duration = -1,
double  speed = -1,
const std::string &  stopID = "" 
)
static

◆ convertTraCIStage()

◆ filterReservation()

bool Person::filterReservation ( int  stateFilter,
const Reservation res,
std::vector< libsumo::TraCIReservation > &  reservations 
)
staticprivate

◆ getAngle()

double Person::getAngle ( const std::string &  personID)
static

Definition at line 94 of file libsumo/Person.cpp.

References GeomHelper::naviDegree().

◆ getEdges()

std::vector< std::string > Person::getEdges ( const std::string &  personID,
int  nextStageIndex = 0 
)
static

◆ getLaneID()

std::string Person::getLaneID ( const std::string &  personID)
static

Definition at line 125 of file libsumo/Person.cpp.

References Named::getIDSecure().

◆ getLanePosition()

double Person::getLanePosition ( const std::string &  personID)
static

Definition at line 131 of file libsumo/Person.cpp.

◆ getNextEdge()

std::string Person::getNextEdge ( const std::string &  personID)
static

Definition at line 230 of file libsumo/Person.cpp.

◆ getPerson()

MSPerson * Person::getPerson ( const std::string &  id)
staticprivate

Definition at line 1179 of file libsumo/Person.cpp.

References libsumo::Helper::getPerson().

◆ getPosition()

libsumo::TraCIPosition Person::getPosition ( const std::string &  personID,
const bool  includeZ = false 
)
static

Definition at line 82 of file libsumo/Person.cpp.

References libsumo::Helper::makeTraCIPosition().

◆ getPosition3D()

libsumo::TraCIPosition Person::getPosition3D ( const std::string &  personID)
static

Definition at line 88 of file libsumo/Person.cpp.

References libsumo::Helper::makeTraCIPosition().

◆ getRemainingStages()

int Person::getRemainingStages ( const std::string &  personID)
static

Definition at line 330 of file libsumo/Person.cpp.

◆ getRoadID()

std::string Person::getRoadID ( const std::string &  personID)
static

Definition at line 119 of file libsumo/Person.cpp.

◆ getSlope()

◆ getSpeed()

double Person::getSpeed ( const std::string &  personID)
static

Definition at line 113 of file libsumo/Person.cpp.

◆ getStage()

◆ getTaxiReservations()

◆ getTypeID()

std::string Person::getTypeID ( const std::string &  personID)
static

Definition at line 218 of file libsumo/Person.cpp.

◆ getVehicle()

std::string Person::getVehicle ( const std::string &  personID)
static

Definition at line 336 of file libsumo/Person.cpp.

References Named::getID().

◆ getWaitingTime()

double Person::getWaitingTime ( const std::string &  personID)
static

Definition at line 224 of file libsumo/Person.cpp.

◆ handleVariable()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > Person::makeWrapper ( )
static

Definition at line 1191 of file libsumo/Person.cpp.

◆ moveTo()

◆ moveToXY()

void Person::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

◆ remove()

void Person::remove ( const std::string &  personID,
char  reason = libsumo::REMOVE_VAPORIZED 
)
static

◆ removeStage()

void Person::removeStage ( const std::string &  personID,
int  nextStageIndex 
)
static

◆ replaceStage()

void Person::replaceStage ( const std::string &  personID,
const int  stageIndex,
const libsumo::TraCIStage stage 
)
static

◆ rerouteTraveltime()

◆ setSpeed()

void Person::setSpeed ( const std::string &  personID,
double  speed 
)
static

Definition at line 491 of file libsumo/Person.cpp.

◆ setType()

void Person::setType ( const std::string &  personID,
const std::string &  typeID 
)
static

◆ splitTaxiReservation()

std::string Person::splitTaxiReservation ( std::string  reservationID,
const std::vector< std::string > &  personIDs 
)
static

◆ storeShape()

void Person::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the poi to retrieve
shapeThe container to fill

Definition at line 1185 of file libsumo/Person.cpp.

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Person::myContextSubscriptionResults
staticprivate

Definition at line 116 of file Person.h.

◆ mySubscriptionResults

SubscriptionResults Person::mySubscriptionResults
staticprivate

Definition at line 115 of file Person.h.


The documentation for this class was generated from the following files: