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