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

AAA_StateMachineWithTimer< ARG > Class Template Reference

#include <framework.h>

Inheritance diagram for AAA_StateMachineWithTimer< ARG >:

AAA_StateMachine< ARG > AAA_StateMachineBase List of all members.

Public Member Functions

void ScheduleTimer (AAA_Event ev, ACE_UINT32 sec, ACE_UINT32 usec=0, int type=0)
void CancelTimer (int type=0)
 This function is used for canceling a timer event.

void CancelAllTimer ()
 Cancel all scheduled timers for this state machine.


Protected Member Functions

 AAA_StateMachineWithTimer (ARG &arg, AAA_StateTable< ARG > &table, ACE_Reactor &r, char *name=0)
virtual ~AAA_StateMachineWithTimer ()
 Overloaded by derived class's destractors.

virtual void Timeout (AAA_Event ev)=0

Detailed Description

template<class ARG>
class AAA_StateMachineWithTimer< ARG >

State machine with timer handling. See State Machine With Timer Management.


Constructor & Destructor Documentation

template<class ARG>
AAA_StateMachineWithTimer< ARG >::AAA_StateMachineWithTimer ARG &  arg,
AAA_StateTable< ARG > &  table,
ACE_Reactor &  r,
char *  name = 0
[inline, protected]
 

Constructor. ACE_Reactor maintains the timer queue and is bound to a specific thread.


Member Function Documentation

template<class ARG>
void AAA_StateMachineWithTimer< ARG >::ScheduleTimer AAA_Event  ev,
ACE_UINT32  sec,
ACE_UINT32  usec = 0,
int  type = 0
[inline]
 

This function is used for scheduling a timer event. Once scheduled, the same timer event will occur at every specified interval. To stop the timer event, use CancelTimer().

template<class ARG>
virtual void AAA_StateMachineWithTimer< ARG >::Timeout AAA_Event  ev  )  [protected, pure virtual]
 

This function is called from handle_timeout() when a timer event occurs.


The documentation for this class was generated from the following file:
Generated on Fri Jun 25 17:35:04 2004 for Framework API for Task Management and Protocol State Machines by doxygen 1.3.5