 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
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,
A self-organizing traffic light logic.
Class for a low-level policy.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
A self-organizing high-level traffic light logic.
~MSSOTLHiLevelTrafficLightLogic()
virtual void decidePolicy()=0
MSSOTLPolicy * getCurrentPolicy()
Returns the low-level policy currently selected by this high-level tll.
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 * currentPolicy
std::vector< MSSOTLPolicy * > & getPolicies()
Returns the vector of the low-level policies used by this high-level tll.
void addPolicy(MSSOTLPolicy *policy)
A class that stores and controls tls and switching of their programs.
void init(NLDetectorBuilder &nb)
Initialises the tls.
Builds detectors for microsim.
void activate(MSSOTLPolicy *policy)
std::vector< MSSOTLPolicy * > policies