Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CompletionTrans Class Reference

#include <CompletionTrans.h>

Inheritance diagram for CompletionTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition when at least n sources have signalled completion; n = 0 means "all" (default)

Definition at line 10 of file CompletionTrans.h.

Public Member Functions

 CompletionTrans (StateNode *destination, int n=0)
 constructor, pass destination and the minimum number of sources which must signal completion before this transition will fire
 CompletionTrans (const std::string &name, StateNode *destination, int n=0)
 constructor, pass name, destination and the minimum number of times the source must signal completion beyond the first (n)
virtual void DoStart ()
 starts listening
virtual void DoStop ()
 stops listening
virtual void processEvent (const EventBase &event)
 record completions, and fire the transition if all sources have completed

Protected Member Functions

 CompletionTrans (const std::string &classname, const std::string &instancename, StateNode *destination, int n=0)
 constructor, this version is only need by subclasses so they can pass their type name
Dummy functions to satisfy the compiler
 CompletionTrans (const CompletionTrans &)
 don't call this
CompletionTransoperator= (const CompletionTrans &)
 don't call this

Protected Attributes

int minsrcs
 the minimum number of sources which must signal completion before this transition will fire
bool * completions
 pointer to array for recording completion events for all sources


The documentation for this class was generated from the following file:

Tekkotsu v3.0
Generated Fri May 11 20:07:49 2007 by Doxygen 1.4.7