 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef MSDeterministicHiLevelTrafficLightLogic_h
17 #define MSDeterministicHiLevelTrafficLightLogic_h
50 const std::string& programID,
const Phases& phases,
int step,
52 const std::map<std::string, std::string>& parameters);
68 return "DeterministicHighLevelTrafficLightLogic";
116 void choosePolicy(
double mean_vSpeed_in,
double mean_vSpeed_out);
~MSDeterministicHiLevelTrafficLightLogic()
void init(NLDetectorBuilder &nb)
Initialises the tls with sensors on incoming and outgoing lanes Sensors are built in the simulation a...
void decidePolicy()
Decide the current policy according to pheromone levels The decision reflects on currentPolicy value.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
MSDeterministicHiLevelTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meters)
Constructor without sensors passed.
A self-organizing high-level traffic light logic.
MSLaneID_set inputLanes
This pheronome is an indicator of congestion on input lanes. Its levels refer to the average speed of...
std::set< std::string > MSLaneID_set
double getMeanSpeedForInputLanes()
const std::string getLogicType() const
Returns the type of the logic as a string.
MSLaneID_set outputLanes
This pheromone is an indicator of congestion on output lanes. Its levels refer to the average speed o...
double getMeanSpeedForOutputLanes()
void choosePolicy(double mean_vSpeed_in, double mean_vSpeed_out)
A class that stores and controls tls and switching of their programs.
Builds detectors for microsim.