This class provide information about stoplines. More...
#include <stopline.h>
Public Types | |
enum | State { UNKNOWN = 0 , STOP = 1 , CONFLICT = 2 , GO = 3 } |
the enum State holds the different possible states of a stopline More... | |
Public Member Functions | |
StopLine () | |
Construct a new StopLine object. More... | |
StopLine (const StopLine &other) | |
Construct a new StopLine object. More... | |
StopLine (const LanePosition &pos) | |
Construct a new StopLine object. More... | |
StopLine (const LanePosition &pos, State state, double tswitch=1.0e6) | |
Construct a new StopLine object. More... | |
virtual const LanePosition & | getLanePosition () |
Get the LanePosition. More... | |
void | translate (double dx, double dy, double dz) |
Translate the stop line. More... | |
void | rotate (double angle, double x0=0, double y0=0) |
double | getSwitchingTime () |
Get the switching time. More... | |
void | setSwitchingTime (double t) |
Set the switching time. More... | |
Public Member Functions inherited from adore::env::BorderBased::ALanePositionedObject | |
virtual | ~ALanePositionedObject () |
Destroy the ALanePositionedObject. More... | |
Public Attributes | |
enum adore::env::BorderBased::StopLine::State | m_state |
std::map< float, float > | m_speedAdvisories |
double | m_tswitch |
LanePosition | m_position |
int | m_signalGroupID |
This class provide information about stoplines.
|
inline |
Construct a new StopLine object.
|
inline |
Construct a new StopLine object.
other | copy that stopline |
|
inline |
Construct a new StopLine object.
pos | LanePosition of the new stopline |
|
inline |
Construct a new StopLine object.
pos | LanePosition of the new stopline |
state | state of the new stopline |
tswitch | time to state switch |
|
inlinevirtual |
Get the LanePosition.
Implements adore::env::BorderBased::ALanePositionedObject.
|
inline |
Get the switching time.
|
inline |
|
inline |
Set the switching time.
t | time when the next state switch occurs |
|
inline |
Translate the stop line.
dx | move the x-coordinate by this value |
dy | move the y-coordinate by this value |
dz | move the z-coordinate by this value |
LanePosition adore::env::BorderBased::StopLine::m_position |
LanePosition of the stopline
int adore::env::BorderBased::StopLine::m_signalGroupID |
std::map<float,float> adore::env::BorderBased::StopLine::m_speedAdvisories |
advised speed
enum adore::env::BorderBased::StopLine::State adore::env::BorderBased::StopLine::m_state |
double adore::env::BorderBased::StopLine::m_tswitch |
time to next state change