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.
std::string myFile
The output file for generated detectors.
SUMOTime duration(const double detectionGap) const
Returns the minimum duration of the current phase.
A fixed traffic light logic.
An actuated (adaptive) traffic light logic.
A class that stores and controls tls and switching of their programs.
std::string myVehicleTypes
Whether detector output separates by vType.
std::map< MSLane *, MSDetectorFileOutput * > InductLoopMap
Definition of a map from lanes to induct loops lying on them.
~MSActuatedTrafficLightLogic()
Destructor.
double myMaxGap
The maximum gap to check in seconds.
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.
double gapControl()
Return the minimum detection gap of all detectors if the current phase should be extended and double:...
double myDetectorGap
The detector distance in seconds.
double myPassingTime
The passing time used in seconds.
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.
bool myShowDetectors
Whether the detectors shall be shown in the GUI.
SUMOTime trySwitch()
Switches to the next phase.