![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Public Member Functions | |
| CACCVehicleVariables () | |
| 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. | |
| CommunicationsOverrideMode | CACC_CommunicationsOverrideMode |
| int | CACC_ControlMode |
| The vehicle's CACC precious time step gap error. | |
| SUMOTime | lastUpdateTime |
Definition at line 223 of file MSCFModel_CACC.h.
|
inline |
Definition at line 225 of file MSCFModel_CACC.h.
References CACC_CommunicationsOverrideMode, CACC_ControlMode, and MSCFModel_CACC::CACC_NO_OVERRIDE.
|
virtual |
Loads the state of the vehicle variables from the given description.
| [in] | attrs | XML attributes describing the current state |
Reimplemented from MSCFModel_ACC::ACCVehicleVariables.
Definition at line 121 of file MSCFModel_CACC.cpp.
References CACC_CommunicationsOverrideMode, CACC_ControlMode, SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), 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_ACC::ACCVehicleVariables.
Definition at line 109 of file MSCFModel_CACC.cpp.
References CACC_CommunicationsOverrideMode, CACC_ControlMode, OutputDevice::closeTag(), MSCFModel::MSCFModel(), OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_STATE, SUMO_TAG_CFM_VARIABLES, and OutputDevice::writeAttr().
|
inherited |
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().
| CommunicationsOverrideMode MSCFModel_CACC::CACCVehicleVariables::CACC_CommunicationsOverrideMode |
Definition at line 228 of file MSCFModel_CACC.h.
Referenced by MSCFModel_CACC::_v(), CACCVehicleVariables(), MSCFModel_CACC::createVehicleVariables(), MSCFModel_CACC::getParameter(), loadState(), saveState(), and MSCFModel_CACC::setParameter().
| int MSCFModel_CACC::CACCVehicleVariables::CACC_ControlMode |
The vehicle's CACC precious time step gap error.
Definition at line 227 of file MSCFModel_CACC.h.
Referenced by MSCFModel_CACC::_v(), CACCVehicleVariables(), MSCFModel_CACC::createVehicleVariables(), loadState(), and saveState().
|
inherited |
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().