Homepage Demos Overview Downloads Tutorials Reference
Credits

BanditMachine::DecideNode Class Reference

#include <BanditMachine.h>

Inheritance diagram for BanditMachine::DecideNode:

Inheritance graph
[legend]
List of all members.

Detailed Description

uses one of the algorithms in karmedbandit.h to decide which paw to press next

Definition at line 122 of file BanditMachine.h.

Public Member Functions

 DecideNode (const char *n, StateNode *p, karmedbanditExp3_1 &bandito, StateNode *left, StateNode *right)
 constructor
virtual void DoStart ()
 Transitions should call this when you are entering the state, so it can enable its transitions.

Protected Attributes

karmedbanditExp3_1b
 the class implementing the k-armed bandit algorithm
StateNodel
 the node to go to if the left paw is chosen
StateNoder
 the node to go to if the right paw is chosen

Private Member Functions

 DecideNode (const DecideNode &node)
 don't call this
DecideNode operator= (const DecideNode &node)
 don't call this


Constructor & Destructor Documentation

BanditMachine::DecideNode::DecideNode const char *  n,
StateNode p,
karmedbanditExp3_1 bandito,
StateNode left,
StateNode right
[inline]
 

constructor

Parameters:
n name of the node
p the parent node
bandito the decision making algorithm to use (look in karmedbandit.h)
left the PressNode to go to if the left paw is chosen
right the PressNode to go to if the right paw is chosen

Definition at line 131 of file BanditMachine.h.

BanditMachine::DecideNode::DecideNode const DecideNode node  )  [private]
 

don't call this


Member Function Documentation

virtual void BanditMachine::DecideNode::DoStart  )  [inline, virtual]
 

Transitions should call this when you are entering the state, so it can enable its transitions.

Reimplemented from StateNode.

Definition at line 134 of file BanditMachine.h.

DecideNode BanditMachine::DecideNode::operator= const DecideNode node  )  [private]
 

don't call this


Member Data Documentation

karmedbanditExp3_1& BanditMachine::DecideNode::b [protected]
 

the class implementing the k-armed bandit algorithm

Definition at line 148 of file BanditMachine.h.

Referenced by DecideNode(), and DoStart().

StateNode* BanditMachine::DecideNode::l [protected]
 

the node to go to if the left paw is chosen

Definition at line 149 of file BanditMachine.h.

Referenced by DecideNode(), and DoStart().

StateNode* BanditMachine::DecideNode::r [protected]
 

the node to go to if the right paw is chosen

Definition at line 150 of file BanditMachine.h.

Referenced by DecideNode(), and DoStart().


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

Tekkotsu v2.2
Generated Tue Oct 19 14:20:14 2004 by Doxygen 1.3.9.1