Пример #1
0
 public Integer getStartedRoutes() {
   int started = 0;
   for (Route route : context.getRoutes()) {
     if (context.getRouteStatus(route.getId()).isStarted()) {
       started++;
     }
   }
   return started;
 }
Пример #2
0
 public Integer getTotalRoutes() {
   return context.getRoutes().size();
 }