21 #ifndef MSActuatedTrafficLightLogic_h
22 #define MSActuatedTrafficLightLogic_h
73 const std::string&
id,
const std::string& programID,
76 const std::map<std::string, std::string>& parameter);
Builds detectors for microsim.
void init(NLDetectorBuilder &nb)
Initialises the tls with information about incoming lanes.
A fixed traffic light logic.
std::map< MSLane *, MSInductLoop * > InductLoopMap
Definition of a map from lanes to induct loops lying on them.
An actuated (adaptive) traffic light logic.
A class that stores and controls tls and switching of their programs.
SUMOTime trySwitch(bool isActive)
Switches to the next phase.
SUMOReal myMaxGap
The maximum gap to check.
SUMOTime duration() const
Returns the duration of the given step.
SUMOReal myPassingTime
The passing time used.
~MSActuatedTrafficLightLogic()
Destructor.
InductLoopMap myInductLoops
A map from lanes to induct loops lying on them.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
SUMOReal myDetectorGap
The detector distance.
bool myContinue
information whether the current phase should be lenghtend
MSActuatedTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const MSSimpleTrafficLightLogic::Phases &phases, unsigned int step, SUMOTime delay, const std::map< std::string, std::string > ¶meter)
Constructor.
void gapControl()
Decides, whether a phase should be continued by checking the gaps of vehicles having green...