|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Search_Node
Constructor Summary | |
Search_Node(Search_State s,
int lc)
constructor |
Method Summary | |
Search_Node |
get_Parent()
accessor for parent |
Search_State |
get_State()
accessor for state |
java.util.ArrayList |
get_Successors(Search searcher)
get_Successors for this node |
int |
getglobalCost()
acccessor for globalcost |
int |
getlocalCost()
mutator for localcost |
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? |
void |
set_Parent(Search_Node n)
mutator for parent |
void |
setglobalCost(int lc)
mutator for localcost |
void |
setlocalCost(int lc)
mutator for localcost |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Search_Node(Search_State s, int lc)
s
- a Search_Statelc
- local cost of getting to this node from its predecessorMethod Detail |
public Search_State get_State()
public Search_Node get_Parent()
public void set_Parent(Search_Node n)
public void setlocalCost(int lc)
public int getlocalCost()
public void setglobalCost(int lc)
public int getglobalCost()
public boolean goalP(Search searcher)
searcher
- the current searchpublic java.util.ArrayList get_Successors(Search searcher)
searcher
- the current searchpublic boolean same_State(Search_Node n2)
n2
- the other nodepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |