Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSCFModel_IDM::VehicleVariables Class Reference
Inheritance diagram for MSCFModel_IDM::VehicleVariables:
[legend]
Collaboration diagram for MSCFModel_IDM::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 ()

Data Fields

double levelOfService
 state variable for remembering speed deviation history (lambda)

Detailed Description

Definition at line 189 of file MSCFModel_IDM.h.

Constructor & Destructor Documentation

◆ VehicleVariables()

MSCFModel_IDM::VehicleVariables::VehicleVariables ( )
inline

Definition at line 191 of file MSCFModel_IDM.h.

References levelOfService.

Member Function Documentation

◆ loadState()

void MSCFModel_IDM::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 68 of file MSCFModel_IDM.cpp.

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

◆ saveState()

void MSCFModel_IDM::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 57 of file MSCFModel_IDM.cpp.

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

Field Documentation

◆ levelOfService

double MSCFModel_IDM::VehicleVariables::levelOfService

state variable for remembering speed deviation history (lambda)

Definition at line 193 of file MSCFModel_IDM.h.

Referenced by MSCFModel_IDM::_v(), MSCFModel_IDM::finalizeSpeed(), loadState(), saveState(), and VehicleVariables().


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