SUMO - Simulation of Urban MObility
TraCIAPI::PersonScope Class Reference

Scope for interaction with vehicles. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::PersonScope:
Inheritance graph
Collaboration diagram for TraCIAPI::PersonScope:
Collaboration graph

Public Member Functions

int getIDCount () const
 
std::vector< std::string > getIDList () const
 
std::string getNextEdge (const std::string &typeID) const
 
TraCIPosition getPosition (const std::string &typeID) const
 
std::string getRoadID (const std::string &typeID) const
 
SUMOReal getSpeed (const std::string &typeID) const
 
std::string getTypeID (const std::string &typeID) const
 
SUMOReal getWaitingTime (const std::string &typeID) const
 
 PersonScope (TraCIAPI &parent)
 
virtual ~PersonScope ()
 

Protected Attributes

TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 

Private Member Functions

PersonScopeoperator= (const PersonScope &src)
 invalidated assignment operator More...
 
 PersonScope (const PersonScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with vehicles.

Definition at line 811 of file TraCIAPI.h.

Constructor & Destructor Documentation

§ PersonScope() [1/2]

TraCIAPI::PersonScope::PersonScope ( TraCIAPI parent)
inline

Definition at line 813 of file TraCIAPI.h.

§ ~PersonScope()

virtual TraCIAPI::PersonScope::~PersonScope ( )
inlinevirtual

Definition at line 814 of file TraCIAPI.h.

References TraCIAPI::getPosition(), and SUMOReal.

§ PersonScope() [2/2]

TraCIAPI::PersonScope::PersonScope ( const PersonScope src)
private

invalidated copy constructor

Member Function Documentation

§ getIDCount()

int TraCIAPI::PersonScope::getIDCount ( ) const

Definition at line 2151 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, ID_COUNT, and SUMOReal.

§ getIDList()

std::vector< std::string > TraCIAPI::PersonScope::getIDList ( ) const

Definition at line 2146 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and ID_LIST.

Referenced by TraCITestClient::testAPI().

§ getNextEdge()

std::string TraCIAPI::PersonScope::getNextEdge ( const std::string &  typeID) const

Definition at line 2181 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and VAR_NEXT_EDGE.

Referenced by TraCITestClient::testAPI().

§ getPosition()

TraCIAPI::TraCIPosition TraCIAPI::PersonScope::getPosition ( const std::string &  typeID) const

Definition at line 2161 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and VAR_POSITION.

§ getRoadID()

std::string TraCIAPI::PersonScope::getRoadID ( const std::string &  typeID) const

Definition at line 2166 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and VAR_ROAD_ID.

Referenced by TraCITestClient::testAPI().

§ getSpeed()

SUMOReal TraCIAPI::PersonScope::getSpeed ( const std::string &  typeID) const

Definition at line 2156 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and VAR_SPEED.

§ getTypeID()

std::string TraCIAPI::PersonScope::getTypeID ( const std::string &  typeID) const

Definition at line 2171 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, SUMOReal, and VAR_TYPE.

Referenced by TraCITestClient::testAPI().

§ getWaitingTime()

SUMOReal TraCIAPI::PersonScope::getWaitingTime ( const std::string &  typeID) const

Definition at line 2176 of file TraCIAPI.cpp.

References CMD_GET_PERSON_VARIABLE, and VAR_WAITING_TIME.

Referenced by TraCITestClient::testAPI().

§ operator=()

PersonScope& TraCIAPI::PersonScope::operator= ( const PersonScope src)
private

invalidated assignment operator

Field Documentation

§ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 208 of file TraCIAPI.h.


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