Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSCFModel_Wiedemann::VehicleVariables Class Reference
Inheritance diagram for MSCFModel_Wiedemann::VehicleVariables:
[legend]
Collaboration diagram for MSCFModel_Wiedemann::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 accelSign
 state variable for remembering the drift direction
 

Detailed Description

Definition at line 128 of file MSCFModel_Wiedemann.h.

Constructor & Destructor Documentation

◆ VehicleVariables()

MSCFModel_Wiedemann::VehicleVariables::VehicleVariables ( )
inline

Definition at line 130 of file MSCFModel_Wiedemann.h.

Member Function Documentation

◆ loadState()

void MSCFModel_Wiedemann::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 83 of file MSCFModel_Wiedemann.cpp.

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

◆ saveState()

void MSCFModel_Wiedemann::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 72 of file MSCFModel_Wiedemann.cpp.

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

Field Documentation

◆ accelSign

double MSCFModel_Wiedemann::VehicleVariables::accelSign

state variable for remembering the drift direction

Definition at line 132 of file MSCFModel_Wiedemann.h.

Referenced by MSCFModel_Wiedemann::_v(), MSCFModel_Wiedemann::finalizeSpeed(), and saveState().


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