]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.route/src/org/simantics/district/route/RouteService.java
Fix dynamic visualisations UI initialization
[simantics/district.git] / org.simantics.district.route / src / org / simantics / district / route / RouteService.java
1 package org.simantics.district.route;
2
3 import java.util.List;
4 import java.util.concurrent.CompletableFuture;
5
6 /**
7  * @author Tuukka Lehtonen
8  */
9 public interface RouteService {
10
11     void addListener(RouteServiceListener l);
12
13     void removeListener(RouteServiceListener l);
14
15     Route createRoute(String name, Object backendModelEntity);
16
17     void registerRoute(Route route);
18
19     void refreshRoute(Route route);
20
21     CompletableFuture<Route> persistRoute(Route route);
22
23     CompletableFuture<?> discardRoute(Route route);
24
25     List<Route> listRoutes();
26
27     void registerRouter(Router router);
28
29     void unregisterRouter(Router router);
30
31     List<Router> routers();
32
33     Route readRoute(Object backendRouteObject);
34
35 }