GraphTraversalService.java 796B

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