GraphTraversalService.java 749B

1234567891011121314151617181920212223242526
  1. package com.pathfinder.api;
  2. import java.rmi.Remote;
  3. import java.util.List;
  4. import java.util.Properties;
  5. /**
  6. * Part of the external graph traversal API exposed by the routing team
  7. * and used by us (booking and tracking team).
  8. *
  9. */
  10. public interface GraphTraversalService extends Remote {
  11. /**
  12. * @param origin origin point
  13. * @param destination destination point
  14. * @param limitations restrictions on the path selection, as key-value according to some API specification
  15. * @return A list of transit paths
  16. * @throws java.rmi.RemoteException RMI problem
  17. */
  18. List<TransitPath> findShortestPath(String origin,
  19. String destination,
  20. Properties limitations);
  21. }