aima.learning.reinforcement
Class MDPAgent<STATE_TYPE,ACTION_TYPE>
java.lang.Object
aima.learning.reinforcement.MDPAgent<STATE_TYPE,ACTION_TYPE>
- Direct Known Subclasses:
- PassiveADPAgent, PassiveTDAgent, QLearningAgent
public abstract class MDPAgent<STATE_TYPE,ACTION_TYPE>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mdp
protected MDP<STATE_TYPE,ACTION_TYPE> mdp
currentState
protected STATE_TYPE currentState
currentReward
protected java.lang.Double currentReward
previousState
protected STATE_TYPE previousState
previousAction
protected ACTION_TYPE previousAction
MDPAgent
public MDPAgent(MDP<STATE_TYPE,ACTION_TYPE> mdp)
execute
public MDPPerception<STATE_TYPE> execute(ACTION_TYPE action,
Randomizer r)
updateFromPerception
public void updateFromPerception(MDPPerception<STATE_TYPE> perception)
executeTrial
public void executeTrial(Randomizer r)
decideAction
public abstract ACTION_TYPE decideAction(MDPPerception<STATE_TYPE> perception)
getCurrentReward
public java.lang.Double getCurrentReward()
setCurrentReward
public void setCurrentReward(java.lang.Double currentReward)
getPreviousAction
public ACTION_TYPE getPreviousAction()
setPreviousAction
public void setPreviousAction(ACTION_TYPE previousAction)
getPreviousState
public STATE_TYPE getPreviousState()
setPreviousState
public void setPreviousState(STATE_TYPE previousState)
getCurrentState
public STATE_TYPE getCurrentState()