19 #ifndef MSDelayBasedTrafficLightLogic_h 20 #define MSDelayBasedTrafficLightLogic_h 70 const std::string&
id,
const std::string& programID,
73 const std::map<std::string, std::string>& parameter,
74 const std::string& basePath);
~MSDelayBasedTrafficLightLogic()
Destructor.
Builds detectors for microsim.
An actuated traffic light logic based on time delay of approaching vehicles.
double myTimeLossThreshold
SUMOTime checkForWaitingTime()
Checks for approaching vehicles on the lanes associated with green signals and returns the minimal ti...
SUMOTime trySwitch()
Switches to the next phase, if possible.
A fixed traffic light logic.
std::map< MSLane *, MSDetectorFileOutput * > LaneDetectorMap
Definition of a map from lanes to corresponding areal detectors.
A class that stores and controls tls and switching of their programs.
MSDelayBasedTrafficLightLogic(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.
std::string myFile
The output file for generated detectors.
LaneDetectorMap myLaneDetectors
A map from lanes to the corresponding lane detectors.
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 ...
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
std::string myVehicleTypes
Whether detector output separates by vType.
void init(NLDetectorBuilder &nb)
Initializes the tls with information about incoming lanes.
bool myShowDetectors
Whether the detectors shall be shown in the GUI.
SUMOTime myFreq
The frequency for aggregating detector output.
double myDetectionRange
Range of the connected detector, which provides the information on approaching vehicles.