com.croftsoft.apps.mars.ai
Class TankCartographer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TankCartographer
public TankCartographer(double initStepSize,
int directions)
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 Apps Javadoc (2008-09-28 21:15:07)