assignment1
Class CAStarStrategy

java.lang.Object
  extended by assignment1.CAStarStrategy
All Implemented Interfaces:
IStrategy

public class CAStarStrategy
extends java.lang.Object
implements IStrategy


Constructor Summary
CAStarStrategy()
           
 
Method Summary
 CNode Select(java.util.Vector<CNode> arg_node_v, CNode arg_node)
          Picks the node with the hypothetical lowest total cost to a goal.
 void SetDomain(IDomain arg_problem)
          Some strategies need access to the problem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAStarStrategy

public CAStarStrategy()
Method Detail

Select

public CNode Select(java.util.Vector<CNode> arg_node_v,
                    CNode arg_node)
Picks the node with the hypothetical lowest total cost to a goal.

Specified by:
Select in interface IStrategy
arg_node - a CNode value, the fringe, ie the available options to explore
Returns:
a CNode value, the current position

SetDomain

public void SetDomain(IDomain arg_problem)
Description copied from interface: IStrategy
Some strategies need access to the problem

Specified by:
SetDomain in interface IStrategy
Parameters:
arg_problem - an IDomain value