No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShortestPathObserver.java 810B

12345678910111213141516171819202122232425262728293031323334353637
  1. package org.insa.graphs.algorithm.shortestpath;
  2. import org.insa.graphs.model.Node;
  3. public interface ShortestPathObserver {
  4. /**
  5. * Notify the observer that the origin has been processed.
  6. *
  7. * @param node Origin.
  8. */
  9. public void notifyOriginProcessed(Node node);
  10. /**
  11. * Notify the observer that a node has been reached for the first
  12. * time.
  13. *
  14. * @param node Node that has been reached.
  15. */
  16. public void notifyNodeReached(Node node);
  17. /**
  18. * Notify the observer that a node has been marked, i.e. its final
  19. * value has been set.
  20. *
  21. * @param node Node that has been marked.
  22. */
  23. public void notifyNodeMarked(Node node);
  24. /**
  25. * Notify the observer that the destination has been reached.
  26. *
  27. * @param node Destination.
  28. */
  29. public void notifyDestinationReached(Node node);
  30. }