Class Search_Node

java.lang.Object
  |
  +--Search_Node

public class Search_Node
extends java.lang.Object


Constructor Summary
Search_Node(Search_State s)
          constructor
 
Method Summary
 Search_State get_State()
          accessor for state
 java.util.ArrayList get_Successors(Search searcher)
          get_Successors for this node
 boolean goalP(Search searcher)
          goalP takes a Search_Node & returns true if it's a goal
 boolean same_State(Search_Node n2)
          same_State - does another node have same state as this one?
 java.lang.String toString()
          toString returns String describing node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Search_Node

public Search_Node(Search_State s)
constructor
Parameters:
s - a Search_State
Method Detail

get_State

public Search_State get_State()
accessor for state

goalP

public boolean goalP(Search searcher)
goalP takes a Search_Node & returns true if it's a goal
Parameters:
searcher - the current search

get_Successors

public java.util.ArrayList get_Successors(Search searcher)
get_Successors for this node
Parameters:
searcher - the current search
Returns:
ArrayList of successor nodes

same_State

public boolean same_State(Search_Node n2)
same_State - does another node have same state as this one?
Parameters:
n2 - the other node

toString

public java.lang.String toString()
toString returns String describing node
Overrides:
toString in class java.lang.Object