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

Public Member Functions

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.
 VehicleVariables (SUMOTime dawdleStep)

Data Fields

double accelDawdle
 the accleration due to dawdling
SUMOTime updateOffset

Detailed Description

Definition at line 101 of file MSCFModel_Krauss.h.

Constructor & Destructor Documentation

◆ VehicleVariables()

MSCFModel_Krauss::VehicleVariables::VehicleVariables ( SUMOTime dawdleStep)

Definition at line 43 of file MSCFModel_Krauss.cpp.

References accelDawdle, DELTA_T, SIMSTEP, and updateOffset.

Member Function Documentation

◆ loadState()

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

Definition at line 81 of file MSCFModel_Krauss.cpp.

References accelDawdle, SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), SUMO_ATTR_ID, SUMO_ATTR_STATE, TLF, and updateOffset.

◆ saveState()

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

Definition at line 69 of file MSCFModel_Krauss.cpp.

References accelDawdle, OutputDevice::closeTag(), MSCFModel::MSCFModel(), OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_STATE, SUMO_TAG_CFM_VARIABLES, updateOffset, and OutputDevice::writeAttr().

Field Documentation

◆ accelDawdle

double MSCFModel_Krauss::VehicleVariables::accelDawdle

the accleration due to dawdling

Definition at line 107 of file MSCFModel_Krauss.h.

Referenced by loadState(), MSCFModel_Krauss::patchSpeedBeforeLC(), saveState(), and VehicleVariables().

◆ updateOffset

SUMOTime MSCFModel_Krauss::VehicleVariables::updateOffset

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