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

Public Member Functions

 ACCVehicleVariables ()
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.
SUMOTime lastUpdateTime

Detailed Description

Definition at line 151 of file MSCFModel_ACC.h.

Constructor & Destructor Documentation

◆ ACCVehicleVariables()

MSCFModel_ACC::ACCVehicleVariables::ACCVehicleVariables ( )
inline

Definition at line 153 of file MSCFModel_ACC.h.

References ACC_ControlMode.

Member Function Documentation

◆ loadState()

void MSCFModel_ACC::ACCVehicleVariables::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::VehicleVariables.

Reimplemented in MSCFModel_CACC::CACCVehicleVariables.

Definition at line 110 of file MSCFModel_ACC.cpp.

References ACC_ControlMode, SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), lastUpdateTime, SUMO_ATTR_ID, SUMO_ATTR_STATE, and TLF.

◆ saveState()

void MSCFModel_ACC::ACCVehicleVariables::saveState ( OutputDevice & out,
const MSCFModel & cfm ) const
virtual

Saves the vehicle variables.

Parameters
[in]outThe OutputDevice to write the information into

Reimplemented from MSCFModel::VehicleVariables.

Reimplemented in MSCFModel_CACC::CACCVehicleVariables.

Definition at line 98 of file MSCFModel_ACC.cpp.

References ACC_ControlMode, OutputDevice::closeTag(), lastUpdateTime, MSCFModel::MSCFModel(), OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_STATE, SUMO_TAG_CFM_VARIABLES, and OutputDevice::writeAttr().

Field Documentation

◆ ACC_ControlMode

int MSCFModel_ACC::ACCVehicleVariables::ACC_ControlMode

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().

◆ lastUpdateTime


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