com.croftsoft.core.ai.astar
Class AStarTest
java.lang.Object
com.croftsoft.core.ai.astar.AStarTest
- All Implemented Interfaces:
- Cartographer, Testable
public final class AStarTest
- extends Object
- implements Cartographer, Testable
An A* algorithm test.
- Since:
- 2002-04-21
- Version:
- 2003-05-09
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AStarTest
public AStarTest(Point goalPoint,
Point[] blockedPoints,
Point jumpPoint)
AStarTest
public AStarTest(Point goalPoint,
Point[] blockedPoints)
main
public static void main(String[] args)
test
public static boolean test(String[] args)
test
public static boolean test(AStarTest test)
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)