22 const std::string& programID,
const Phases& phases,
int step,
24 const std::map<std::string, std::string>& parameters) :
28 "*** Intersection " +
id 29 +
" will run using MSSOTLPhaseTrafficLightLogic ***");
34 const std::string& programID,
const Phases& phases,
int step,
35 SUMOTime delay,
const std::map<std::string, std::string>& parameters,
38 parameters, sensors) {
A class that stores and controls tls and switching of their programs.
A self-organizing traffic light logic.
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
SUMOTime getCurrentPhaseElapsed()
const MSPhaseDefinition & getCurrentPhaseDef() const
Returns the definition of the current phase.
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meters)
Constructor without sensors passed.