edu.iastate.jrelm.demo.bandit
Class BanditAction

java.lang.Object
  extended by edu.iastate.jrelm.core.SimpleAction<java.lang.Integer>
      extended by edu.iastate.jrelm.demo.bandit.BanditAction
All Implemented Interfaces:
Action<java.lang.Integer>

public class BanditAction
extends SimpleAction<java.lang.Integer>


Constructor Summary
BanditAction(java.lang.Integer id, java.lang.Integer armNumber)
          Construct a BanditAction with the given ID and a choice of arm to pull.
 
Method Summary
 java.lang.Integer getAct()
          Here the plan of action is which arm to pull.
 
Methods inherited from class edu.iastate.jrelm.core.SimpleAction
getID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BanditAction

public BanditAction(java.lang.Integer id,
                    java.lang.Integer armNumber)
Construct a BanditAction with the given ID and a choice of arm to pull.

Parameters:
id - - ID for this action
armNumber - - which arm to pull
Method Detail

getAct

public java.lang.Integer getAct()
Here the plan of action is which arm to pull.

Overrides:
getAct in class SimpleAction<java.lang.Integer>
Returns:
- course of action