OpenDaVINCI  4.15.3
odcontext::base::TimeTriggeredConferenceClientModuleRunner Class Reference

#include <TimeTriggeredConferenceClientModuleRunner.h>

Inheritance diagram for odcontext::base::TimeTriggeredConferenceClientModuleRunner:
Inheritance graph

Public Member Functions

 TimeTriggeredConferenceClientModuleRunner (odcore::base::module::TimeTriggeredConferenceClientModule &ttccm)
 
virtual ~TimeTriggeredConferenceClientModuleRunner ()
 
virtual void step (const odcore::wrapper::Time &t)
 
virtual bool hasFinished () const
 
bool needsExecution (const odcore::wrapper::Time &t) const
 
void start ()
 
void stop ()
 
void serviceReady ()
 

Protected Member Functions

virtual void beforeStop ()
 
virtual void run ()
 
virtual bool isRunning ()
 

Detailed Description

This class encapsulates a given TimeTriggeredConferenceClientModule into an independent thread which is controlled by the given breakpoint created by this class.

Constructor & Destructor Documentation

odcontext::base::TimeTriggeredConferenceClientModuleRunner::TimeTriggeredConferenceClientModuleRunner ( odcore::base::module::TimeTriggeredConferenceClientModule ttccm)

Constructor.

Parameters
ttccmTimeTriggeredConferenceClientModule which is to be executed.

References odcore::base::module::InterruptibleModule::setBreakpoint().

odcontext::base::TimeTriggeredConferenceClientModuleRunner::~TimeTriggeredConferenceClientModuleRunner ( )
virtual

Member Function Documentation

void odcontext::base::TimeTriggeredConferenceClientModuleRunner::beforeStop ( )
protectedvirtual
bool odcontext::base::TimeTriggeredConferenceClientModuleRunner::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 from odcontext::base::Runner.

bool odcore::base::Service::isRunning ( )
protectedvirtualinherited

This method returns true, iff this runnable is in its internal state for running.

Returns
true iff this runnable is in its internal state for running.

Implements odcore::wrapper::Runnable.

bool odcontext::base::Runner::needsExecution ( const odcore::wrapper::Time t) const
inherited
void odcontext::base::TimeTriggeredConferenceClientModuleRunner::run ( )
protectedvirtual
void odcore::base::Service::serviceReady ( )
inherited

This method has to be called by the run() method to unblock the start() method when the service is fully initialized.

Referenced by run().

void odcore::base::Service::start ( )
inherited

This method starts the service and will block the calling thread until serviceReady() is called.

Referenced by step(), and odcore::io::udp::UDPReceiver::UDPReceiver().

void odcore::base::Service::stop ( )
inherited

This method stops the service. A stopped service CANNOT get restarted.

Referenced by odcore::io::PacketPipeline::~PacketPipeline(), and odcore::io::udp::UDPReceiver::~UDPReceiver().