93 void setParameter(
const std::string& key,
const std::string& value);
104 double initialAwareness,
105 double errorTimeScaleCoefficient,
106 double errorNoiseIntensityCoefficient,
107 double speedDifferenceErrorCoefficient,
108 double speedDifferenceChangePerceptionThreshold,
109 double headwayChangePerceptionThreshold,
110 double headwayErrorCoefficient,
111 double freeSpeedErrorCoefficient,
112 double maximalReactionTime);
The ToC Device controls transition of control between automated and manual driving.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
MSVehicle * myHolderMS
The holder vehicle casted to MSVehicle*.
double myErrorTimeScaleCoefficient
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_DriverState-options.
MSDevice_DriverState(const MSDevice_DriverState &)
Invalidated copy constructor.
void setParameter(const std::string &key, const std::string &value)
try to set the given parameter for this device. Throw exception for unsupported key
double myErrorNoiseIntensityCoefficient
std::shared_ptr< MSSimpleDriverState > getDriverState() const
return internal state
const std::string deviceName() const
return the name for this type of device
void initDriverState()
Initialises the driver state parameters.
double myFreeSpeedErrorCoefficient
~MSDevice_DriverState()
Destructor.
double myHeadwayChangePerceptionThreshold
double myMaximalReactionTime
double mySpeedDifferenceChangePerceptionThreshold
std::shared_ptr< MSSimpleDriverState > myDriverState
The driver state of the holder.
MSDevice_DriverState & operator=(const MSDevice_DriverState &)
Invalidated assignment operator.
std::string getParameter(const std::string &key) const
try to retrieve the given parameter from this device. Throw exception for unsupported key
void update()
update internal state
double myHeadwayErrorCoefficient
double myInitialAwareness
double mySpeedDifferenceErrorCoefficient
Provides an interface to an error whose fluctuation is controlled via the driver's 'awareness',...
Abstract in-vehicle device.
Representation of a vehicle in the micro simulation.
A storage for options typed value containers)
Representation of a vehicle.