19 #ifndef MSSOTLTrafficLightLogic_H 20 #define MSSOTLTrafficLightLogic_H 58 const std::string&
id,
const std::string& programID,
61 const std::map<std::string, std::string>& parameters);
75 const std::string&
id,
const std::string& programID,
78 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 &programID, const TrafficLightType logicType, 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)