assignment1
Class CBreadthFirstStrategy

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

public class CBreadthFirstStrategy
extends java.lang.Object
implements IStrategy


Constructor Summary
CBreadthFirstStrategy()
           
 
Method Summary
 CNode Select(java.util.Vector<CNode> arg_node_v, CNode arg_node)
          Disregards the current position; selects the first item of shallowest depth.
 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

CBreadthFirstStrategy

public CBreadthFirstStrategy()
Method Detail

Select

public CNode Select(java.util.Vector<CNode> arg_node_v,
                    CNode arg_node)
Disregards the current position; selects the first item of shallowest depth.

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