SUMO - Simulation of Urban MObility
MSVehicle::State Class Reference

Container that holds the vehicles driving state (position+speed). More...

#include <MSVehicle.h>

Collaboration diagram for MSVehicle::State:
Collaboration graph

Public Member Functions

bool operator!= (const State &state)
 Operator !=. More...
 
Stateoperator= (const State &state)
 Assignment operator. More...
 
SUMOReal pos () const
 Position of this state. More...
 
SUMOReal speed () const
 Speed of this state. More...
 
 State (SUMOReal pos, SUMOReal speed)
 Constructor. More...
 
 State (const State &state)
 Copy constructor. More...
 

Private Attributes

SUMOReal myPos
 the stored position More...
 
SUMOReal mySpeed
 the stored speed More...
 

Friends

class MSLaneChanger
 
class MSVehicle
 vehicle sets states directly More...
 

Detailed Description

Container that holds the vehicles driving state (position+speed).

Definition at line 89 of file MSVehicle.h.

Constructor & Destructor Documentation

MSVehicle::State::State ( SUMOReal  pos,
SUMOReal  speed 
)

Constructor.

Definition at line 139 of file MSVehicle.cpp.

MSVehicle::State::State ( const State state)

Copy constructor.

Definition at line 112 of file MSVehicle.cpp.

References myPos, and mySpeed.

Member Function Documentation

bool MSVehicle::State::operator!= ( const State state)

Operator !=.

Definition at line 127 of file MSVehicle.cpp.

References myPos, mySpeed, and SUMOReal.

MSVehicle::State & MSVehicle::State::operator= ( const State state)

Assignment operator.

Definition at line 119 of file MSVehicle.cpp.

References myPos, and mySpeed.

Friends And Related Function Documentation

friend class MSLaneChanger
friend

Definition at line 92 of file MSVehicle.h.

friend class MSVehicle
friend

vehicle sets states directly

Definition at line 91 of file MSVehicle.h.

Field Documentation


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