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,
78 const std::string& basePath);
Builds detectors for microsim.
void init(NLDetectorBuilder &nb)
Initialises the tls with information about incoming lanes.
bool mySplitByType
Whether detector output separates by vType.
std::string myFile
The output file for generated detectors.
A fixed traffic light logic.
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.
std::map< MSLane *, MSDetectorFileOutput * > InductLoopMap
Definition of a map from lanes to induct loops lying on them.
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, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meter, const std::string &basePath)
Constructor.
SUMOTime myFreq
The frequency for aggregating detector output.
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.