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