21 #ifndef TraCI_TrafficLight_h 22 #define TraCI_TrafficLight_h 53 static std::vector<std::string>
getIDList();
59 static std::vector<std::vector<TraCILink> >
getControlledLinks(
const std::string& tlsID);
60 static std::string
getProgram(
const std::string& tlsID);
61 static int getPhase(
const std::string& tlsID);
64 static std::string
getParameter(
const std::string& tlsID,
const std::string& paramName);
67 static void setPhase(
const std::string& tlsID,
const int index);
68 static void setProgram(
const std::string& tlsID,
const std::string& programID);
71 static void setParameter(
const std::string& tlsID,
const std::string& paramName,
const std::string& value);
Storage for all programs of a single tls.
static int getPhase(const std::string &tlsID)
static void setCompleteRedYellowGreenDefinition(const std::string &tlsID, const TraCILogic &logic)
static void setPhaseDuration(const std::string &tlsID, const SUMOTime phaseDuration)
static void setPhase(const std::string &tlsID, const int index)
TraCI_TrafficLight & operator=(const TraCI_TrafficLight &src)
invalidated assignment operator
static std::vector< std::string > getControlledJunctions(const std::string &tlsID)
static void setProgram(const std::string &tlsID, const std::string &programID)
TraCI_TrafficLight()
invalidated standard constructor
static MSTLLogicControl::TLSLogicVariants & getTLS(const std::string &id)
static SUMOTime getNextSwitch(const std::string &tlsID)
static std::vector< std::vector< TraCILink > > getControlledLinks(const std::string &tlsID)
static std::string getProgram(const std::string &tlsID)
C++ TraCI client API implementation.
static void setRedYellowGreenState(const std::string &tlsID, const std::string &state)
static std::string getRedYellowGreenState(const std::string &tlsID)
static std::vector< TraCILogic > getCompleteRedYellowGreenDefinition(const std::string &tlsID)
static std::string getParameter(const std::string &tlsID, const std::string ¶mName)
static std::vector< std::string > getControlledLanes(const std::string &tlsID)
static std::vector< std::string > getIDList()
static SUMOTime getPhaseDuration(const std::string &tlsID)
static void setParameter(const std::string &tlsID, const std::string ¶mName, const std::string &value)