cc.mallet.util.search
Class AStarNode
java.lang.Object
cc.mallet.util.search.SearchNode
cc.mallet.util.search.AStarNode
- All Implemented Interfaces:
- QueueElement
public class AStarNode
- extends SearchNode
Created by IntelliJ IDEA.
User: pereira
Date: Jun 19, 2005
Time: 1:07:17 PM
Search node in an A* search.
Nested Class Summary |
class |
AStarNode.NextNodeIterator
Iterator over new A* search nodes generated by state transitions
from this node's state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AStarNode
public AStarNode(AStarState state,
AStarNode parent,
double cost)
- Create an A* search node with given state, parent, and cost.
- Parameters:
state
- the stateparent
- the parentcost
- the cost
completionCost
public double completionCost()
- Get the completion cost for the underlying state.
- Returns:
- the completion cost
getNextNodes
public SearchNode.NextNodeIterator getNextNodes()
- Description copied from class:
SearchNode
- Get an iterator over the new search nodes reachable
from this node by state transitions.
- Overrides:
getNextNodes
in class SearchNode
- Returns:
- the iterator