57 const std::string&
id,
const std::string& programID,
62 const std::string& basePath);
An actuated traffic light logic based on time delay of approaching vehicles.
double myDetectionRange
Range of the connected detector, which provides the information on approaching vehicles.
bool myExtendMaxDur
Whether phases may be extended beyond maxDur in the absence of traffic.
bool showDetectors() const
void setShowDetectors(bool show)
std::string myVehicleTypes
Whether detector output separates by vType.
void init(NLDetectorBuilder &nb)
Initializes the tls with information about incoming lanes.
SUMOTime myFreq
The frequency for aggregating detector output.
std::map< const MSLane *, MSE2Collector * > myLaneDetectors
A map from lanes to the corresponding lane detectors.
bool myShowDetectors
Whether the detectors shall be shown in the GUI.
double myTimeLossThreshold
std::string myFile
The output file for generated detectors.
MSDelayBasedTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const SUMOTime offset, const MSSimpleTrafficLightLogic::Phases &phases, int step, SUMOTime delay, const Parameterised::Map ¶meter, const std::string &basePath)
Constructor.
SUMOTime proposeProlongation(const SUMOTime actDuration, const SUMOTime maxDuration, bool &othersEmpty)
The returned, proposed prolongation for the green phase is oriented on the largest estimated passing ...
~MSDelayBasedTrafficLightLogic()
Destructor.
SUMOTime trySwitch()
Switches to the next phase, if possible.
SUMOTime checkForWaitingTime()
Checks for approaching vehicles on the lanes associated with green signals and returns the minimal ti...
An areal detector corresponding to a sequence of consecutive lanes.
A fixed traffic light logic.
A class that stores and controls tls and switching of their programs.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Builds detectors for microsim.
std::map< std::string, std::string > Map
parameters map