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