17 #include <unordered_map>
79 long validUntilTimestamp = 0)
115 return "UNDEFINED_COLOR";
133 float minimumSpeed = speedLimit * 0.6;
244 typedef std::unordered_map<adore::env::BorderBased::Coordinate, adore::env::SimTrafficLight,adore::env::BorderBased::CoordinateHasher>
SimTrafficLightMap;
245 typedef std::unordered_map<adore::env::BorderBased::Coordinate, adore::env::TrafficLight,adore::env::BorderBased::CoordinateHasher>
TrafficLightMap;
Definition: trafficlight.h:219
int time_to_yellow_
Definition: trafficlight.h:238
int yellow_red_duration_
Definition: trafficlight.h:230
TrafficLightColor start_state_
Definition: trafficlight.h:232
int time_to_red_
Definition: trafficlight.h:234
int green_duration_
Definition: trafficlight.h:228
SimTrafficLight()
Definition: trafficlight.h:221
int time_to_red_yellow_
Definition: trafficlight.h:236
int time_to_green_
Definition: trafficlight.h:240
int red_duration_
Definition: trafficlight.h:221
int yellow_duration_
Definition: trafficlight.h:226
Definition: trafficcontroldevice.h:24
void setType(TCDType type)
Definition: trafficcontroldevice.h:150
BorderBased::Coordinate getCoordinate() const
Definition: trafficcontroldevice.h:175
int getID() const
Definition: trafficcontroldevice.h:146
@ TRAFFIC_LIGHT
Definition: trafficcontroldevice.h:29
Definition: trafficlight.h:63
TrafficLightColor getCurrentColor() const
Definition: trafficlight.h:84
long getValidUntilTimestamp() const
Definition: trafficlight.h:97
std::string toString()
Definition: trafficlight.h:102
TrafficLightColor m_currentColor
Definition: trafficlight.h:66
void setCurrentColor(TrafficLightColor color)
Definition: trafficlight.h:89
void setValidUntilTimestamp(long timestamp)
Definition: trafficlight.h:93
TrafficLightStatus(TrafficLightColor currentcolor=TrafficLightColor::UNDEFINED_COLOR, long validUntilTimestamp=0)
Definition: trafficlight.h:78
std::map< float, float > distanceSpeedTuples
Definition: trafficlight.h:76
static void GenerateSpeedAdvisories(adore::env::TrafficLightStatus &state, float speedLimit=10.0f)
Definition: trafficlight.h:129
long m_validUntilTimestamp
Definition: trafficlight.h:68
Definition: trafficlight.h:168
int intersection_id_
Definition: trafficlight.h:183
bool operator==(const TrafficLight &other)
Definition: trafficlight.h:200
virtual TrafficLightStatus * getStatus()
Definition: trafficlight.h:190
int movement_id_
Definition: trafficlight.h:178
virtual TrafficLightStatus const * getStatus() const
Definition: trafficlight.h:195
TrafficLight()
Definition: trafficlight.h:185
TrafficLightStatus status_
Definition: trafficlight.h:171
TrafficLightColor
Definition: trafficlight.h:50
std::unordered_map< adore::env::BorderBased::Coordinate, adore::env::TrafficLight, adore::env::BorderBased::CoordinateHasher > TrafficLightMap
Definition: trafficlight.h:245
std::unordered_map< adore::env::BorderBased::Coordinate, adore::env::SimTrafficLight, adore::env::BorderBased::CoordinateHasher > SimTrafficLightMap
Definition: trafficlight.h:244
Definition: areaofeffectconverter.h:20