com.croftsoft.core.ai.astar
Class AStarTest

java.lang.Object
  extended by 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

Constructor Summary
AStarTest(Point goalPoint, Point[] blockedPoints)
           
AStarTest(Point goalPoint, Point[] blockedPoints, Point jumpPoint)
           
 
Method Summary
 double estimateCostToGoal(Object node)
           
 Iterator getAdjacentNodes(Object node)
           
 double getCostToAdjacentNode(Object fromNode, Object toNode)
           
 boolean isGoalNode(Object node)
           
static void main(String[] args)
           
static boolean test(AStarTest test)
           
static boolean test(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AStarTest

public AStarTest(Point goalPoint,
                 Point[] blockedPoints,
                 Point jumpPoint)

AStarTest

public AStarTest(Point goalPoint,
                 Point[] blockedPoints)
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)