SUMO - Simulation of Urban MObility
MSVehicle::Influencer::GapControlState Struct Reference

Container for state and parameters of the gap control. More...

Collaboration diagram for MSVehicle::Influencer::GapControlState:
Collaboration graph

Public Member Functions

void activate (double tauOriginal, double tauTarget, double additionalGap, double duration, double changeRate, double maxDecel)
 
void deactivate ()
 
 GapControlState ()
 

Data Fields

bool active
 Whether the gap control is active. More...
 
double addGapCurrent
 Current, interpolated value for the desired space headway. More...
 
double addGapTarget
 Target value for the desired space headway. More...
 
double changeRate
 Rate by which the current time and space headways are changed towards the target value. (A rate of one corresponds to reaching the target value within one second) More...
 
bool gapAttained
 Whether the desired gap was attained during the current activity phase (induces the remaining duration to decrease) More...
 
SUMOTime lastUpdate
 Time of the last update of the gap control. More...
 
double maxDecel
 Maximal deceleration to be applied due to the adapted headway. More...
 
const MSVehicleprevLeader
 The last recognized leader. More...
 
double remainingDuration
 Remaining duration for keeping the target headway. More...
 
double spaceHeadwayIncrement
 
double tauCurrent
 Current, interpolated value for the desired time headway. More...
 
double tauOriginal
 Original value for the desired headway (will be reset after duration has expired) More...
 
double tauTarget
 Target value for the desired time headway. More...
 
double timeHeadwayIncrement
 cache storage for the headway increments of the current operation More...
 

Detailed Description

Container for state and parameters of the gap control.

Definition at line 1358 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ GapControlState()

MSVehicle::Influencer::GapControlState::GapControlState ( )

Definition at line 243 of file MSVehicle.cpp.

Member Function Documentation

◆ activate()

void MSVehicle::Influencer::GapControlState::activate ( double  tauOriginal,
double  tauTarget,
double  additionalGap,
double  duration,
double  changeRate,
double  maxDecel 
)

◆ deactivate()

void MSVehicle::Influencer::GapControlState::deactivate ( )

Definition at line 272 of file MSVehicle.cpp.

References active.

Field Documentation

◆ active

bool MSVehicle::Influencer::GapControlState::active

Whether the gap control is active.

Definition at line 1380 of file MSVehicle.h.

Referenced by activate(), and deactivate().

◆ addGapCurrent

double MSVehicle::Influencer::GapControlState::addGapCurrent

Current, interpolated value for the desired space headway.

Definition at line 1369 of file MSVehicle.h.

Referenced by activate().

◆ addGapTarget

double MSVehicle::Influencer::GapControlState::addGapTarget

Target value for the desired space headway.

Definition at line 1371 of file MSVehicle.h.

Referenced by activate().

◆ changeRate

double MSVehicle::Influencer::GapControlState::changeRate

Rate by which the current time and space headways are changed towards the target value. (A rate of one corresponds to reaching the target value within one second)

Definition at line 1376 of file MSVehicle.h.

Referenced by activate().

◆ gapAttained

bool MSVehicle::Influencer::GapControlState::gapAttained

Whether the desired gap was attained during the current activity phase (induces the remaining duration to decrease)

Definition at line 1382 of file MSVehicle.h.

Referenced by activate().

◆ lastUpdate

SUMOTime MSVehicle::Influencer::GapControlState::lastUpdate

Time of the last update of the gap control.

Definition at line 1386 of file MSVehicle.h.

Referenced by activate().

◆ maxDecel

double MSVehicle::Influencer::GapControlState::maxDecel

Maximal deceleration to be applied due to the adapted headway.

Definition at line 1378 of file MSVehicle.h.

Referenced by activate().

◆ prevLeader

const MSVehicle* MSVehicle::Influencer::GapControlState::prevLeader

The last recognized leader.

Definition at line 1384 of file MSVehicle.h.

Referenced by activate().

◆ remainingDuration

double MSVehicle::Influencer::GapControlState::remainingDuration

Remaining duration for keeping the target headway.

Definition at line 1373 of file MSVehicle.h.

Referenced by activate().

◆ spaceHeadwayIncrement

double MSVehicle::Influencer::GapControlState::spaceHeadwayIncrement

Definition at line 1388 of file MSVehicle.h.

Referenced by activate().

◆ tauCurrent

double MSVehicle::Influencer::GapControlState::tauCurrent

Current, interpolated value for the desired time headway.

Definition at line 1365 of file MSVehicle.h.

Referenced by activate().

◆ tauOriginal

double MSVehicle::Influencer::GapControlState::tauOriginal

Original value for the desired headway (will be reset after duration has expired)

Definition at line 1363 of file MSVehicle.h.

Referenced by activate().

◆ tauTarget

double MSVehicle::Influencer::GapControlState::tauTarget

Target value for the desired time headway.

Definition at line 1367 of file MSVehicle.h.

Referenced by activate().

◆ timeHeadwayIncrement

double MSVehicle::Influencer::GapControlState::timeHeadwayIncrement

cache storage for the headway increments of the current operation

Definition at line 1388 of file MSVehicle.h.

Referenced by activate().


The documentation for this struct was generated from the following files: