GroupNode Class Reference#include <GroupNode.h>
Inheritance diagram for GroupNode:
[legend]List of all members.
Detailed Description
Allows a group of StateNodes to be activated together.
When a transition occurs into the group node, it will activate all of its subnodes.
Note that this doesn't occur if there's a transition to one of the sub nodes... only when the main group node itself transitions.
The group node doesn't deactivate its subnodes together however. In essence, this is a fork - one transition can activate several states, which are then separate branches of execution. (Although only one is actually being executed at a time)
Another (probably better) way to do this is with a multi-destination transition - after the initialization of the transition (usually specifying the first transition) you can call the Transition::addDestination() function to add addition destinations, replicating the functionality of this class.
Definition at line 26 of file GroupNode.h.
Constructor & Destructor Documentation
GroupNode::GroupNode |
( |
|
) |
[inline] |
|
GroupNode::GroupNode |
( |
const std::string & |
nm |
) |
[inline, explicit] |
|
GroupNode::GroupNode |
( |
const GroupNode & |
node |
) |
[private] |
|
Member Function Documentation
virtual void GroupNode::DoStart |
( |
|
) |
[inline, virtual] |
|
The documentation for this class was generated from the following file:
|