Provides an interface to an error whose fluctuation is controlled via the driver's 'awareness', which can be controlled externally,.
More...
#include <MSDriverState.h>
Provides an interface to an error whose fluctuation is controlled via the driver's 'awareness', which can be controlled externally,.
- See also
- MSDevice_ToC
Definition at line 114 of file MSDriverState.h.
◆ MSSimpleDriverState()
MSSimpleDriverState::MSSimpleDriverState |
( |
MSVehicle * |
veh | ) |
|
◆ ~MSSimpleDriverState()
virtual MSSimpleDriverState::~MSSimpleDriverState |
( |
| ) |
|
|
inlinevirtual |
◆ debugLocked()
bool MSSimpleDriverState::debugLocked |
( |
| ) |
const |
|
inline |
◆ getAwareness()
double MSSimpleDriverState::getAwareness |
( |
| ) |
const |
|
inline |
◆ getErrorNoiseIntensity()
double MSSimpleDriverState::getErrorNoiseIntensity |
( |
| ) |
const |
|
inline |
◆ getErrorNoiseIntensityCoefficient()
double MSSimpleDriverState::getErrorNoiseIntensityCoefficient |
( |
| ) |
const |
|
inline |
◆ getErrorState()
double MSSimpleDriverState::getErrorState |
( |
| ) |
const |
|
inline |
◆ getErrorTimeScale()
double MSSimpleDriverState::getErrorTimeScale |
( |
| ) |
const |
|
inline |
◆ getErrorTimeScaleCoefficient()
double MSSimpleDriverState::getErrorTimeScaleCoefficient |
( |
| ) |
const |
|
inline |
◆ getHeadwayChangePerceptionThreshold()
double MSSimpleDriverState::getHeadwayChangePerceptionThreshold |
( |
| ) |
const |
|
inline |
◆ getHeadwayErrorCoefficient()
double MSSimpleDriverState::getHeadwayErrorCoefficient |
( |
| ) |
const |
|
inline |
◆ getInitialAwareness()
double MSSimpleDriverState::getInitialAwareness |
( |
| ) |
const |
|
inline |
◆ getMinAwareness()
double MSSimpleDriverState::getMinAwareness |
( |
| ) |
const |
|
inline |
◆ getPerceivedHeadway()
double MSSimpleDriverState::getPerceivedHeadway |
( |
const double |
trueGap, |
|
|
const void * |
objID = nullptr |
|
) |
| |
- See also
- myHeadwayPerceptionError
Definition at line 197 of file MSDriverState.cpp.
References DEBUG_COND, debugLocked(), MSBaseVehicle::getID(), OUProcess::getState(), myAssumedGap, myAwareness, myError, myHeadwayChangePerceptionThreshold, myHeadwayErrorCoefficient, myVehicle, SIMTIME, and toString().
◆ getPerceivedSpeedDifference()
double MSSimpleDriverState::getPerceivedSpeedDifference |
( |
const double |
trueSpeedDifference, |
|
|
const double |
trueGap, |
|
|
const void * |
objID = nullptr |
|
) |
| |
This method checks whether the errorneous speed difference that would be perceived for this step differs sufficiently from the previously perceived to be actually perceived. If so, it sets the flag myReactionFlag[objID]=true, which should be checked just after the call to this method because it will be overwritten by subsequent calls.
Definition at line 255 of file MSDriverState.cpp.
References DEBUG_COND, debugLocked(), MSBaseVehicle::getID(), OUProcess::getState(), myAwareness, myError, myLastPerceivedSpeedDifference, mySpeedDifferenceChangePerceptionThreshold, mySpeedDifferenceErrorCoefficient, myVehicle, SIMTIME, and toString().
◆ getSpeedDifferenceChangePerceptionThreshold()
double MSSimpleDriverState::getSpeedDifferenceChangePerceptionThreshold |
( |
| ) |
const |
|
inline |
◆ getSpeedDifferenceErrorCoefficient()
double MSSimpleDriverState::getSpeedDifferenceErrorCoefficient |
( |
| ) |
const |
|
inline |
◆ lockDebug()
void MSSimpleDriverState::lockDebug |
( |
| ) |
|
|
inline |
◆ setAwareness()
void MSSimpleDriverState::setAwareness |
( |
const double |
value | ) |
|
◆ setErrorNoiseIntensity()
void MSSimpleDriverState::setErrorNoiseIntensity |
( |
const double |
value | ) |
|
|
inline |
◆ setErrorNoiseIntensityCoefficient()
void MSSimpleDriverState::setErrorNoiseIntensityCoefficient |
( |
const double |
value | ) |
|
|
inline |
◆ setErrorState()
void MSSimpleDriverState::setErrorState |
( |
const double |
state | ) |
|
|
inline |
◆ setErrorTimeScale()
void MSSimpleDriverState::setErrorTimeScale |
( |
const double |
value | ) |
|
|
inline |
◆ setErrorTimeScaleCoefficient()
void MSSimpleDriverState::setErrorTimeScaleCoefficient |
( |
const double |
value | ) |
|
|
inline |
◆ setHeadwayChangePerceptionThreshold()
void MSSimpleDriverState::setHeadwayChangePerceptionThreshold |
( |
const double |
value | ) |
|
|
inline |
◆ setHeadwayErrorCoefficient()
void MSSimpleDriverState::setHeadwayErrorCoefficient |
( |
const double |
value | ) |
|
|
inline |
◆ setInitialAwareness()
void MSSimpleDriverState::setInitialAwareness |
( |
const double |
value | ) |
|
|
inline |
◆ setMinAwareness()
void MSSimpleDriverState::setMinAwareness |
( |
const double |
value | ) |
|
|
inline |
◆ setSpeedDifferenceChangePerceptionThreshold()
void MSSimpleDriverState::setSpeedDifferenceChangePerceptionThreshold |
( |
const double |
value | ) |
|
|
inline |
◆ setSpeedDifferenceErrorCoefficient()
void MSSimpleDriverState::setSpeedDifferenceErrorCoefficient |
( |
const double |
value | ) |
|
|
inline |
◆ unlockDebug()
void MSSimpleDriverState::unlockDebug |
( |
| ) |
|
|
inline |
◆ update()
void MSSimpleDriverState::update |
( |
| ) |
|
Trigger updates for the errorProcess, assumed gaps, etc.
Definition at line 144 of file MSDriverState.cpp.
References DEBUG_COND, MSBaseVehicle::getID(), OUProcess::getState(), myError, myStepDuration, myVehicle, SIMTIME, updateAssumedGaps(), updateError(), and updateStepDuration().
◆ updateAssumedGaps()
void MSSimpleDriverState::updateAssumedGaps |
( |
| ) |
|
◆ updateError()
void MSSimpleDriverState::updateError |
( |
| ) |
|
|
private |
◆ updateStepDuration()
void MSSimpleDriverState::updateStepDuration |
( |
| ) |
|
|
private |
◆ myActionStepLength
double MSSimpleDriverState::myActionStepLength |
|
private |
◆ myAssumedGap
std::map<const void*, double> MSSimpleDriverState::myAssumedGap |
|
private |
◆ myAwareness
double MSSimpleDriverState::myAwareness |
|
private |
◆ myDebugLock
bool MSSimpleDriverState::myDebugLock |
|
private |
◆ myError
◆ myErrorNoiseIntensityCoefficient
double MSSimpleDriverState::myErrorNoiseIntensityCoefficient |
|
private |
Coefficient controlling the impact of awareness on the noise intensity of the error process.
Definition at line 281 of file MSDriverState.h.
Referenced by updateError().
◆ myErrorTimeScaleCoefficient
double MSSimpleDriverState::myErrorTimeScaleCoefficient |
|
private |
Coefficient controlling the impact of awareness on the time scale of the error process.
Definition at line 279 of file MSDriverState.h.
Referenced by updateError().
◆ myHeadwayChangePerceptionThreshold
double MSSimpleDriverState::myHeadwayChangePerceptionThreshold |
|
private |
Thresholds above a change in the corresponding quantity is perceived.
- Note
- In the comparison, we multiply the actual change amount by the current gap to the object to reflect a more precise perception if the object is closer.
Definition at line 289 of file MSDriverState.h.
Referenced by getPerceivedHeadway().
◆ myHeadwayErrorCoefficient
double MSSimpleDriverState::myHeadwayErrorCoefficient |
|
private |
◆ myInitialAwareness
double MSSimpleDriverState::myInitialAwareness |
|
private |
◆ myLastPerceivedSpeedDifference
std::map<const void*, double> MSSimpleDriverState::myLastPerceivedSpeedDifference |
|
private |
◆ myLastUpdateTime
double MSSimpleDriverState::myLastUpdateTime |
|
private |
◆ myMinAwareness
double MSSimpleDriverState::myMinAwareness |
|
private |
◆ mySpeedDifferenceChangePerceptionThreshold
double MSSimpleDriverState::mySpeedDifferenceChangePerceptionThreshold |
|
private |
◆ mySpeedDifferenceErrorCoefficient
double MSSimpleDriverState::mySpeedDifferenceErrorCoefficient |
|
private |
◆ myStepDuration
double MSSimpleDriverState::myStepDuration |
|
private |
◆ myVehicle
The documentation for this class was generated from the following files: