25 const std::string& programID,
const Phases& phases,
int step,
31 "*** Intersection " +
id
32 +
" will run using MSSOTLPhaseTrafficLightLogic ***");
37 const std::string& programID,
const Phases& phases,
int step,
41 parameters, sensors) {
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const Parameterised::Map ¶meters)
Constructor without sensors passed.
A self-organizing traffic light logic.
SUMOTime getCurrentPhaseElapsed()
const MSPhaseDefinition & getCurrentPhaseDef() const override
Returns the definition of the current phase.
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.
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.
std::map< std::string, std::string > Map
parameters map