assignment1
Class CIterativeDeepeningStrategy

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

public class CIterativeDeepeningStrategy
extends java.lang.Object
implements IStrategy


Constructor Summary
CIterativeDeepeningStrategy()
           
CIterativeDeepeningStrategy(int arg_iInitialDepth)
           
 
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

CIterativeDeepeningStrategy

public CIterativeDeepeningStrategy()

CIterativeDeepeningStrategy

public CIterativeDeepeningStrategy(int arg_iInitialDepth)
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