 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef TrafficLight_h
19 #define TrafficLight_h
41 class VariableWrapper;
56 static std::vector<std::string>
getIDList();
62 static std::vector<std::vector<TraCILink> >
getControlledLinks(
const std::string& tlsID);
63 static std::string
getProgram(
const std::string& tlsID);
64 static int getPhase(
const std::string& tlsID);
65 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();
static std::vector< std::vector< TraCILink > > getControlledLinks(const std::string &tlsID)
static void setParameter(const std::string &tlsID, const std::string ¶mName, const std::string &value)
#define LIBSUMO_SUBSCRIPTION_API
static void setProgram(const std::string &tlsID, const std::string &programID)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static std::vector< std::string > getControlledLanes(const std::string &tlsID)
static void setPhase(const std::string &tlsID, const int index)
static void setCompleteRedYellowGreenDefinition(const std::string &tlsID, const TraCILogic &logic)
static double getPhaseDuration(const std::string &tlsID)
static SubscriptionResults mySubscriptionResults
static std::string getRedYellowGreenState(const std::string &tlsID)
static void setRedYellowGreenState(const std::string &tlsID, const std::string &state)
static std::vector< std::string > getIDList()
static std::string getProgram(const std::string &tlsID)
static void setPhaseDuration(const std::string &tlsID, const double phaseDuration)
static std::vector< std::string > getControlledJunctions(const std::string &tlsID)
static MSTLLogicControl::TLSLogicVariants & getTLS(const std::string &id)
static void setPhaseName(const std::string &tlsID, const std::string &name)
static ContextSubscriptionResults myContextSubscriptionResults
static std::string getParameter(const std::string &tlsID, const std::string ¶mName)
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static int getServedPersonCount(const std::string &tlsID, int index)
static int getPhase(const std::string &tlsID)
TrafficLight()=delete
invalidated standard constructor
Storage for all programs of a single tls.
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
static double getNextSwitch(const std::string &tlsID)
static std::vector< TraCILogic > getCompleteRedYellowGreenDefinition(const std::string &tlsID)
static std::string getPhaseName(const std::string &tlsID)