SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraCIAPI::TrafficLightScope Class Reference

Scope for interaction with traffic lights. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::TrafficLightScope:
TraCIAPI::TraCIScopeWrapper

Public Member Functions

std::vector< TraCIAPI::TraCILogicgetCompleteRedYellowGreenDefinition (const std::string &tlsID) const
 
std::vector< std::string > getControlledLanes (const std::string &tlsID) const
 
std::vector< TraCIAPI::TraCILinkgetControlledLinks (const std::string &tlsID) const
 
std::vector< std::string > getIDList () const
 
unsigned int getNextSwitch (const std::string &tlsID) const
 
unsigned int getPhase (const std::string &tlsID) const
 
std::string getProgram (const std::string &tlsID) const
 
std::string getRedYellowGreenState (const std::string &tlsID) const
 
void setCompleteRedYellowGreenDefinition (const std::string &tlsID, const TraCIAPI::TraCILogic &logic) const
 
void setPhase (const std::string &tlsID, unsigned int index) const
 
void setPhaseDuration (const std::string &tlsID, unsigned int phaseDuration) const
 
void setProgram (const std::string &tlsID, const std::string &programID) const
 
void setRedYellowGreenState (const std::string &tlsID, const std::string &state) const
 
 TrafficLightScope (TraCIAPI &parent)
 
virtual ~TrafficLightScope ()
 

Protected Attributes

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

Private Member Functions

TrafficLightScopeoperator= (const TrafficLightScope &src)
 invalidated assignment operator More...
 
 TrafficLightScope (const TrafficLightScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with traffic lights.

Definition at line 563 of file TraCIAPI.h.

Constructor & Destructor Documentation

TraCIAPI::TrafficLightScope::TrafficLightScope ( TraCIAPI parent)
inline

Definition at line 565 of file TraCIAPI.h.

virtual TraCIAPI::TrafficLightScope::~TrafficLightScope ( )
inlinevirtual

Definition at line 566 of file TraCIAPI.h.

TraCIAPI::TrafficLightScope::TrafficLightScope ( const TrafficLightScope src)
private

invalidated copy constructor

Member Function Documentation

std::vector< TraCIAPI::TraCILogic > TraCIAPI::TrafficLightScope::getCompleteRedYellowGreenDefinition ( const std::string &  tlsID) const
std::vector< std::string > TraCIAPI::TrafficLightScope::getControlledLanes ( const std::string &  tlsID) const

Definition at line 1229 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CONTROLLED_LANES.

std::vector< TraCIAPI::TraCILink > TraCIAPI::TrafficLightScope::getControlledLinks ( const std::string &  tlsID) const
std::vector< std::string > TraCIAPI::TrafficLightScope::getIDList ( ) const

Definition at line 1184 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and ID_LIST.

unsigned int TraCIAPI::TrafficLightScope::getNextSwitch ( const std::string &  tlsID) const

Definition at line 1263 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_NEXT_SWITCH.

unsigned int TraCIAPI::TrafficLightScope::getPhase ( const std::string &  tlsID) const

Definition at line 1258 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CURRENT_PHASE.

std::string TraCIAPI::TrafficLightScope::getProgram ( const std::string &  tlsID) const

Definition at line 1253 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CURRENT_PROGRAM.

std::string TraCIAPI::TrafficLightScope::getRedYellowGreenState ( const std::string &  tlsID) const

Definition at line 1189 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_RED_YELLOW_GREEN_STATE.

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

invalidated assignment operator

void TraCIAPI::TrafficLightScope::setPhase ( const std::string &  tlsID,
unsigned int  index 
) const
void TraCIAPI::TrafficLightScope::setPhaseDuration ( const std::string &  tlsID,
unsigned int  phaseDuration 
) const
void TraCIAPI::TrafficLightScope::setProgram ( const std::string &  tlsID,
const std::string &  programID 
) const
void TraCIAPI::TrafficLightScope::setRedYellowGreenState ( const std::string &  tlsID,
const std::string &  state 
) const

Field Documentation

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 190 of file TraCIAPI.h.

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


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