 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
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 MSSOTLWaveTrafficLightLogic ***");
38 const std::string& programID,
const Phases& phases,
int step,
39 SUMOTime delay,
const std::map<std::string, std::string>& parameters,
42 parameters, sensors) {
86 if (state[i] !=
'r') {
A self-organizing traffic light logic.
SUMOTime lastDuration
The previous duration of the phase.
Phases myPhases
The list of phases this logic uses.
MSSOTLWaveTrafficLightLogic(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.
const MSPhaseDefinition & getCurrentPhaseDef() const
Returns the definition of the current phase.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
int getPhaseNumber() const
Returns the number of phases.
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
virtual int countVehicles(MSLane *lane)=0
MSSOTLSensors * getSensors()
const std::string & getState() const
Returns the state within this phase.
int getCurrentPhaseIndex() const
Returns the current index within the program.
const LaneVectorVector & getLaneVectors() const
Returns the list of lists of all lanes controlled by this tls.
A class that stores and controls tls and switching of their programs.
const std::string & getID() const
Returns the id.
SUMOTime getCurrentPhaseElapsed()
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.