MIRA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TimeOffsetCompensation Class Reference

#include <fw/RemoteConnection.h>

Public Member Functions

 TimeOffsetCompensation (const TimeOffsetCompensation &other)
 
 TimeOffsetCompensation (const Duration &compensationInterval=Duration::seconds(10))
 
template<typename Reflector >
void reflect (Reflector &r)
 Reflect method for serialization. More...
 
bool isInitialized () const
 
Duration getCompensationInterval () const
 
void setCompensationInterval (const Duration &interval)
 
void setTargetOffset (const Duration &target, const Time &ts=Time::now())
 
Duration queryOffset (const Time &ts) const
 
Duration queryOffset () const
 
TimeOffsetCompensationoperator= (TimeOffsetCompensation other)
 
TimeOffsetCompensationoperator= (const Duration &target)
 
 operator Duration () const
 

Protected Member Functions

Duration offset (const Time &ts) const
 

Protected Attributes

int mCompensationInterval
 
Duration mTargetOffset
 
Duration mStartOffset
 
Time mStartTime
 
boost::mutex mMutex
 

Constructor & Destructor Documentation

◆ TimeOffsetCompensation() [1/2]

◆ TimeOffsetCompensation() [2/2]

TimeOffsetCompensation ( const Duration compensationInterval = Duration::seconds(10))
inlineexplicit

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

Reflect method for serialization.

◆ isInitialized()

bool isInitialized ( ) const
inline

◆ getCompensationInterval()

Duration getCompensationInterval ( ) const

◆ setCompensationInterval()

void setCompensationInterval ( const Duration interval)

◆ setTargetOffset()

void setTargetOffset ( const Duration target,
const Time ts = Time::now() 
)

◆ queryOffset() [1/2]

Duration queryOffset ( const Time ts) const

◆ queryOffset() [2/2]

Duration queryOffset ( ) const
inline

◆ operator=() [1/2]

TimeOffsetCompensation& operator= ( TimeOffsetCompensation  other)
inline

◆ operator=() [2/2]

TimeOffsetCompensation& operator= ( const Duration target)
inline

◆ operator Duration()

operator Duration ( ) const
inline

◆ offset()

Duration offset ( const Time ts) const
protected

Member Data Documentation

◆ mCompensationInterval

int mCompensationInterval
protected

◆ mTargetOffset

Duration mTargetOffset
protected

◆ mStartOffset

Duration mStartOffset
protected

◆ mStartTime

Time mStartTime
protected

◆ mMutex

boost::mutex mMutex
mutableprotected

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