assignment1
Class CDepthFirstStrategy

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

public class CDepthFirstStrategy
extends java.lang.Object
implements IStrategy


Constructor Summary
CDepthFirstStrategy()
           
 
Method Summary
 CNode Select(java.util.Vector<CNode> arg_node_v, CNode arg_node)
          Returns the first node which is a child of the current node, else recurses through parents' children, etc
 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

CDepthFirstStrategy

public CDepthFirstStrategy()
Method Detail

Select

public CNode Select(java.util.Vector<CNode> arg_node_v,
                    CNode arg_node)
Returns the first node which is a child of the current node, else recurses through parents' children, etc

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