19 #ifndef MSActuatedTrafficLightLogic_h 20 #define MSActuatedTrafficLightLogic_h 67 const std::string&
id,
const std::string& programID,
70 const std::map<std::string, std::string>& parameter,
71 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.
void setShowDetectors(bool show)
SUMOTime duration(const double detectionGap) const
Returns the minimum duration of the current phase.
A fixed traffic light logic.
InductLoopMap myInductLoopsForPhase
A map from phase to induction loops to be used for gap control.
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.
bool hasMajor(const std::string &state, const LaneVector &lanes) const
return whether there is a major link from the given lane in the given phase
SUMOTime getMinimumMinDuration(MSLane *lane) const
get the minimum min duration for all stretchable phases that affect the given lane ...
~MSActuatedTrafficLightLogic()
Destructor.
double myMaxGap
The maximum gap to check in seconds.
bool showDetectors() const
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
std::vector< MSLane * > LaneVector
Definition of the list of arrival lanes subjected to this tls.
double gapControl()
Return the minimum detection gap of all detectors if the current phase should be extended and double:...
std::vector< std::vector< MSInductLoop * > > InductLoopMap
Definition of a map from phases to induct loops controlling them.
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.
std::vector< MSInductLoop * > myInductLoops
SUMOTime myFreq
The frequency for aggregating detector output.
Representation of a lane in the micro simulation.
bool myShowDetectors
Whether the detectors shall be shown in the GUI.
SUMOTime trySwitch()
Switches to the next phase.