aima.learning.reinforcement
Class QLearningAgent<STATE_TYPE,ACTION_TYPE>

java.lang.Object
  extended by aima.learning.reinforcement.MDPAgent<STATE_TYPE,ACTION_TYPE>
      extended by aima.learning.reinforcement.QLearningAgent<STATE_TYPE,ACTION_TYPE>

public class QLearningAgent<STATE_TYPE,ACTION_TYPE>
extends MDPAgent<STATE_TYPE,ACTION_TYPE>


Field Summary
 
Fields inherited from class aima.learning.reinforcement.MDPAgent
currentReward, currentState, mdp, previousAction, previousState
 
Constructor Summary
QLearningAgent(MDP<STATE_TYPE,ACTION_TYPE> mdp)
           
 
Method Summary
 ACTION_TYPE decideAction(MDPPerception<STATE_TYPE> perception)
           
 java.util.Hashtable<Pair<STATE_TYPE,ACTION_TYPE>,java.lang.Double> getQ()
           
 QTable<STATE_TYPE,ACTION_TYPE> getQTable()
           
 
Methods inherited from class aima.learning.reinforcement.MDPAgent
execute, executeTrial, getCurrentReward, getCurrentState, getPreviousAction, getPreviousState, setCurrentReward, setPreviousAction, setPreviousState, updateFromPerception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QLearningAgent

public QLearningAgent(MDP<STATE_TYPE,ACTION_TYPE> mdp)
Method Detail

decideAction

public ACTION_TYPE decideAction(MDPPerception<STATE_TYPE> perception)
Specified by:
decideAction in class MDPAgent<STATE_TYPE,ACTION_TYPE>

getQ

public java.util.Hashtable<Pair<STATE_TYPE,ACTION_TYPE>,java.lang.Double> getQ()

getQTable

public QTable<STATE_TYPE,ACTION_TYPE> getQTable()