Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
RandomTrans Class Reference#include <RandomTrans.h>
Inheritance diagram for RandomTrans:
![]() Detailed DescriptionA transition that fires immediately, randomly choosing one destination node to activate.This class should be extended in the following way: setHistoryLength(int n) to maintain a history of recent choices that are not to be reused, i.e., drawing without replacement Definition at line 16 of file RandomTrans.h.
Constructor & Destructor Documentation
constructor, only to be called by subclasses (which need to specify their own classname)
Definition at line 19 of file RandomTrans.cc.
Member Function Documentation
Add a destination node with weight==1 (see addDestination(StateNode* dest, float weight) to specify a different weight).
Reimplemented from Transition. Definition at line 25 of file RandomTrans.h.
Add a destination node with an specified weight (other version of addDestination() assumes weight==1).
Definition at line 25 of file RandomTrans.cc.
Firing this type of transition activates one destination node at random, instead of all nodes. Reimplemented from Transition. Definition at line 34 of file RandomTrans.cc.
adds a weight entry to the back of the queue
Definition at line 30 of file RandomTrans.cc. Referenced by addDestination(), and RandomTrans().
Member Data Documentation
the probably of selection for each source
Definition at line 42 of file RandomTrans.h. Referenced by addWeight(), and fire().
The documentation for this class was generated from the following files: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:37 2007 by Doxygen 1.5.4 |