8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
45 {
Std_TraceMsg(0,
"Caught Error in desctructor of DelayLine\r\n",
"", -1,
false,
true);}
DelayLine()
Default constructor.
Base class file for all Animat simulation objects.
Root namespace for the base simulation library for AnimatLab.
CStdArray< float > m_aryRingBuf
Ring buffer of float values.
void AddValue(float fltVal)
Adds a value to the begining of the line.
int m_iDelayComp
Size of the ring buffer-1.
Declares the delay line class.
int m_iSaveIdx
The index where the next new value will be saved in the ring.
void Initialize(float fltDelayTime, float fltTimeStep)
Initializes the Delay line.
float ReadValue()
Reads the current value at the end of the delay line.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual ~DelayLine()
Destructor.
int m_iReadIdx
The index where we read the current top value off the ring.
int m_iDelaySize
Size of the ring buffer.