DriverModel Class Reference

A base class for representing driver models. More...

#include <DriverModel.h>

Inheritance diagram for DriverModel:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 DriverModel ()
 Default Constructor.
virtual ~DriverModel ()
 Default Destructor.
virtual double getDesiredVel ()=0
virtual double update (double vel, double dist)=0
virtual void setVel (double vel)=0
virtual void ClearRestriction ()
virtual void ClearGradient ()
virtual void SetGradient (double gradient)
virtual void ClearSpeedLimit ()
virtual void SetSpeedLimit (double limit)
virtual double LaneChange (double GapToFront, double GapToBack, double FrontChangeAccel, double CurrentBackAccel, double ProposedBackAccel, bool overtake)=0

Protected Attributes

bool m_bInGradient
bool m_bInSpeedLimit


Detailed Description

A base class for representing driver models.

Definition at line 10 of file DriverModel.h.


Constructor & Destructor Documentation

DriverModel::DriverModel (  ) 

Default Constructor.

Definition at line 6 of file DriverModel.cpp.

References m_bInGradient, and m_bInSpeedLimit.

00007 {
00008         m_bInGradient = false;
00009         m_bInSpeedLimit = false;
00010 }

DriverModel::~DriverModel (  )  [virtual]

Default Destructor.

Definition at line 12 of file DriverModel.cpp.

00012                          {
00013 
00014 }


Member Function Documentation

virtual double DriverModel::getDesiredVel (  )  [pure virtual]

Implemented in IDM.

Referenced by Vehicle::getDataString(), and Vehicle::getDesiredVel().

virtual double DriverModel::update ( double  vel,
double  dist 
) [pure virtual]

Implemented in IDM.

Referenced by Vehicle::calcAccel().

virtual void DriverModel::setVel ( double  vel  )  [pure virtual]

Implemented in IDM.

Referenced by Vehicle::calcAccel().

virtual void DriverModel::ClearRestriction (  )  [inline, virtual]

Reimplemented in IDM.

Definition at line 20 of file DriverModel.h.

Referenced by Lane::CheckRoadSegments().

00020 {};

virtual void DriverModel::ClearGradient (  )  [inline, virtual]

Reimplemented in IDM.

Definition at line 21 of file DriverModel.h.

Referenced by Gradient::removeVehicle().

00021 {};

virtual void DriverModel::SetGradient ( double  gradient  )  [inline, virtual]

Reimplemented in IDM.

Definition at line 22 of file DriverModel.h.

Referenced by Gradient::addVehicle().

00022 {};

virtual void DriverModel::ClearSpeedLimit (  )  [inline, virtual]

Reimplemented in IDM.

Definition at line 23 of file DriverModel.h.

Referenced by SpeedLimit::removeVehicle().

00023 {};

virtual void DriverModel::SetSpeedLimit ( double  limit  )  [inline, virtual]

Reimplemented in IDM.

Definition at line 24 of file DriverModel.h.

Referenced by SpeedLimit::addVehicle().

00024 {};

virtual double DriverModel::LaneChange ( double  GapToFront,
double  GapToBack,
double  FrontChangeAccel,
double  CurrentBackAccel,
double  ProposedBackAccel,
bool  overtake 
) [pure virtual]

Implemented in IDM.

Referenced by Vehicle::LaneChangeAdvantage().


Member Data Documentation

bool DriverModel::m_bInGradient [protected]

Definition at line 36 of file DriverModel.h.

Referenced by IDM::ClearGradient(), DriverModel(), and IDM::SetGradient().

bool DriverModel::m_bInSpeedLimit [protected]


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

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