56 const std::string&
id,
const std::string& programID,
59 const std::map<std::string, std::string>& parameters);
73 const std::string&
id,
const std::string& programID,
76 const std::map<std::string, std::string>& parameters,
A self-organizing high-level traffic light logic.
std::vector< MSSOTLPolicy * > policies
MSSOTLHiLevelTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const TrafficLightType logicType, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meters)
Constructor without sensors passed.
MSSOTLPolicy * getCurrentPolicy()
Returns the low-level policy currently selected by this high-level tll.
void addPolicy(MSSOTLPolicy *policy)
~MSSOTLHiLevelTrafficLightLogic()
void activate(MSSOTLPolicy *policy)
virtual void decidePolicy()=0
std::vector< MSSOTLPolicy * > & getPolicies()
Returns the vector of the low-level policies used by this high-level tll.
MSSOTLPolicy * currentPolicy
void init(NLDetectorBuilder &nb)
Initialises the tls.
Class for a low-level policy.
A self-organizing traffic light logic.
A class that stores and controls tls and switching of their programs.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Builds detectors for microsim.