Axle Class Reference

A class to represent an axle of a vehicle. More...

#include <Axle.h>

List of all members.

Public Member Functions

 Axle ()
 Axle (int i, double t, double v, double x, double w, int dirn)
virtual ~Axle ()
double getWeight ()
double getSpacing ()
void setWeight (double w)
void setSpacing (double space)
void UpdatePosition (double time)

Private Attributes

double spacing
 The space to the next axle.
double weight
 The weight of this axle.


Detailed Description

A class to represent an axle of a vehicle.

Definition at line 8 of file Axle.h.


Constructor & Destructor Documentation

Axle::Axle (  ) 

Definition at line 14 of file Axle.cpp.

00014           :spacing(0.0), weight(0.0)
00015 {
00016 
00017 }

Axle::Axle ( int  i,
double  t,
double  v,
double  x,
double  w,
int  dirn 
)

Definition at line 9 of file Axle.cpp.

00010 {
00011         
00012 }

Axle::~Axle (  )  [virtual]

Definition at line 19 of file Axle.cpp.

00019            {
00020         
00021 }


Member Function Documentation

double Axle::getWeight (  ) 

Definition at line 43 of file Axle.cpp.

References weight.

00044 {
00045         return weight;
00046 }

double Axle::getSpacing (  ) 

Definition at line 38 of file Axle.cpp.

References spacing.

00039 {
00040         return spacing;
00041 }

void Axle::setWeight ( double  w  ) 

Definition at line 33 of file Axle.cpp.

References weight.

00034 {
00035         weight = w;
00036 }

void Axle::setSpacing ( double  space  ) 

Definition at line 28 of file Axle.cpp.

References spacing.

00029 {
00030         spacing = space;
00031 }

void Axle::UpdatePosition ( double  time  ) 

Definition at line 23 of file Axle.cpp.

00024 {
00025         
00026 }


Member Data Documentation

double Axle::spacing [private]

The space to the next axle.

Definition at line 26 of file Axle.h.

Referenced by getSpacing(), and setSpacing().

double Axle::weight [private]

The weight of this axle.

Definition at line 28 of file Axle.h.

Referenced by getWeight(), and setWeight().


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

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