25 const std::string& subid,
const Phases& phases,
int step,
27 const std::map<std::string, std::string>& parameters)
throw() :
31 "*** Intersection " +
id 32 +
" will run using MSSOTLPlatoonTrafficLightLogic ***");
37 const std::string& subid,
const Phases& phases,
int step,
38 SUMOTime delay,
const std::map<std::string, std::string>& parameters,
41 parameters, sensors) {
A class that stores and controls tls and switching of their programs.
MSSOTLPlatoonTrafficLightLogic(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.
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()
void inform(std::string msg, bool addType=true)
adds a new error to the list
const MSPhaseDefinition & getCurrentPhaseDef() const
Returns the definition of the current phase.
int countVehicles(MSPhaseDefinition phase)