![]() |
Eclipse SUMO - Simulation of Urban MObility
|
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 |
Definition at line 151 of file MSCFModel_ACC.h.
|
inline |
Definition at line 153 of file MSCFModel_ACC.h.
References ACC_ControlMode.
|
virtual |
Loads the state of the vehicle variables from the given description.
| [in] | attrs | XML 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.
|
virtual |
Saves the vehicle variables.
| [in] | out | The 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().
| 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().
| SUMOTime MSCFModel_ACC::ACCVehicleVariables::lastUpdateTime |
Definition at line 156 of file MSCFModel_ACC.h.
Referenced by MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_ACC::createVehicleVariables(), MSCFModel_CACC::createVehicleVariables(), MSCFModel_CACC::freeSpeed(), loadState(), and saveState().