OpenDaVINCI  4.15.3
odcontext::base::Runner Class Referenceabstract

#include <Runner.h>

Inheritance diagram for odcontext::base::Runner:
Inheritance graph

Public Member Functions

virtual ~Runner ()
 
bool needsExecution (const odcore::wrapper::Time &t) const
 
virtual bool hasFinished () const
 
virtual float getFrequency () const =0
 

Protected Member Functions

 Runner ()
 

Detailed Description

This class is the base class for periodic executions.

Constructor & Destructor Documentation

odcontext::base::Runner::Runner ( )
protected

Protected constructor to enforce subclasses.

odcontext::base::Runner::~Runner ( )
virtual

Member Function Documentation

virtual float odcore::base::module::Periodic::getFrequency ( ) const
pure virtualinherited

This method returns the runtime frequency.

Returns
Runtime frequency.

Implemented in odcore::base::module::AbstractCIDModule.

Referenced by needsExecution().

bool odcontext::base::Runner::hasFinished ( ) const
virtual

This method should be overridden in subclasses to add an additional condition to the time needsExecution indicating whether an application has finished. This implementation simply returns always true.

Returns
true.

Reimplemented in odcontext::base::TimeTriggeredConferenceClientModuleRunner.

Referenced by needsExecution().