Interface ShortestPathObserver
-
- All Known Implementing Classes:
ShortestPathGraphicObserver
,ShortestPathTextObserver
public interface ShortestPathObserver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyDestinationReached(Node node)
Notify the observer that the destination has been reached.void
notifyNodeMarked(Node node)
Notify the observer that a node has been marked, i.e.void
notifyNodeReached(Node node)
Notify the observer that a node has been reached for the first time.void
notifyOriginProcessed(Node node)
Notify the observer that the origin has been processed.
-
-
-
Method Detail
-
notifyOriginProcessed
void notifyOriginProcessed(Node node)
Notify the observer that the origin has been processed.- Parameters:
node
- Origin.
-
notifyNodeReached
void notifyNodeReached(Node node)
Notify the observer that a node has been reached for the first time.- Parameters:
node
- Node that has been reached.
-
notifyNodeMarked
void notifyNodeMarked(Node node)
Notify the observer that a node has been marked, i.e. its final value has been set.- Parameters:
node
- Node that has been marked.
-
notifyDestinationReached
void notifyDestinationReached(Node node)
Notify the observer that the destination has been reached.- Parameters:
node
- Destination.
-
-