#include <LaneChangeEvent.h>
Public Member Functions | |
double | getTime () |
WORD | getVehicleType () |
bool | getDirPos () |
int | getOriginLane () |
int | getPosition () |
int | getDestinationLane () |
bool | getChangeLeft () |
LaneChangeEvent (int pos, int fromLane, int toLane, int type, bool left, bool dirPos, double time) | |
Constructor. | |
virtual | ~LaneChangeEvent () |
Destructor. | |
Private Attributes | |
int | m_EventPosition |
The position of the event. | |
int | m_OriginLane |
The lane from which the vehicle changed. | |
int | m_DestinationLane |
The lane to which the vehicle changed. | |
int | m_VehType |
The type of vehicle involved. | |
bool | m_MovingLeft |
Whether the vehicle changed into a left lane or not. | |
bool | m_DirPos |
Whether the vehicle is travelling in a positive direction or not. | |
double | m_EventTime |
The time at which the event occured. |
Definition at line 17 of file LaneChangeEvent.h.
LaneChangeEvent::LaneChangeEvent | ( | int | pos, | |
int | fromLane, | |||
int | toLane, | |||
int | type, | |||
bool | moveLeft, | |||
bool | dirPos, | |||
double | time | |||
) |
Constructor.
pos | The position of the event | |
fromLane | The lane from which the vehicle changed | |
toLane | The lane to which the vehicle changed | |
type | The type of vehicle involved | |
moveLeft | Whether the vehicle changed into a left lane or not | |
dirPos | Whether the vehicle is travelling in a positive direction or not | |
time | The time at which the event occured |
Definition at line 29 of file LaneChangeEvent.cpp.
References m_DestinationLane, m_DirPos, m_EventPosition, m_EventTime, m_MovingLeft, m_OriginLane, and m_VehType.
00030 { 00031 m_EventPosition = pos; 00032 m_OriginLane = fromLane; 00033 m_DestinationLane = toLane; 00034 m_VehType = type; 00035 m_MovingLeft = moveLeft; 00036 m_DirPos = dirPos; 00037 m_EventTime = time; 00038 }
LaneChangeEvent::~LaneChangeEvent | ( | ) | [virtual] |
double LaneChangeEvent::getTime | ( | ) |
Definition at line 76 of file LaneChangeEvent.cpp.
References m_EventTime.
Referenced by LaneChangeDetector::doSpaceTimeOutput(), and LaneChangeDetector::doVerboseOutput().
00077 { 00078 return m_EventTime; 00079 }
WORD LaneChangeEvent::getVehicleType | ( | ) |
Definition at line 71 of file LaneChangeEvent.cpp.
References m_VehType.
Referenced by LaneChangeDetector::addEvent(), and LaneChangeDetector::doVerboseOutput().
00072 { 00073 return m_VehType; 00074 }
bool LaneChangeEvent::getDirPos | ( | ) |
Definition at line 66 of file LaneChangeEvent.cpp.
References m_DirPos.
Referenced by LaneChangeDetector::doVerboseOutput().
00067 { 00068 return m_DirPos; 00069 }
int LaneChangeEvent::getOriginLane | ( | ) |
Definition at line 61 of file LaneChangeEvent.cpp.
References m_OriginLane.
Referenced by LaneChangeDetector::doVerboseOutput().
00062 { 00063 return m_OriginLane; 00064 }
int LaneChangeEvent::getPosition | ( | ) |
Definition at line 56 of file LaneChangeEvent.cpp.
References m_EventPosition.
Referenced by LaneChangeDetector::doSpaceTimeOutput(), and LaneChangeDetector::doVerboseOutput().
00057 { 00058 return m_EventPosition; 00059 }
int LaneChangeEvent::getDestinationLane | ( | ) |
Definition at line 51 of file LaneChangeEvent.cpp.
References m_DestinationLane.
Referenced by LaneChangeDetector::doVerboseOutput().
00052 { 00053 return m_DestinationLane; 00054 }
bool LaneChangeEvent::getChangeLeft | ( | ) |
Definition at line 46 of file LaneChangeEvent.cpp.
References m_MovingLeft.
Referenced by LaneChangeDetector::doSpaceTimeOutput(), and LaneChangeDetector::doVerboseOutput().
00047 { 00048 return m_MovingLeft; 00049 }
int LaneChangeEvent::m_EventPosition [private] |
The position of the event.
Definition at line 32 of file LaneChangeEvent.h.
Referenced by getPosition(), and LaneChangeEvent().
int LaneChangeEvent::m_OriginLane [private] |
The lane from which the vehicle changed.
Definition at line 34 of file LaneChangeEvent.h.
Referenced by getOriginLane(), and LaneChangeEvent().
int LaneChangeEvent::m_DestinationLane [private] |
The lane to which the vehicle changed.
Definition at line 36 of file LaneChangeEvent.h.
Referenced by getDestinationLane(), and LaneChangeEvent().
int LaneChangeEvent::m_VehType [private] |
The type of vehicle involved.
Definition at line 38 of file LaneChangeEvent.h.
Referenced by getVehicleType(), and LaneChangeEvent().
bool LaneChangeEvent::m_MovingLeft [private] |
Whether the vehicle changed into a left lane or not.
Definition at line 40 of file LaneChangeEvent.h.
Referenced by getChangeLeft(), and LaneChangeEvent().
bool LaneChangeEvent::m_DirPos [private] |
Whether the vehicle is travelling in a positive direction or not.
Definition at line 42 of file LaneChangeEvent.h.
Referenced by getDirPos(), and LaneChangeEvent().
double LaneChangeEvent::m_EventTime [private] |
The time at which the event occured.
Definition at line 44 of file LaneChangeEvent.h.
Referenced by getTime(), and LaneChangeEvent().