#include <trafficlight.h>
Public Member Functions | |
SimTrafficLight () | |
Public Member Functions inherited from adore::env::TrafficLight | |
TrafficLight () | |
virtual TrafficLightStatus * | getStatus () |
virtual TrafficLightStatus const * | getStatus () const |
bool | operator== (const TrafficLight &other) |
Public Member Functions inherited from adore::env::TrafficControlDevice | |
TCDClass | getTCDClass () |
generalization of tcd types More... | |
double | getNumericValue1 () |
Some tcd's have one or more numeric value affixed to them, e.g. speed limits have one. More... | |
TrafficControlDevice () | |
TrafficControlDevice (const TrafficControlDevice &other) | |
void | translate (double dx, double dy, double dz) |
void | rotate (double angle, double x0=0, double y0=0) |
int | getID () const |
void | setID (int id) |
void | setType (TCDType type) |
TCDType | getType () const |
void | setOrientation (double orientation) |
double | getOrientation () const |
void | setCoordinate (BorderBased::Coordinate coordinate) |
BorderBased::Coordinate | getCoordinate () const |
Public Attributes | |
int | red_duration_ |
int | yellow_duration_ |
int | green_duration_ |
int | yellow_red_duration_ |
TrafficLightColor | start_state_ |
int | time_to_red_ |
int | time_to_red_yellow_ |
int | time_to_yellow_ |
int | time_to_green_ |
Public Attributes inherited from adore::env::TrafficLight | |
int | movement_id_ |
int | intersection_id_ |
Additional Inherited Members | |
Public Types inherited from adore::env::TrafficControlDevice | |
enum | TCDType { TRAFFIC_LIGHT = 0 , TRAFFIC_LIGHT_PEDESTRIAN = 1 , RIGHT_OF_WAY = 2 , STOP_SIGN = 3 , SPEED_LIMIT_10 = 4 , SPEED_LIMIT_20 = 5 , SPEED_LIMIT_30 = 6 , SPEED_LIMIT_40 = 7 , SPEED_LIMIT_50 = 8 , SPEED_LIMIT_60 = 9 , SPEED_LIMIT_70 = 10 , SPEED_LIMIT_80 = 11 , SPEED_LIMIT_90 = 12 , SPEED_LIMIT_100 = 13 , SPEED_LIMIT_120 = 14 , SPEED_LIMIT_130 = 15 , SPEED_LIMIT_NON = 16 , CITY_LIMIT_SIGN = 17 , MOTOR_WAY_SIGN = 18 , UNKNOWN = 99 } |
enum | TCDClass { C_TRAFFIC_LIGHT = 0 , C_PRECEDENCE = 1 , C_SPEED_LIMIT = 2 , C_UNKNOWN = 99 } |
SimTrafficLight is an extension of TrafficLight with additional information for simulations like the durations (in ms) for the 4 different states of the traffic light and the start state at the beginning of a simulation.
|
inline |
int adore::env::SimTrafficLight::green_duration_ |
int adore::env::SimTrafficLight::red_duration_ |
TrafficLightColor adore::env::SimTrafficLight::start_state_ |
int adore::env::SimTrafficLight::time_to_green_ |
int adore::env::SimTrafficLight::time_to_red_ |
int adore::env::SimTrafficLight::time_to_red_yellow_ |
int adore::env::SimTrafficLight::time_to_yellow_ |
int adore::env::SimTrafficLight::yellow_duration_ |
int adore::env::SimTrafficLight::yellow_red_duration_ |