aima.probability.decision
Class MDPUtilityFunction<STATE_TYPE>

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

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


Constructor Summary
MDPUtilityFunction()
           
 
Method Summary
 MDPUtilityFunction<STATE_TYPE> copy()
           
 java.lang.Double getUtility(STATE_TYPE state)
           
 boolean hasUtilityFor(STATE_TYPE state)
           
 void setUtility(STATE_TYPE state, double utility)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MDPUtilityFunction

public MDPUtilityFunction()
Method Detail

getUtility

public java.lang.Double getUtility(STATE_TYPE state)

setUtility

public void setUtility(STATE_TYPE state,
                       double utility)

copy

public MDPUtilityFunction<STATE_TYPE> copy()

toString

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

hasUtilityFor

public boolean hasUtilityFor(STATE_TYPE state)