com.croftsoft.core.ai.astar
Class GradientCartographer
java.lang.Object
com.croftsoft.core.ai.astar.GradientCartographer
- All Implemented Interfaces:
- Cartographer
public final class GradientCartographer
- extends Object
- implements Cartographer
Gradient grid cartographer for continuous space.
The adjacent nodes are spaced farther apart as you move away from
the starting point.
- Since:
- 2003-04-21
- Version:
- 2003-05-10
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INIT_STEP_SIZE
public static final double DEFAULT_INIT_STEP_SIZE
- See Also:
- Constant Field Values
DEFAULT_DIRECTIONS
public static final int DEFAULT_DIRECTIONS
- See Also:
- Constant Field Values
GradientCartographer
public GradientCartographer(SpaceTester spaceTester,
double initStepSize,
int directions)
GradientCartographer
public GradientCartographer(SpaceTester spaceTester)
setStartPointXY
public void setStartPointXY(PointXY startPointXY)
setGoalPointXY
public void setGoalPointXY(PointXY goalPointXY)
estimateCostToGoal
public double estimateCostToGoal(Object node)
- Specified by:
estimateCostToGoal
in interface Cartographer
getAdjacentNodes
public Iterator getAdjacentNodes(Object node)
- Specified by:
getAdjacentNodes
in interface Cartographer
getCostToAdjacentNode
public double getCostToAdjacentNode(Object fromNode,
Object toNode)
- Specified by:
getCostToAdjacentNode
in interface Cartographer
isGoalNode
public boolean isGoalNode(Object node)
- Specified by:
isGoalNode
in interface Cartographer
CroftSoft Core Javadoc (2008-09-28 20:58:02)