#include <DriverModel.h>
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 |
Definition at line 10 of file DriverModel.h.
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] |
virtual double DriverModel::getDesiredVel | ( | ) | [pure virtual] |
virtual double DriverModel::update | ( | double | vel, | |
double | dist | |||
) | [pure virtual] |
virtual void DriverModel::setVel | ( | double | vel | ) | [pure virtual] |
virtual void DriverModel::ClearRestriction | ( | ) | [inline, virtual] |
Reimplemented in IDM.
Definition at line 20 of file DriverModel.h.
Referenced by Lane::CheckRoadSegments().
virtual void DriverModel::ClearGradient | ( | ) | [inline, virtual] |
Reimplemented in IDM.
Definition at line 21 of file DriverModel.h.
Referenced by Gradient::removeVehicle().
virtual void DriverModel::SetGradient | ( | double | gradient | ) | [inline, virtual] |
Reimplemented in IDM.
Definition at line 22 of file DriverModel.h.
Referenced by Gradient::addVehicle().
virtual void DriverModel::ClearSpeedLimit | ( | ) | [inline, virtual] |
Reimplemented in IDM.
Definition at line 23 of file DriverModel.h.
Referenced by SpeedLimit::removeVehicle().
virtual void DriverModel::SetSpeedLimit | ( | double | limit | ) | [inline, virtual] |
Reimplemented in IDM.
Definition at line 24 of file DriverModel.h.
Referenced by SpeedLimit::addVehicle().
virtual double DriverModel::LaneChange | ( | double | GapToFront, | |
double | GapToBack, | |||
double | FrontChangeAccel, | |||
double | CurrentBackAccel, | |||
double | ProposedBackAccel, | |||
bool | overtake | |||
) | [pure virtual] |
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] |
Definition at line 37 of file DriverModel.h.
Referenced by IDM::ClearSpeedLimit(), DriverModel(), IDM::SetGradient(), and IDM::SetSpeedLimit().