@Deprecated public class AStarResult<NODE> extends Object
Use amis-path-finding library instead, see svn://artemis.ms.mff.cuni.cz/pogamut/trunk/project/Utils/AmisPathFinding
| Modifier and Type | Field and Description |
|---|---|
Collection<NODE> |
closeList
Deprecated.
Nodes which were examined by the algoritm.
|
HashMap<NODE,Integer> |
estimatedCost
Deprecated.
Used and filled by A* alorithm (AStar.aStar()).
|
NODE |
goalNode
Deprecated.
Node which was marked as a goalNode by AStarMap.
|
long |
interations
Deprecated.
Contains the number of iterations made by A* search.
|
Collection<NODE> |
openList
Deprecated.
List of nodes which is opened -> was touched by the algorithm and are
subjects of examination.
|
HashMap<NODE,Integer> |
pathCost
Deprecated.
Used and filled by A* algorithm (AStar.aStar()).
|
HashMap<NODE,NODE> |
previousNode
Deprecated.
Used by getPath() and filled by A* algorithm (AStar.aStar()).
|
NODE |
startNode
Deprecated.
Start node of the A*.
|
boolean |
success
Deprecated.
Whether goalNode was found during the A* run.
|
| Constructor and Description |
|---|
AStarResult()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCostToNode(NODE node)
Deprecated.
Returns cost of the path from startNode to node if the node was touched
by A* algorithm (if A* was successful, then this always contains the goalNode
and every node on the path).
|
int |
getDistanceToGoal()
Deprecated.
If the AStar succeeded then it returns the distance to the goal.
|
int |
getEstimatedCostToNode(NODE node)
Deprecated.
Returns estimated cost of the path from startNode to goal through node.
|
List<NODE> |
getPath()
Deprecated.
Returns the path from startNode to goalNode.
|
NODE |
getPreviousNode(NODE node)
Deprecated.
Used by getPath() method when creating a list of nodes (the path) from startNode
to goalNode.
|
void |
putCostToNode(NODE node,
Integer cost)
Deprecated.
Assing cost of the path from startNode to node.
|
void |
putEstimatedCostToNode(NODE node,
Integer cost)
Deprecated.
Assing estimated cost of the path from startNode to goalNode through node.
|
void |
putPreviousNode(NODE node,
NODE previous)
Deprecated.
Assing 'previous' as an previous node for 'node' (the path from 'startNode' to 'node' goes across 'previous').
|
public HashMap<NODE,NODE> previousNode
public Collection<NODE> openList
public Collection<NODE> closeList
public HashMap<NODE,Integer> pathCost
public HashMap<NODE,Integer> estimatedCost
public long interations
public NODE startNode
public NODE goalNode
public boolean success
public NODE getPreviousNode(NODE node)
node - public void putPreviousNode(NODE node, NODE previous)
node - previous - public int getCostToNode(NODE node)
node - public void putCostToNode(NODE node, Integer cost)
node - cost - public int getEstimatedCostToNode(NODE node)
node - public void putEstimatedCostToNode(NODE node, Integer cost)
node - cost - public List<NODE> getPath()
public int getDistanceToGoal()
Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.