Homepage Demos Overview Downloads Tutorials Reference
Credits

BanditMachine::WaitNode Class Reference

#include <BanditMachine.h>

Inheritance diagram for BanditMachine::WaitNode:

Inheritance graph
[legend]
List of all members.

Detailed Description

Waits to see if a reward is received, lights up LEDs to let the user know.

Definition at line 158 of file BanditMachine.h.

Public Member Functions

 WaitNode (const char *n, StateNode *p, karmedbanditExp3_1 &bandito)
 constructor
virtual ~WaitNode ()
 destructor
virtual void DoStart ()
 Transitions should call this when you are entering the state, so it can enable its transitions.
virtual void DoStop ()
 Transitions should call this when you are leaving the state, so it can disable its transitions.
virtual void processEvent (const EventBase &event)
 By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Protected Attributes

karmedbanditExp3_1b
 the class implimenting a k-armed bandit algorithm to pass the reward back to
bool reward
 true if a reward was received
MotionManager::MC_ID leds_id
 MC_ID of a LedMC.


Constructor & Destructor Documentation

BanditMachine::WaitNode::WaitNode const char *  n,
StateNode p,
karmedbanditExp3_1 bandito
[inline]
 

constructor

Definition at line 165 of file BanditMachine.h.

virtual BanditMachine::WaitNode::~WaitNode  )  [inline, virtual]
 

destructor

Definition at line 171 of file BanditMachine.h.


Member Function Documentation

virtual void BanditMachine::WaitNode::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 174 of file BanditMachine.h.

virtual void BanditMachine::WaitNode::DoStop  )  [inline, virtual]
 

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

Reimplemented from StateNode.

Definition at line 181 of file BanditMachine.h.

virtual void BanditMachine::WaitNode::processEvent const EventBase event  )  [inline, virtual]
 

By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Reimplemented from BehaviorBase.

Definition at line 188 of file BanditMachine.h.


Member Data Documentation

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

the class implimenting a k-armed bandit algorithm to pass the reward back to

Definition at line 200 of file BanditMachine.h.

Referenced by DoStop(), and WaitNode().

MotionManager::MC_ID BanditMachine::WaitNode::leds_id [protected]
 

MC_ID of a LedMC.

Definition at line 202 of file BanditMachine.h.

Referenced by DoStart(), processEvent(), WaitNode(), and ~WaitNode().

bool BanditMachine::WaitNode::reward [protected]
 

true if a reward was received

Definition at line 201 of file BanditMachine.h.

Referenced by DoStop(), processEvent(), and WaitNode().


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

Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:43 2004 by Doxygen 1.3.9.1