21 #ifndef TrafficLight_h 22 #define TrafficLight_h 54 static std::vector<std::string>
getIDList();
60 static std::vector<std::vector<TraCILink> >
getControlledLinks(
const std::string& tlsID);
61 static std::string
getProgram(
const std::string& tlsID);
62 static int getPhase(
const std::string& tlsID);
65 static std::string
getParameter(
const std::string& tlsID,
const std::string& paramName);
68 static void setPhase(
const std::string& tlsID,
const int index);
69 static void setProgram(
const std::string& tlsID,
const std::string& programID);
72 static void setParameter(
const std::string& tlsID,
const std::string& paramName,
const std::string& value);
Storage for all programs of a single tls.
static std::string getRedYellowGreenState(const std::string &tlsID)
TrafficLight & operator=(const TrafficLight &src)
invalidated assignment operator
static std::vector< std::string > getControlledJunctions(const std::string &tlsID)
static void setParameter(const std::string &tlsID, const std::string ¶mName, const std::string &value)
static std::vector< std::string > getIDList()
static std::vector< std::string > getControlledLanes(const std::string &tlsID)
static void setRedYellowGreenState(const std::string &tlsID, const std::string &state)
static MSTLLogicControl::TLSLogicVariants & getTLS(const std::string &id)
static void setPhaseDuration(const std::string &tlsID, const SUMOTime phaseDuration)
static std::vector< TraCILogic > getCompleteRedYellowGreenDefinition(const std::string &tlsID)
static SUMOTime getNextSwitch(const std::string &tlsID)
TrafficLight()
invalidated standard constructor
static void setPhase(const std::string &tlsID, const int index)
static SUMOTime getPhaseDuration(const std::string &tlsID)
static void setCompleteRedYellowGreenDefinition(const std::string &tlsID, const TraCILogic &logic)
static void setProgram(const std::string &tlsID, const std::string &programID)
static std::string getProgram(const std::string &tlsID)
static int getPhase(const std::string &tlsID)
static std::string getParameter(const std::string &tlsID, const std::string ¶mName)
static std::vector< std::vector< TraCILink > > getControlledLinks(const std::string &tlsID)