 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef MSDevice_DriverState_h
21 #define MSDevice_DriverState_h
103 return "driverstate";
110 void setParameter(
const std::string& key,
const std::string& value);
121 double initialAwareness,
122 double errorTimeScaleCoefficient,
123 double errorNoiseIntensityCoefficient,
124 double speedDifferenceErrorCoefficient,
125 double speedDifferenceChangePerceptionThreshold,
126 double headwayChangePerceptionThreshold,
127 double headwayErrorCoefficient,
128 double maximalReactionTime);
static double getHeadwayErrorCoefficient(const SUMOVehicle &v, const OptionsCont &oc)
std::shared_ptr< MSSimpleDriverState > getDriverState() const
return internal state
double myHeadwayChangePerceptionThreshold
double myErrorTimeScaleCoefficient
Provides an interface to an error whose fluctuation is controlled via the driver's 'awareness',...
double myInitialAwareness
Representation of a vehicle.
double mySpeedDifferenceErrorCoefficient
const std::string deviceName() const
return the name for this type of device
static double getErrorTimeScaleCoefficient(const SUMOVehicle &v, const OptionsCont &oc)
The ToC Device controls transition of control between automated and manual driving.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_DriverState-options.
double mySpeedDifferenceChangePerceptionThreshold
static double getMinAwareness(const SUMOVehicle &v, const OptionsCont &oc)
double myMaximalReactionTime
static double getHeadwayChangePerceptionThreshold(const SUMOVehicle &v, const OptionsCont &oc)
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
static double getMaximalReactionTime(const SUMOVehicle &v, const OptionsCont &oc)
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
A storage for options typed value containers)
void update()
update internal state
MSDevice_DriverState(const MSDevice_DriverState &)
Invalidated copy constructor.
MSVehicle * myHolderMS
The holder vehicle casted to MSVehicle*.
static double getSpeedDifferenceErrorCoefficient(const SUMOVehicle &v, const OptionsCont &oc)
static double getInitialAwareness(const SUMOVehicle &v, const OptionsCont &oc)
std::shared_ptr< MSSimpleDriverState > myDriverState
The driver state of the holder.
static double getErrorNoiseIntensityCoefficient(const SUMOVehicle &v, const OptionsCont &oc)
MSDevice_DriverState & operator=(const MSDevice_DriverState &)
Invalidated assignment operator.
MSDevice_DriverState(SUMOVehicle &holder, const std::string &id, double minAwareness, double initialAwareness, double errorTimeScaleCoefficient, double errorNoiseIntensityCoefficient, double speedDifferenceErrorCoefficient, double speedDifferenceChangePerceptionThreshold, double headwayChangePerceptionThreshold, double headwayErrorCoefficient, double maximalReactionTime)
Constructor.
void initDriverState()
Initializeses the driver state parameters.
double myHeadwayErrorCoefficient
static double getSpeedDifferenceChangePerceptionThreshold(const SUMOVehicle &v, const OptionsCont &oc)
std::string getParameter(const std::string &key) const
try to retrieve the given parameter from this device. Throw exception for unsupported key
Representation of a vehicle in the micro simulation.
~MSDevice_DriverState()
Destructor.
Abstract in-vehicle device.