com.croftsoft.apps.mars.ai
Class TankCartographer

java.lang.Object
  extended by com.croftsoft.apps.mars.ai.TankCartographer
All Implemented Interfaces:
Cartographer

public final class TankCartographer
extends Object
implements Cartographer

Used with the Tank A* implementation.

Since:
2003-03-21
Version:
2003-05-10
Author:
David Wallace Croft

Constructor Summary
TankCartographer(double initStepSize, int directions)
           
 
Method Summary
 double estimateCostToGoal(Object node)
           
 Iterator getAdjacentNodes(Object node)
           
 double getCostToAdjacentNode(Object fromNode, Object toNode)
           
 boolean isGoalNode(Object node)
           
 void setGoalPointXY(PointXY goalPointXY)
           
 void setStartStateSpaceNode(StateSpaceNode startStateSpaceNode)
           
 void setTankConsole(TankConsole tankConsole)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TankCartographer

public TankCartographer(double initStepSize,
                        int directions)
Method Detail

setGoalPointXY

public void setGoalPointXY(PointXY goalPointXY)

setStartStateSpaceNode

public void setStartStateSpaceNode(StateSpaceNode startStateSpaceNode)

setTankConsole

public void setTankConsole(TankConsole tankConsole)

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 Apps Javadoc (2008-09-28 21:15:07)