19 #ifndef TrafficLight_h 20 #define TrafficLight_h 42 class VariableWrapper;
57 static std::vector<std::string>
getIDList();
63 static std::vector<std::vector<TraCILink> >
getControlledLinks(
const std::string& tlsID);
64 static std::string
getProgram(
const std::string& tlsID);
65 static int getPhase(
const std::string& tlsID);
66 static std::string
getPhaseName(
const std::string& tlsID);
69 static std::string
getParameter(
const std::string& tlsID,
const std::string& paramName);
72 static void setPhase(
const std::string& tlsID,
const int index);
73 static void setPhaseName(
const std::string& tlsID,
const std::string& name);
74 static void setProgram(
const std::string& tlsID,
const std::string& programID);
75 static void setPhaseDuration(
const std::string& tlsID,
const double phaseDuration);
77 static void setParameter(
const std::string& tlsID,
const std::string& paramName,
const std::string& value);
81 static std::shared_ptr<VariableWrapper>
makeWrapper();
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
static double getPhaseDuration(const std::string &tlsID)
static std::string getPhaseName(const std::string &tlsID)
#define LIBSUMO_SUBSCRIPTION_API
Storage for all programs of a single tls.
static void setPhaseDuration(const std::string &tlsID, const double phaseDuration)
static std::string getRedYellowGreenState(const std::string &tlsID)
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()
TrafficLight()=delete
invalidated standard constructor
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
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 double getNextSwitch(const std::string &tlsID)
static SubscriptionResults mySubscriptionResults
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
static std::vector< TraCILogic > getCompleteRedYellowGreenDefinition(const std::string &tlsID)
static void setPhase(const std::string &tlsID, const int index)
static void setPhaseName(const std::string &tlsID, const std::string &name)
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 ContextSubscriptionResults myContextSubscriptionResults
static std::vector< std::vector< TraCILink > > getControlledLinks(const std::string &tlsID)