|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectassignment1.CDepthFirstStrategy
public class CDepthFirstStrategy
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 |
---|
public CDepthFirstStrategy()
Method Detail |
---|
public CNode Select(java.util.Vector<CNode> arg_node_v, CNode arg_node)
Select
in interface IStrategy
arg_node
- a CNode
value, the fringe, ie the available options to explore
CNode
value, the current positionpublic void SetDomain(IDomain arg_problem)
IStrategy
SetDomain
in interface IStrategy
arg_problem
- an IDomain
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |