Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

FridgeThread Class Reference
[ACS Components Examples]

#include <acsexmplFridgeImpl.h>

Inheritance diagram for FridgeThread:

Inheritance graph
[legend]
Collaboration diagram for FridgeThread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FridgeThread (const ACE_CString &name, FridgeControl *fridgeControl, const ACS::TimeInterval &responseTime=ThreadBase::defaultResponseTime, const ACS::TimeInterval &sleepTime=ThreadBase::defaultSleepTime)
 ~FridgeThread ()
virtual void runLoop ()

Protected Attributes

int loopCounter_m
FridgeControlfridgeControl_p

Detailed Description

The class FridgeThread is a thread used by the FridgeControl class to update the fridge's temperature.


Constructor & Destructor Documentation

FridgeThread::FridgeThread const ACE_CString &  name,
FridgeControl fridgeControl,
const ACS::TimeInterval responseTime = ThreadBase::defaultResponseTime,
const ACS::TimeInterval sleepTime = ThreadBase::defaultSleepTime
[inline]
 

FridgeThread::~FridgeThread  )  [inline]
 


Member Function Documentation

virtual void FridgeThread::runLoop  )  [virtual]
 

Basic used hook to implement the thread functionality in a periodic loop. The method is executed in a loop until the thread is alive and every #responseTime 100ns by the run method. The thread can be exited from the lop by calling ACS::ThreadBase::stop or ACS::ThreadBase::exit command. If the run method is overridden than runLoop is not executed.

Reimplemented from ACS::Thread.


Member Data Documentation

FridgeControl* FridgeThread::fridgeControl_p [protected]
 

int FridgeThread::loopCounter_m [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:27 2009 for ACS C++ API by doxygen 1.3.8