Package org.arakhne.afc.math.graph.astar
Interface AStarListener<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
-
- Type Parameters:
PT- is the type of node in the graphST- is the type of edge in the graph
- All Superinterfaces:
EventListener
public interface AStarListener<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>> extends EventListener
This interface is implemented by the listeners on the progression of theA* algorithm.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:42
- Author:
- Stéphane GALLAND
- See Also:
AStar- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgraph
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidalgorithmEnded(List<AStarNode<ST,PT>> closeList)Invoked when the A* algorithm has finished.default voidalgorithmStarted(AStarNode<ST,PT> startPoint, PT endPoint)Invoked when the A* algorithm has started.default voidnodeClosed(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> closeList)Invoked when a node is put in the close list.default voidnodeConsumed(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)Invoked when a node is removed from the open list.default voidnodeOpened(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)Invoked when a node is put in the open list.default voidnodeReopened(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)Invoked when the position of a node in the open list has changed.
-
-
-
Method Detail
-
algorithmStarted
default void algorithmStarted(AStarNode<ST,PT> startPoint, PT endPoint)
Invoked when the A* algorithm has started.- Parameters:
startPoint- is the starting node.endPoint- is the target node.
-
nodeConsumed
default void nodeConsumed(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)
Invoked when a node is removed from the open list.- Parameters:
node- is the node just removed from the open list.openList- is the current state of the open list.
-
nodeOpened
default void nodeOpened(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)
Invoked when a node is put in the open list.- Parameters:
node- is the node just added into the open list.openList- is the current state of the open list.
-
nodeReopened
default void nodeReopened(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> openList)
Invoked when the position of a node in the open list has changed.- Parameters:
node- is the node moved into the open list.openList- is the current state of the open list.
-
nodeClosed
default void nodeClosed(AStarNode<ST,PT> node, List<AStarNode<ST,PT>> closeList)
Invoked when a node is put in the close list.- Parameters:
node- is the node just added into the close list.closeList- is the current state of the close list.
-
-