CompletionTrans Class Reference#include <CompletionTrans.h>
Inheritance diagram for CompletionTrans:
[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
|
|
| CompletionTrans (const CompletionTrans &) |
| don't call this
|
CompletionTrans & | operator= (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
|
Constructor & Destructor Documentation
CompletionTrans::CompletionTrans |
( |
StateNode * |
destination, |
|
|
int |
n = 0 |
|
) |
[inline] |
|
|
constructor, pass destination and the minimum number of sources which must signal completion before this transition will fire
Definition at line 17 of file CompletionTrans.h. |
CompletionTrans::CompletionTrans |
( |
const std::string & |
name, |
|
|
StateNode * |
destination, |
|
|
int |
n = 0 |
|
) |
[inline] |
|
|
constructor, pass name, destination and the minimum number of times the source must signal completion beyond the first (n)
Definition at line 21 of file CompletionTrans.h. |
CompletionTrans::CompletionTrans |
( |
const std::string & |
classname, |
|
|
const std::string & |
instancename, |
|
|
StateNode * |
destination, |
|
|
int |
n = 0 |
|
) |
[inline, protected] |
|
|
constructor, this version is only need by subclasses so they can pass their type name
Definition at line 60 of file CompletionTrans.h. |
Member Function Documentation
virtual void CompletionTrans::DoStart |
( |
|
) |
[inline, virtual] |
|
virtual void CompletionTrans::DoStop |
( |
|
) |
[inline, virtual] |
|
virtual void CompletionTrans::processEvent |
( |
const EventBase & |
event |
) |
[inline, virtual] |
|
|
record completions, and fire the transition if all sources have completed
Reimplemented from BehaviorBase.
Definition at line 47 of file CompletionTrans.h. |
Member Data Documentation
The documentation for this class was generated from the following file:
|