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

Data Fields

std::map< int, double > ggOld
double gOld
double myHeadway

Detailed Description

Definition at line 173 of file MSCFModel_SmartSK.h.

Member Function Documentation

◆ loadState()

void MSCFModel_SmartSK::SSKVehicleVariables::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 92 of file MSCFModel_SmartSK.cpp.

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

◆ saveState()

void MSCFModel_SmartSK::SSKVehicleVariables::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 76 of file MSCFModel_SmartSK.cpp.

References OutputDevice::closeTag(), ggOld, gOld, MSCFModel::MSCFModel(), myHeadway, OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_STATE, SUMO_TAG_CFM_VARIABLES, and OutputDevice::writeAttr().

Field Documentation

◆ ggOld

std::map<int, double> MSCFModel_SmartSK::SSKVehicleVariables::ggOld

◆ gOld

◆ myHeadway


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