Eclipse SUMO - Simulation of Urban MObility
MSDevice_BTsender::VehicleState Class Reference

A single movement state of the vehicle. More...

#include <MSDevice_BTsender.h>

Collaboration diagram for MSDevice_BTsender::VehicleState:
[legend]

Public Member Functions

 VehicleState (const double _speed, const Position &_position, const std::string &_laneID, const double _lanePos, const int _routePos)
 Constructor. More...
 
 ~VehicleState ()
 Destructor. More...
 

Data Fields

std::string laneID
 The lane the vehicle was at. More...
 
double lanePos
 The position at the lane of the vehicle. More...
 
Position position
 The position of the vehicle. More...
 
int routePos
 The position in the route of the vehicle. More...
 
double speed
 The speed of the vehicle. More...
 

Detailed Description

A single movement state of the vehicle.

Definition at line 111 of file MSDevice_BTsender.h.

Constructor & Destructor Documentation

◆ VehicleState()

MSDevice_BTsender::VehicleState::VehicleState ( const double  _speed,
const Position _position,
const std::string &  _laneID,
const double  _lanePos,
const int  _routePos 
)
inline

Constructor.

Parameters
[in]_speedThe speed of the vehicle
[in]_positionThe position of the vehicle
[in]_laneIDThe id of the lane the vehicle is located at
[in]_lanePosThe position of the vehicle along the lane

Definition at line 119 of file MSDevice_BTsender.h.

◆ ~VehicleState()

MSDevice_BTsender::VehicleState::~VehicleState ( )
inline

Destructor.

Definition at line 124 of file MSDevice_BTsender.h.

Field Documentation

◆ laneID

std::string MSDevice_BTsender::VehicleState::laneID

The lane the vehicle was at.

Definition at line 131 of file MSDevice_BTsender.h.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::writeOutput().

◆ lanePos

double MSDevice_BTsender::VehicleState::lanePos

The position at the lane of the vehicle.

Definition at line 133 of file MSDevice_BTsender.h.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::writeOutput().

◆ position

Position MSDevice_BTsender::VehicleState::position

◆ routePos

int MSDevice_BTsender::VehicleState::routePos

The position in the route of the vehicle.

Definition at line 135 of file MSDevice_BTsender.h.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::leaveRange().

◆ speed

double MSDevice_BTsender::VehicleState::speed

The speed of the vehicle.

Definition at line 127 of file MSDevice_BTsender.h.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::writeOutput().


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