aima.search.map
Class MapStepCostFunction

java.lang.Object
  extended by aima.search.map.MapStepCostFunction
All Implemented Interfaces:
StepCostFunction

public class MapStepCostFunction
extends java.lang.Object
implements StepCostFunction


Constructor Summary
MapStepCostFunction(Map aMap)
           
 
Method Summary
 java.lang.Double calculateStepCost(java.lang.Object fromCurrentState, java.lang.Object toNextState, java.lang.String action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapStepCostFunction

public MapStepCostFunction(Map aMap)
Method Detail

calculateStepCost

public java.lang.Double calculateStepCost(java.lang.Object fromCurrentState,
                                          java.lang.Object toNextState,
                                          java.lang.String action)
Specified by:
calculateStepCost in interface StepCostFunction