Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSCFModel_CACC::CACCVehicleVariables Class Reference
Inheritance diagram for MSCFModel_CACC::CACCVehicleVariables:
[legend]
Collaboration diagram for MSCFModel_CACC::CACCVehicleVariables:
[legend]

Public Member Functions

 CACCVehicleVariables ()
void loadState (const SUMOSAXAttributes &attrs)
 Loads the state of the vehicle variables from the given description.
void saveState (OutputDevice &out, const MSCFModel &cfm) const
 Saves the vehicle variables.

Data Fields

int ACC_ControlMode
 The vehicle's ACC control mode. 0 for speed control and 1 for gap control.
CommunicationsOverrideMode CACC_CommunicationsOverrideMode
int CACC_ControlMode
 The vehicle's CACC precious time step gap error.
SUMOTime lastUpdateTime

Detailed Description

Definition at line 223 of file MSCFModel_CACC.h.

Constructor & Destructor Documentation

◆ CACCVehicleVariables()

MSCFModel_CACC::CACCVehicleVariables::CACCVehicleVariables ( )
inline

Member Function Documentation

◆ loadState()

void MSCFModel_CACC::CACCVehicleVariables::loadState ( const SUMOSAXAttributes & attrs)
virtual

Loads the state of the vehicle variables from the given description.

Parameters
[in]attrsXML attributes describing the current state

Reimplemented from MSCFModel_ACC::ACCVehicleVariables.

Definition at line 121 of file MSCFModel_CACC.cpp.

References CACC_CommunicationsOverrideMode, CACC_ControlMode, SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), SUMO_ATTR_ID, SUMO_ATTR_STATE, and TLF.

◆ saveState()

void MSCFModel_CACC::CACCVehicleVariables::saveState ( OutputDevice & out,
const MSCFModel & cfm ) const
virtual

Field Documentation

◆ ACC_ControlMode

int MSCFModel_ACC::ACCVehicleVariables::ACC_ControlMode
inherited

The vehicle's ACC control mode. 0 for speed control and 1 for gap control.

Definition at line 155 of file MSCFModel_ACC.h.

Referenced by MSCFModel_ACC::_v(), ACCVehicleVariables(), MSCFModel_ACC::createVehicleVariables(), MSCFModel_CACC::createVehicleVariables(), loadState(), and saveState().

◆ CACC_CommunicationsOverrideMode

◆ CACC_ControlMode

int MSCFModel_CACC::CACCVehicleVariables::CACC_ControlMode

The vehicle's CACC precious time step gap error.

Definition at line 227 of file MSCFModel_CACC.h.

Referenced by MSCFModel_CACC::_v(), CACCVehicleVariables(), MSCFModel_CACC::createVehicleVariables(), loadState(), and saveState().

◆ lastUpdateTime


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