]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.route/src/org/simantics/district/route/Router.java
Improved Routes view functionality
[simantics/district.git] / org.simantics.district.route / src / org / simantics / district / route / Router.java
index 1d2423221440b43706e5b8336949b2718c7412d7..5f73c9679b12d5b388c5ad6d1694a2d7dee4935d 100644 (file)
@@ -3,7 +3,6 @@ package org.simantics.district.route;
 import java.util.List;
 
 import org.simantics.db.Resource;
-import org.simantics.db.layer0.variable.Variable;
 
 /**
  * @author Tuukka Lehtonen
@@ -20,13 +19,14 @@ public interface Router {
     /**
      * Must be invoked outside of any transaction realm, like a database request or
      * experiment thread, preferably from a background job thread.
-     * 
+     *
+     * @param config reserved for future use, may be <code>null</code>
      * @param wayPoints waypoints for the route to find in visiting order. The
      *            resources must represents district network diagram elements.
      * @return the piece-wise shortest path between the specified waypoints as a
      *         fully baked path of district network diagram element resources
      * @throws RoutingException in case of any problems in routing
      */
-    List<Variable> findShortestPath(RouterConfiguration config, List<Resource> wayPoints) throws RoutingException;
+    List<Resource> findShortestPath(RouterConfiguration config, List<Resource> wayPoints) throws RoutingException;
 
 }