SUMO - Simulation of Urban MObility
libsumo::Person Class Reference

#include <Person.h>

Collaboration diagram for libsumo::Person:
Collaboration graph

Static Public Member Functions

static 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 TraCIColor getColor (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 &param)
 
static TraCIPosition getPosition (const std::string &personID)
 
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 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 removeStages (const std::string &personID)
 
static void rerouteTraveltime (const std::string &personID)
 
static void setColor (const std::string &personID, const TraCIColor &c)
 
static void setHeight (const std::string &personID, double height)
 
static void setLength (const std::string &personID, double length)
 
static void setMinGap (const std::string &personID, double minGap)
 
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)
 
static void setWidth (const std::string &personID, double width)
 

Private Member Functions

Personoperator= (const Person &src)
 invalidated assignment operator More...
 
 Person ()
 invalidated standard constructor More...
 
 Person (const Person &src)
 invalidated copy constructor More...
 

Static Private Member Functions

static MSPersongetPerson (const std::string &id)
 
static std::string getSingularVType (const std::string &personID)
 

Friends

bool TraCIServerAPI_Person::processSet (TraCIServer &, tcpip::Storage &, tcpip::Storage &)
 

Detailed Description

Definition at line 50 of file Person.h.

Constructor & Destructor Documentation

◆ Person() [1/2]

libsumo::Person::Person ( )
private

invalidated standard constructor

◆ Person() [2/2]

libsumo::Person::Person ( const Person src)
private

invalidated copy constructor

Member Function Documentation

◆ add()

◆ appendDrivingStage()

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

◆ appendWaitingStage()

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

◆ appendWalkingStage()

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

◆ getAngle()

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

Definition at line 80 of file Person.cpp.

References getPerson(), and GeomHelper::naviDegree().

Referenced by TraCIServerAPI_Person::processGet().

◆ getColor()

◆ getEdges()

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

◆ getIDCount()

int libsumo::Person::getIDCount ( )
static

◆ getIDList()

std::vector< std::string > libsumo::Person::getIDList ( )
static

◆ getLanePosition()

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

Definition at line 98 of file Person.cpp.

References MSTransportable::getEdgePos(), and getPerson().

Referenced by TraCIServerAPI_Person::processGet().

◆ getNextEdge()

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

Definition at line 128 of file Person.cpp.

References MSPerson::getNextEdge(), and getPerson().

Referenced by TraCIServerAPI_Person::processGet().

◆ getParameter()

std::string libsumo::Person::getParameter ( const std::string &  routeID,
const std::string &  param 
)
static

◆ getPerson()

◆ getPosition()

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

◆ getRemainingStages()

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

Definition at line 164 of file Person.cpp.

References MSTransportable::getNumRemainingStages(), and getPerson().

Referenced by TraCIServerAPI_Person::processGet().

◆ getRoadID()

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

Definition at line 92 of file Person.cpp.

References MSTransportable::getEdge(), Named::getID(), and getPerson().

Referenced by TraCIServerAPI_Person::processGet().

◆ getSingularVType()

std::string libsumo::Person::getSingularVType ( const std::string &  personID)
staticprivate

◆ getSpeed()

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

Definition at line 86 of file Person.cpp.

References getPerson(), and MSTransportable::getSpeed().

Referenced by TraCIServerAPI_Person::processGet().

◆ getStage()

int libsumo::Person::getStage ( const std::string &  personID,
int  nextStageIndex = 0 
)
static

◆ getTypeID()

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

◆ getVehicle()

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

◆ getWaitingTime()

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

Definition at line 122 of file Person.cpp.

References getPerson(), and MSTransportable::getWaitingSeconds().

Referenced by TraCIServerAPI_Person::processGet().

◆ moveTo()

void libsumo::Person::moveTo ( const std::string &  personID,
const std::string &  edgeID,
double  position 
)
static

◆ moveToXY()

◆ operator=()

Person& libsumo::Person::operator= ( const Person src)
private

invalidated assignment operator

◆ removeStage()

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

◆ removeStages()

static void libsumo::Person::removeStages ( const std::string &  personID)
static

◆ rerouteTraveltime()

◆ setColor()

void libsumo::Person::setColor ( const std::string &  personID,
const TraCIColor c 
)
static

◆ setHeight()

void libsumo::Person::setHeight ( const std::string &  personID,
double  height 
)
static

◆ setLength()

void libsumo::Person::setLength ( const std::string &  personID,
double  length 
)
static

◆ setMinGap()

void libsumo::Person::setMinGap ( const std::string &  personID,
double  minGap 
)
static

◆ setParameter()

void libsumo::Person::setParameter ( const std::string &  personID,
const std::string &  key,
const std::string &  value 
)
static

untested setter functions which alter the person's vtype

Definition at line 529 of file Person.cpp.

References MSTransportable::getParameter(), and getPerson().

Referenced by TraCIServerAPI_Person::processSet().

◆ setSpeed()

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

Definition at line 189 of file Person.cpp.

References getPerson(), and MSTransportable::setSpeed().

Referenced by TraCIServerAPI_Person::processSet().

◆ setType()

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

◆ setWidth()

void libsumo::Person::setWidth ( const std::string &  personID,
double  width 
)
static

Friends And Related Function Documentation

◆ TraCIServerAPI_Person::processSet


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