Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

net::AgentHandler Class Reference

The AgentHandler allows one to define the way the Agent service behaves on given events. More...

#include <AgentHandler.h>

List of all members.

Public Member Functions

void LaunchTaskThread ()
 Launches the task thread. A new thread is created and calls the HandleDescriptor() method.
virtual int CheckDescriptor (string)=0
virtual void HandleDescriptor (string)=0
 AgentHandler ()
 Constructor for AgentHandler.
int IsBusy ()
void SetTaskDescriptor (string aDesc)
string GetTaskDescriptor ()
 Gets the current UML task descriptor.
PRThread * createThread (PRThreadType type, void(*start)(void *arg), void *arg, PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize, PRInt32 index)

Protected Member Functions

void SetBusyState (int aState)

Protected Attributes

int mIsBusy
PRThread * mTaskThread
string mTaskDescriptor

Friends

void PR_CALLBACK task_thread (void *)


Detailed Description

The AgentHandler allows one to define the way the Agent service behaves on given events.

Author:
Laurent Moutel


Member Function Documentation

net::AgentHandler::GetTaskDescriptor  )  [inline]
 

Gets the current UML task descriptor.

Returns:
The current task descriptor as a string

net::AgentHandler::IsBusy  )  [inline]
 

Returns:
The state of the agent. true or false.


Member Data Documentation

int net::AgentHandler::mIsBusy [protected]
 

If the agent is processing a task, mIsBusy is true

string net::AgentHandler::mTaskDescriptor [protected]
 

The UML task descriptor is stored in this string

PRThread* net::AgentHandler::mTaskThread [protected]
 

Task processing thread


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4