|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
General notion of a node in a search graph. Nodes are connected to each other by SearchEdges.
Each node in a search is associated to an object in the domain that is searched.
| Method Summary | |
boolean |
cutoff()
Indicates if this node should be pruned, i.e. excluded from further calculations. |
Collection |
expand()
Expands this node and returns the search nodes following this one. |
int |
getBreadth()
Returns the breadth of this node in the search graph (tree). |
double |
getCost()
Gets the cost it has taken to get to this node. |
int |
getDepth()
Returns the depth of this node in the search graph (tree). |
Object |
getDomainObject()
Gets the domain object associated to this search node. |
double |
getEstimatedRestCost()
Estimates the cost expected to need to reach a goal from this node. |
Collection |
getIncomingEdges()
Gets all incoming edges. |
Collection |
getOutgoingEdges()
Gets all outgoing edges. |
boolean |
isGoal()
Returns if the this node is a goal of the serach. |
void |
setDomainObject(Object domainObject)
Sets the domain object associated to this search node. |
void |
setIncomingEdges(Collection incomingEdges)
Sets the incoming edges. |
void |
setOutgoingEdges(Collection outgoingEdges)
Sets the outgoing edges. |
| Method Detail |
public Collection getIncomingEdges()
SearchEdges.public Collection getOutgoingEdges()
SearchEdges.public void setIncomingEdges(Collection incomingEdges)
incomingEdges - the unordered collection of all incoming SearchEdges.public void setOutgoingEdges(Collection outgoingEdges)
outgoingEdges - the unordered collection of all outgoing SearchEdges.public Object getDomainObject()
public void setDomainObject(Object domainObject)
domainObject - the domain object associated to this search egdepublic int getDepth()
public int getBreadth()
public boolean isGoal()
true if this node is a goal of the search, false otherwisepublic double getEstimatedRestCost()
getCost(). This is needed for
scoring searches like A*.
public double getCost()
public boolean cutoff()
true if this node shall be excluded from further search, false otherwisepublic Collection expand()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||