Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

TimeOutTrans Class Reference

#include <TimeOutTrans.h>

Inheritance diagram for TimeOutTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition after a specified amount of time has passed

Definition at line 9 of file TimeOutTrans.h.

Public Member Functions

 TimeOutTrans (StateNode *source, StateNode *destination, unsigned int delay)
 constructor, specify delay in milliseconds

virtual void enable ()
 starts timer

virtual void disable ()
 stops timer

void resetTimer ()
 resets timer

virtual void processEvent (const EventBase &)
 if we receive the timer event, activate()


Protected Attributes

unsigned int d
 amount to delay (in milliseconds) before transition


Constructor & Destructor Documentation

TimeOutTrans::TimeOutTrans StateNode source,
StateNode destination,
unsigned int  delay
[inline]
 

constructor, specify delay in milliseconds

Definition at line 12 of file TimeOutTrans.h.

References d.


Member Function Documentation

virtual void TimeOutTrans::disable  )  [inline, virtual]
 

stops timer

Implements Transition.

Definition at line 18 of file TimeOutTrans.h.

References erouter, and EventRouter::forgetListener().

virtual void TimeOutTrans::enable  )  [inline, virtual]
 

starts timer

Implements Transition.

Definition at line 15 of file TimeOutTrans.h.

References resetTimer().

virtual void TimeOutTrans::processEvent const EventBase  )  [inline, virtual]
 

if we receive the timer event, activate()

Implements EventListener.

Definition at line 24 of file TimeOutTrans.h.

References Transition::activate().

void TimeOutTrans::resetTimer  )  [inline]
 

resets timer

Definition at line 21 of file TimeOutTrans.h.

References EventRouter::addTimer(), d, and erouter.


Member Data Documentation

unsigned int TimeOutTrans::d [protected]
 

amount to delay (in milliseconds) before transition

Definition at line 29 of file TimeOutTrans.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:13 2003 by Doxygen 1.3.2