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

Scope for interaction with traffic lights. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::TrafficLightScope:
Inheritance graph
Collaboration diagram for TraCIAPI::TrafficLightScope:
Collaboration graph

Public Member Functions

std::vector< TraCILogicgetCompleteRedYellowGreenDefinition (const std::string &tlsID) const
 
std::vector< std::string > getControlledLanes (const std::string &tlsID) const
 
std::vector< TraCILinkgetControlledLinks (const std::string &tlsID) const
 
std::vector< std::string > getIDList () const
 
int getNextSwitch (const std::string &tlsID) const
 
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 TraCILogic &logic) const
 
void setPhase (const std::string &tlsID, int index) const
 
void setPhaseDuration (const std::string &tlsID, 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 518 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ TrafficLightScope() [1/2]

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

Definition at line 520 of file TraCIAPI.h.

◆ ~TrafficLightScope()

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

Definition at line 521 of file TraCIAPI.h.

References TraCIAPI::TraCIScopeWrapper::operator=().

◆ TrafficLightScope() [2/2]

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

invalidated copy constructor

Member Function Documentation

◆ getCompleteRedYellowGreenDefinition()

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

◆ getControlledLanes()

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

Definition at line 1536 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CONTROLLED_LANES.

Referenced by TraCITestClient::testAPI().

◆ getControlledLinks()

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

◆ getIDList()

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

Definition at line 1487 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and ID_LIST.

Referenced by TraCITestClient::testAPI().

◆ getNextSwitch()

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

Definition at line 1579 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_NEXT_SWITCH.

Referenced by TraCITestClient::testAPI().

◆ getPhase()

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

Definition at line 1574 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CURRENT_PHASE.

Referenced by TraCITestClient::testAPI().

◆ getProgram()

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

Definition at line 1569 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_CURRENT_PROGRAM.

Referenced by TraCITestClient::testAPI().

◆ getRedYellowGreenState()

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

Definition at line 1492 of file TraCIAPI.cpp.

References CMD_GET_TL_VARIABLE, and TL_RED_YELLOW_GREEN_STATE.

Referenced by TraCITestClient::testAPI().

◆ operator=()

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

invalidated assignment operator

◆ setCompleteRedYellowGreenDefinition()

void TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition ( const std::string &  tlsID,
const TraCILogic logic 
) const

◆ setPhase()

void TraCIAPI::TrafficLightScope::setPhase ( const std::string &  tlsID,
int  index 
) const

◆ setPhaseDuration()

void TraCIAPI::TrafficLightScope::setPhaseDuration ( const std::string &  tlsID,
int  phaseDuration 
) const

◆ setProgram()

void TraCIAPI::TrafficLightScope::setProgram ( const std::string &  tlsID,
const std::string &  programID 
) const

◆ setRedYellowGreenState()

void TraCIAPI::TrafficLightScope::setRedYellowGreenState ( const std::string &  tlsID,
const std::string &  state 
) const

Field Documentation

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 131 of file TraCIAPI.h.


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