Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

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 121 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 130 of file BanditMachine.h.

References b, l, and r.

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 133 of file BanditMachine.h.

References b, karmedbanditExp3_1::decide(), StateNode::DoStart(), StateNode::DoStop(), l, and r.

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 145 of file BanditMachine.h.

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

the node to go to if the left paw is chosen

Definition at line 146 of file BanditMachine.h.

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

the node to go to if the right paw is chosen

Definition at line 147 of file BanditMachine.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:08:48 2003 by Doxygen 1.3.2