22 #ifndef MSActuatedTrafficLightLogic_h
23 #define MSActuatedTrafficLightLogic_h
74 const std::string&
id,
const std::string& programID,
77 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.
SUMOReal myMaxGap
The maximum gap to check in seconds.
SUMOReal myPassingTime
The passing time used in seconds.
~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 in seconds.
SUMOTime duration(const SUMOReal detectionGap) const
Returns the minimum duration of the current phase.
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.
SUMOReal gapControl()
Return the minimum detection gap of all detectors if the current phase should be extended and SUMORea...
bool myShowDetectors
Whether the detectors shall be shown in the GUI.
SUMOTime trySwitch()
Switches to the next phase.