Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TASK::CTask Class Reference

#include <CTask.hpp>

Inheritance diagram for TASK::CTask:

Inheritance graph
[legend]
Collaboration diagram for TASK::CTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CTask ()
 CTask (std::string strName, int nThreads=1, CTasksControler *pTaskControler=0)
virtual ~CTask ()
void resetCounters ()
virtual EStoppingWay stoppingWay ()
virtual void start () throw (CTaskException)
virtual void stop ()
void setWaterMarks (size_t high, size_t low)
const CStateObservable & getState ()
virtual void stopActions ()
virtual void startActions ()
virtual void termActions ()
const std::string get_strName () const
const int get_nNumThreads () const
const CTasksControler * get_pTaskControler () const
const int get_nRunningThreads () const
const STaskCounters get_taskCounters () const

Protected Member Functions

virtual void step ()=0
virtual void preStoppingActions ()
void incInputCounter ()
void incOutputCounter ()

Protected Attributes

bool m_bToStop
ACE_Thread_Mutex m_stateMutex
ACE_Thread_Mutex m_countersMutex
bool m_bIsHeadTask

Constructor & Destructor Documentation

TASK::CTask::CTask (    ) 
 

TASK::CTask::CTask (  std::string    strName,
int    nThreads = 1,
CTasksControler *    pTaskControler = 0
) 
 

TASK::CTask::~CTask (    )  [virtual]
 


Member Function Documentation

const int TASK::CTask::get_nNumThreads (    )  const [inline]
 

const int TASK::CTask::get_nRunningThreads (    )  const [inline]
 

const CTasksControler * TASK::CTask::get_pTaskControler (    )  const [inline]
 

const std::string TASK::CTask::get_strName (    )  const [inline]
 

const STaskCounters TASK::CTask::get_taskCounters (    )  const [inline]
 

const CStateObservable & TASK::CTask::getState (    ) 
 

void TASK::CTask::incInputCounter (    )  [protected]
 

void TASK::CTask::incOutputCounter (    )  [protected]
 

void TASK::CTask::preStoppingActions (    )  [protected, virtual]
 

Reimplemented in TASK::CChainTask< MessageType >, TASK::CChainTask< Msg >, and TASK::CChainTask< SOCKETS::CapturaTrafico >.

void TASK::CTask::resetCounters (    ) 
 

void TASK::CTask::setWaterMarks (  size_t    high,
size_t    low
) 
 

void TASK::CTask::start (    )  throw (CTaskException) [virtual]
 

void TASK::CTask::startActions (    )  [virtual]
 

virtual void TASK::CTask::step (    )  [protected, pure virtual]
 

void TASK::CTask::stop (    )  [virtual]
 

void TASK::CTask::stopActions (    )  [virtual]
 

EStoppingWay TASK::CTask::stoppingWay (    )  [virtual]
 

Reimplemented in TASK::CChainTask< MessageType >, TASK::CChainTask< Msg >, and TASK::CChainTask< SOCKETS::CapturaTrafico >.

void TASK::CTask::termActions (    )  [virtual]
 


Member Data Documentation

bool TASK::CTask::m_bIsHeadTask [protected]
 

bool TASK::CTask::m_bToStop [protected]
 

ACE_Thread_Mutex TASK::CTask::m_countersMutex [protected]
 

ACE_Thread_Mutex TASK::CTask::m_stateMutex [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 21:34:36 2003 for JIC by doxygen1.3-rc3