SimDriver  0.1
Public Member Functions | Protected Attributes | List of all members
agent_model::DistanceTimeInterval Class Reference

Public Member Functions

void setDelta (double delta)
 
bool isSet () const
 
void setScale (double scale)
 
double getScale () const
 
void update (double position, double time)
 
void setTimeInterval (double timeInterval)
 
void setEndPosition (double endPosition)
 
void reset ()
 
double getFactor () const
 
double getScaledFactor () const
 

Protected Attributes

double _actualPosition = 0.0
 The actual position.
 
double _actualTime = 0.0
 The actual time.
 
double _startTime = INFINITY
 The start time.
 
double _endTime = INFINITY
 The end time.
 
double _startPosition = INFINITY
 The start position.
 
double _endPosition = INFINITY
 The end position.
 
double _scale = 1.0
 The factor to be scaled.
 
double _delta = 1.0
 The power to calculate the scale.
 

Member Function Documentation

◆ getFactor()

double agent_model::DistanceTimeInterval::getFactor ( ) const
inline

Returns the normalized factor

Returns
The normalized factor

◆ getScale()

double agent_model::DistanceTimeInterval::getScale ( ) const
inline

Returns the scale parameter

Returns
The scale parameter

◆ getScaledFactor()

double agent_model::DistanceTimeInterval::getScaledFactor ( ) const
inline

Returns the scaled factor of the interval

Returns
The scaled factor

◆ isSet()

bool agent_model::DistanceTimeInterval::isSet ( ) const
inline

Returns a flag whether the interval is set or not

Returns
Flag

◆ reset()

void agent_model::DistanceTimeInterval::reset ( )
inline

Resets the set interval Does not reset the actual position and time

◆ setDelta()

void agent_model::DistanceTimeInterval::setDelta ( double  delta)
inline

Sets the power of the scale

Parameters
deltaPower of the scale

◆ setEndPosition()

void agent_model::DistanceTimeInterval::setEndPosition ( double  endPosition)
inline

Sets the desired end position of the interval

Parameters
endPositionEnd position of the interval

◆ setScale()

void agent_model::DistanceTimeInterval::setScale ( double  scale)
inline

Sets the scale for the factor

Parameters
scaleScale

◆ setTimeInterval()

void agent_model::DistanceTimeInterval::setTimeInterval ( double  timeInterval)
inline

Sets the desired time interval

Parameters
timeIntervalTime interval

◆ update()

void agent_model::DistanceTimeInterval::update ( double  position,
double  time 
)
inline

Update the actual state

Parameters
positionActual position
timeActual time

The documentation for this class was generated from the following file: