LaneChangeEvent Class Reference

A container class to represent the relevant information from a lane change event. More...

#include <LaneChangeEvent.h>

List of all members.

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.


Detailed Description

A container class to represent the relevant information from a lane change event.

Definition at line 17 of file LaneChangeEvent.h.


Constructor & Destructor Documentation

LaneChangeEvent::LaneChangeEvent ( int  pos,
int  fromLane,
int  toLane,
int  type,
bool  moveLeft,
bool  dirPos,
double  time 
)

Constructor.

Parameters:
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]

Destructor.

Definition at line 41 of file LaneChangeEvent.cpp.

00042 {
00043 
00044 }


Member Function Documentation

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 }


Member Data Documentation

The position of the event.

Definition at line 32 of file LaneChangeEvent.h.

Referenced by getPosition(), and LaneChangeEvent().

The lane from which the vehicle changed.

Definition at line 34 of file LaneChangeEvent.h.

Referenced by getOriginLane(), and LaneChangeEvent().

The lane to which the vehicle changed.

Definition at line 36 of file LaneChangeEvent.h.

Referenced by getDestinationLane(), and LaneChangeEvent().

The type of vehicle involved.

Definition at line 38 of file LaneChangeEvent.h.

Referenced by getVehicleType(), and LaneChangeEvent().

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().


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

Generated on Wed Aug 20 00:48:48 2008 for EvolveTraffic by  doxygen 1.5.6