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

Scope for interaction with vehicles. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::PersonScope:
[legend]
Collaboration diagram for TraCIAPI::PersonScope:
[legend]

Public Member Functions

void add (const std::string &personID, const std::string &edgeID, double pos, double depart=libsumo::DEPARTFLAG_NOW, const std::string typeID="DEFAULT_PEDTYPE")
 
void appendDrivingStage (const std::string &personID, const std::string &toEdge, const std::string &lines, const std::string &stopID="")
 
void appendStage (const std::string &personID, const libsumo::TraCIStage &stage)
 
void appendWaitingStage (const std::string &personID, double duration, const std::string &description="waiting", const std::string &stopID="")
 
void appendWalkingStage (const std::string &personID, const std::vector< std::string > &edges, double arrivalPos, double duration=-1, double speed=-1, const std::string &stopID="")
 
void clearSubscriptionResults ()
 
const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults () const
 
const libsumo::SubscriptionResults getAllSubscriptionResults () const
 
double getAngle (const std::string &personID) const
 
libsumo::TraCIColor getColor (const std::string &personID) const
 
const libsumo::SubscriptionResults getContextSubscriptionResults (const std::string &objID) const
 
std::vector< std::string > getEdges (const std::string &personID, int nextStageIndex=0) const
 
int getIDCount () const
 
std::vector< std::string > getIDList () const
 
std::string getLaneID (const std::string &personID) const
 
double getLanePosition (const std::string &personID) const
 
libsumo::SubscriptionResultsgetModifiableContextSubscriptionResults (const std::string &objID)
 
libsumo::SubscriptionResultsgetModifiableSubscriptionResults ()
 
std::string getNextEdge (const std::string &personID) const
 
std::string getParameter (const std::string &objectID, const std::string &key) const
 retrieve generic parameter More...
 
std::pair< std::string, std::string > getParameterWithKey (const std::string &objectID, const std::string &key) const
 retrieve generic parameter and return (key, value) tuple More...
 
libsumo::TraCIPosition getPosition (const std::string &personID) const
 
libsumo::TraCIPosition getPosition3D (const std::string &personID) const
 
int getRemainingStages (const std::string &personID) const
 
std::string getRoadID (const std::string &personID) const
 
double getSlope (const std::string &personID) const
 
double getSpeed (const std::string &personID) const
 
double getSpeedFactor (const std::string &personID) const
 
libsumo::TraCIStage getStage (const std::string &personID, int nextStageIndex=0) const
 
const libsumo::TraCIResults getSubscriptionResults (const std::string &objID) const
 
std::string getTypeID (const std::string &personID) const
 
std::string getVehicle (const std::string &personID) const
 
double getWaitingTime (const std::string &personID) const
 
void moveTo (const std::string &personID, const std::string &edgeID, double position) const
 
void moveToXY (const std::string &personID, const std::string &edgeID, const double x, const double y, double angle, const int keepRoute) const
 
 PersonScope (TraCIAPI &parent)
 
void removeStage (const std::string &personID, int nextStageIndex) const
 
void removeStages (const std::string &personID) const
 
void rerouteTraveltime (const std::string &personID) const
 
void setColor (const std::string &personID, const libsumo::TraCIColor &c) const
 
void setHeight (const std::string &personID, double height) const
 
void setLength (const std::string &personID, double length) const
 
void setMinGap (const std::string &personID, double minGap) const
 
void setParameter (const std::string &objectID, const std::string &key, const std::string &value) const
 set generic paramter More...
 
void setSpeed (const std::string &personID, double speed) const
 
void setSpeedFactor (const std::string &personID, double factor) const
 
void setType (const std::string &personID, const std::string &typeID) const
 
void setWidth (const std::string &personID, double width) const
 
void subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const
 
void subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const
 
virtual ~PersonScope ()
 
vehicle type value retrieval shortcuts
double getLength (const std::string &personID) const
 

Protected Member Functions

int getByte (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIColor getCol (int var, const std::string &id, tcpip::Storage *add=0) const
 
double getDouble (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::vector< double > getDoubleVector (int var, const std::string &id, tcpip::Storage *add=0) const
 
int getInt (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPositionVector getPolygon (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPosition getPos (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPosition getPos3D (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::string getString (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::vector< std::string > getStringVector (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIStage getTraCIStage (int var, const std::string &id, tcpip::Storage *add=0) const
 
int getUnsignedByte (int var, const std::string &id, tcpip::Storage *add=0) const
 
void setDouble (int var, const std::string &id, double value) const
 
void setInt (int var, const std::string &id, int value) const
 
void setString (int var, const std::string &id, const std::string &value) const
 
void setStringVector (int var, const std::string &id, const std::vector< std::string > &value) const
 

Protected Attributes

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

Private Attributes

int myCmdGetID
 
int myCmdSetID
 
int myContextSubscribeID
 
libsumo::ContextSubscriptionResults myContextSubscriptionResults
 
int mySubscribeID
 
libsumo::SubscriptionResults mySubscriptionResults
 

Detailed Description

Scope for interaction with vehicles.

Definition at line 776 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ PersonScope()

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

Definition at line 778 of file TraCIAPI.h.

◆ ~PersonScope()

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

Definition at line 779 of file TraCIAPI.h.

Member Function Documentation

◆ add()

void TraCIAPI::PersonScope::add ( const std::string &  personID,
const std::string &  edgeID,
double  pos,
double  depart = libsumo::DEPARTFLAG_NOW,
const std::string  typeID = "DEFAULT_PEDTYPE" 
)

Definition at line 3322 of file TraCIAPI.cpp.

References libsumo::ADD, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ appendDrivingStage()

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

Definition at line 3413 of file TraCIAPI.cpp.

References libsumo::APPEND_STAGE, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::STAGE_DRIVING, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ appendStage()

◆ appendWaitingStage()

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

Definition at line 3375 of file TraCIAPI.cpp.

References libsumo::APPEND_STAGE, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::STAGE_WAITING, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ appendWalkingStage()

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

◆ clearSubscriptionResults()

void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults ( )
inherited

Definition at line 3894 of file TraCIAPI.cpp.

◆ getAllContextSubscriptionResults()

const libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllContextSubscriptionResults ( ) const
inherited

Definition at line 3878 of file TraCIAPI.cpp.

◆ getAllSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllSubscriptionResults ( ) const
inherited

Definition at line 3862 of file TraCIAPI.cpp.

◆ getAngle()

double TraCIAPI::PersonScope::getAngle ( const std::string &  personID) const

Definition at line 3220 of file TraCIAPI.cpp.

References libsumo::VAR_ANGLE.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getByte()

int TraCIAPI::TraCIScopeWrapper::getByte ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3564 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_BYTE.

◆ getCol()

libsumo::TraCIColor TraCIAPI::TraCIScopeWrapper::getCol ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getColor()

libsumo::TraCIColor TraCIAPI::PersonScope::getColor ( const std::string &  personID) const

Definition at line 3235 of file TraCIAPI.cpp.

References libsumo::VAR_COLOR.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getContextSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getContextSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3884 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getDouble()

double TraCIAPI::TraCIScopeWrapper::getDouble ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3585 of file TraCIAPI.cpp.

References libsumo::INVALID_DOUBLE_VALUE, and libsumo::TYPE_DOUBLE.

Referenced by TraCIAPI::EdgeScope::getAdaptedTraveltime().

Here is the caller graph for this function:

◆ getDoubleVector()

std::vector< double > TraCIAPI::TraCIScopeWrapper::getDoubleVector ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3666 of file TraCIAPI.cpp.

References libsumo::TYPE_DOUBLELIST.

◆ getEdges()

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

Definition at line 3294 of file TraCIAPI.cpp.

References libsumo::TYPE_INTEGER, libsumo::VAR_EDGES, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getIDCount()

int TraCIAPI::TraCIScopeWrapper::getIDCount ( ) const
inherited

Definition at line 3749 of file TraCIAPI.cpp.

References libsumo::ID_COUNT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getIDList()

std::vector< std::string > TraCIAPI::TraCIScopeWrapper::getIDList ( ) const
inherited

Definition at line 3743 of file TraCIAPI.cpp.

References libsumo::TRACI_ID_LIST.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getInt()

int TraCIAPI::TraCIScopeWrapper::getInt ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3575 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_INTEGER.

◆ getLaneID()

std::string TraCIAPI::PersonScope::getLaneID ( const std::string &  personID) const

Definition at line 3250 of file TraCIAPI.cpp.

References libsumo::VAR_LANE_ID.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getLanePosition()

double TraCIAPI::PersonScope::getLanePosition ( const std::string &  personID) const

Definition at line 3230 of file TraCIAPI.cpp.

References libsumo::VAR_LANEPOSITION.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getLength()

double TraCIAPI::PersonScope::getLength ( const std::string &  personID) const

Definition at line 3240 of file TraCIAPI.cpp.

References libsumo::VAR_LENGTH.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getModifiableContextSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableContextSubscriptionResults ( const std::string &  objID)
inherited

Definition at line 3907 of file TraCIAPI.cpp.

◆ getModifiableSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableSubscriptionResults ( )
inherited

Definition at line 3901 of file TraCIAPI.cpp.

◆ getNextEdge()

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

Definition at line 3270 of file TraCIAPI.cpp.

References libsumo::VAR_NEXT_EDGE.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getParameter()

std::string TraCIAPI::TraCIScopeWrapper::getParameter ( const std::string &  objectID,
const std::string &  key 
) const
inherited

retrieve generic parameter

Definition at line 3755 of file TraCIAPI.cpp.

References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getParameterWithKey()

std::pair< std::string, std::string > TraCIAPI::TraCIScopeWrapper::getParameterWithKey ( const std::string &  objectID,
const std::string &  key 
) const
inherited

retrieve generic parameter and return (key, value) tuple

Definition at line 3764 of file TraCIAPI.cpp.

References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getPolygon()

libsumo::TraCIPositionVector TraCIAPI::TraCIScopeWrapper::getPolygon ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getPos()

libsumo::TraCIPosition TraCIAPI::TraCIScopeWrapper::getPos ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getPos3D()

libsumo::TraCIPosition TraCIAPI::TraCIScopeWrapper::getPos3D ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getPosition()

libsumo::TraCIPosition TraCIAPI::PersonScope::getPosition ( const std::string &  personID) const

Definition at line 3210 of file TraCIAPI.cpp.

References libsumo::VAR_POSITION.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getPosition3D()

libsumo::TraCIPosition TraCIAPI::PersonScope::getPosition3D ( const std::string &  personID) const

Definition at line 3215 of file TraCIAPI.cpp.

References libsumo::VAR_POSITION3D.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getRemainingStages()

int TraCIAPI::PersonScope::getRemainingStages ( const std::string &  personID) const

Definition at line 3281 of file TraCIAPI.cpp.

References libsumo::VAR_STAGES_REMAINING.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getRoadID()

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

Definition at line 3245 of file TraCIAPI.cpp.

References libsumo::VAR_ROAD_ID.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getSlope()

double TraCIAPI::PersonScope::getSlope ( const std::string &  personID) const

Definition at line 3225 of file TraCIAPI.cpp.

References libsumo::VAR_SLOPE.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getSpeed()

double TraCIAPI::PersonScope::getSpeed ( const std::string &  personID) const

Definition at line 3205 of file TraCIAPI.cpp.

References libsumo::VAR_SPEED.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getSpeedFactor()

double TraCIAPI::PersonScope::getSpeedFactor ( const std::string &  personID) const

Definition at line 3260 of file TraCIAPI.cpp.

References libsumo::VAR_SPEED_FACTOR.

◆ getStage()

libsumo::TraCIStage TraCIAPI::PersonScope::getStage ( const std::string &  personID,
int  nextStageIndex = 0 
) const

Definition at line 3286 of file TraCIAPI.cpp.

References libsumo::TYPE_INTEGER, libsumo::VAR_STAGE, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getString()

std::string TraCIAPI::TraCIScopeWrapper::getString ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3642 of file TraCIAPI.cpp.

References libsumo::TYPE_STRING.

◆ getStringVector()

std::vector< std::string > TraCIAPI::TraCIScopeWrapper::getStringVector ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3652 of file TraCIAPI.cpp.

References libsumo::TYPE_STRINGLIST.

◆ getSubscriptionResults()

const libsumo::TraCIResults TraCIAPI::TraCIScopeWrapper::getSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3868 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getTraCIStage()

◆ getTypeID()

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

Definition at line 3255 of file TraCIAPI.cpp.

References libsumo::VAR_TYPE.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getUnsignedByte()

int TraCIAPI::TraCIScopeWrapper::getUnsignedByte ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3554 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_UBYTE.

◆ getVehicle()

std::string TraCIAPI::PersonScope::getVehicle ( const std::string &  personID) const

Definition at line 3276 of file TraCIAPI.cpp.

References libsumo::VAR_VEHICLE.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getWaitingTime()

double TraCIAPI::PersonScope::getWaitingTime ( const std::string &  personID) const

Definition at line 3265 of file TraCIAPI.cpp.

References libsumo::VAR_WAITING_TIME.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ moveTo()

void TraCIAPI::PersonScope::moveTo ( const std::string &  personID,
const std::string &  edgeID,
double  position 
) const

◆ moveToXY()

void TraCIAPI::PersonScope::moveToXY ( const std::string &  personID,
const std::string &  edgeID,
const double  x,
const double  y,
double  angle,
const int  keepRoute 
) const

◆ removeStage()

void TraCIAPI::PersonScope::removeStage ( const std::string &  personID,
int  nextStageIndex 
) const

Definition at line 3430 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::REMOVE_STAGE, libsumo::TYPE_INTEGER, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ removeStages()

void TraCIAPI::PersonScope::removeStages ( const std::string &  personID) const

Definition at line 3302 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ rerouteTraveltime()

void TraCIAPI::PersonScope::rerouteTraveltime ( const std::string &  personID) const

Definition at line 3312 of file TraCIAPI.cpp.

References libsumo::CMD_REROUTE_TRAVELTIME, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setColor()

void TraCIAPI::PersonScope::setColor ( const std::string &  personID,
const libsumo::TraCIColor c 
) const

Definition at line 3537 of file TraCIAPI.cpp.

References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TraCIColor::g, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setDouble()

void TraCIAPI::TraCIScopeWrapper::setDouble ( int  var,
const std::string &  id,
double  value 
) const
protectedinherited

◆ setHeight()

void TraCIAPI::PersonScope::setHeight ( const std::string &  personID,
double  height 
) const

Definition at line 3518 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_HEIGHT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setInt()

void TraCIAPI::TraCIScopeWrapper::setInt ( int  var,
const std::string &  id,
int  value 
) const
protectedinherited

◆ setLength()

void TraCIAPI::PersonScope::setLength ( const std::string &  personID,
double  length 
) const

Definition at line 3499 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_LENGTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setMinGap()

void TraCIAPI::PersonScope::setMinGap ( const std::string &  personID,
double  minGap 
) const

Definition at line 3527 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_MINGAP, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setParameter()

void TraCIAPI::TraCIScopeWrapper::setParameter ( const std::string &  objectID,
const std::string &  key,
const std::string &  value 
) const
inherited

set generic paramter

Definition at line 3783 of file TraCIAPI.cpp.

References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setSpeed()

void TraCIAPI::PersonScope::setSpeed ( const std::string &  personID,
double  speed 
) const

Definition at line 3471 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setSpeedFactor()

void TraCIAPI::PersonScope::setSpeedFactor ( const std::string &  personID,
double  factor 
) const

◆ setString()

void TraCIAPI::TraCIScopeWrapper::setString ( int  var,
const std::string &  id,
const std::string &  value 
) const
protectedinherited

◆ setStringVector()

void TraCIAPI::TraCIScopeWrapper::setStringVector ( int  var,
const std::string &  id,
const std::vector< std::string > &  value 
) const
protectedinherited

◆ setType()

void TraCIAPI::PersonScope::setType ( const std::string &  personID,
const std::string &  typeID 
) const

Definition at line 3481 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setWidth()

void TraCIAPI::PersonScope::setWidth ( const std::string &  personID,
double  width 
) const

Definition at line 3509 of file TraCIAPI.cpp.

References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_WIDTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ subscribe()

void TraCIAPI::TraCIScopeWrapper::subscribe ( const std::string &  objID,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3840 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ subscribeContext()

void TraCIAPI::TraCIScopeWrapper::subscribeContext ( const std::string &  objID,
int  domain,
double  range,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3852 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

Field Documentation

◆ myCmdGetID

int TraCIAPI::TraCIScopeWrapper::myCmdGetID
privateinherited

Definition at line 154 of file TraCIAPI.h.

◆ myCmdSetID

int TraCIAPI::TraCIScopeWrapper::myCmdSetID
privateinherited

Definition at line 155 of file TraCIAPI.h.

◆ myContextSubscribeID

int TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
privateinherited

Definition at line 157 of file TraCIAPI.h.

◆ myContextSubscriptionResults

libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::myContextSubscriptionResults
privateinherited

Definition at line 159 of file TraCIAPI.h.

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 151 of file TraCIAPI.h.

◆ mySubscribeID

int TraCIAPI::TraCIScopeWrapper::mySubscribeID
privateinherited

Definition at line 156 of file TraCIAPI.h.

◆ mySubscriptionResults

libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::mySubscriptionResults
privateinherited

Definition at line 158 of file TraCIAPI.h.


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