public class SearchNode extends Object implements QueueElement
| Modifier and Type | Class and Description |
|---|---|
class |
SearchNode.NextNodeIterator
This iterator generates search nodes that refer to the
states reachable from the state pertaining to a this search node.
|
| Constructor and Description |
|---|
SearchNode(SearchState state,
SearchNode parent,
double cost)
Create a search node with given state, parent, and cost.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCost()
Get the cost for this node.
|
SearchNode.NextNodeIterator |
getNextNodes()
Get an iterator over the new search nodes reachable
from this node by state transitions.
|
SearchNode |
getParent()
The node that generated this node.
|
int |
getPosition()
Get the queue position of this element.
|
double |
getPriority()
Get this element's priority.
|
SearchState |
getState()
The state for this search node.
|
boolean |
isFinal()
Is the node's state final?
|
void |
setPosition(int position)
Set the current queue position for this element.
|
void |
setPriority(double priority)
Set the priority of this element.
|
String |
toString() |
public SearchNode(SearchState state, SearchNode parent, double cost)
state - the stateparent - the parentcost - the costpublic double getPriority()
QueueElementgetPriority in interface QueueElementpublic void setPriority(double priority)
QueueElementsetPriority in interface QueueElementpriority - the element's new prioritypublic int getPosition()
QueueElementgetPosition in interface QueueElementpublic void setPosition(int position)
QueueElementsetPosition in interface QueueElementposition - the new position for the elementpublic SearchNode getParent()
public double getCost()
public SearchState getState()
public boolean isFinal()
public SearchNode.NextNodeIterator getNextNodes()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.