|
|||||||
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,
int erc)
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 A* - adds estremcost to node |
int |
getestRemCost()
accessor for estremcost for A* |
int |
getestTotalCost()
accessor for esttotalcost for A* |
int |
getglobalCost()
acccessor for globalcost |
int |
getlocalCost()
accessor 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 |
setestRemCost(int erc)
mutator for estremcost for A* |
void |
setestTotalCost(int erc)
mutator for esttotalcost for A* |
void |
setglobalCost(int lc)
mutator for globalcost |
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, int erc)
s
- a Search_Statelc
- local cost of getting to this node from its predecessorerc
- estimated remaining costMethod 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 void setestRemCost(int erc)
public int getestRemCost()
public void setestTotalCost(int erc)
public int getestTotalCost()
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 |