ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::env::TrafficLight Class Reference

#include <trafficlight.h>

Inheritance diagram for adore::env::TrafficLight:
Inheritance graph
Collaboration diagram for adore::env::TrafficLight:
Collaboration graph

Public Member Functions

 TrafficLight ()
 
virtual TrafficLightStatusgetStatus ()
 
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 movement_id_
 
int intersection_id_
 

Private Attributes

TrafficLightStatus status_
 

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 }
 

Detailed Description

A traffic light is basically a traffic control device with a color status.

Constructor & Destructor Documentation

◆ TrafficLight()

adore::env::TrafficLight::TrafficLight ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ getStatus() [1/2]

virtual TrafficLightStatus* adore::env::TrafficLight::getStatus ( )
inlinevirtual
Here is the caller graph for this function:

◆ getStatus() [2/2]

virtual TrafficLightStatus const* adore::env::TrafficLight::getStatus ( ) const
inlinevirtual

◆ operator==()

bool adore::env::TrafficLight::operator== ( const TrafficLight other)
inline
Here is the call graph for this function:

Member Data Documentation

◆ intersection_id_

int adore::env::TrafficLight::intersection_id_

◆ movement_id_

int adore::env::TrafficLight::movement_id_

◆ status_

TrafficLightStatus adore::env::TrafficLight::status_
private

The documentation for this class was generated from the following file: