aima.probability.decision
Class MDPRewardFunction<STATE_TYPE>

java.lang.Object
  extended by aima.probability.decision.MDPRewardFunction<STATE_TYPE>

public class MDPRewardFunction<STATE_TYPE>
extends java.lang.Object


Constructor Summary
MDPRewardFunction()
           
 
Method Summary
 MDPUtilityFunction<STATE_TYPE> asUtilityFunction()
           
 double getRewardFor(STATE_TYPE state)
           
 void setReward(STATE_TYPE state, java.lang.Double reward)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MDPRewardFunction

public MDPRewardFunction()
Method Detail

getRewardFor

public double getRewardFor(STATE_TYPE state)

setReward

public void setReward(STATE_TYPE state,
                      java.lang.Double reward)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

asUtilityFunction

public MDPUtilityFunction<STATE_TYPE> asUtilityFunction()