Examples of FederatedService


Examples of org.onebusaway.federations.FederatedService

        addAgencyId(affects.getRouteId(), agencyIds);
        addAgencyId(affects.getTripId(), agencyIds);
        addAgencyId(affects.getStopId(), agencyIds);
      }
    }
    FederatedService service = collection.getServiceForAgencyIds(agencyIds);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

    if (_expression != null)
      value = _expression.invoke(value);

    CoordinateBounds bounds = (CoordinateBounds) value;

    FederatedService service = collection.getServiceForBounds(bounds);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

      throws ServiceAreaServiceException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

    double lat = arg(args, _latArgumentIndex);
    double lon = arg(args, _lonArgumentIndex);

    FederatedService service = collection.getServiceForLocation(lat, lon);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

        value = expression.invoke(value);
      CoordinatePoint point = (CoordinatePoint) value;
      points.add(point);
    }

    FederatedService service = collection.getServiceForLocations(points);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

    double lat1 = arg(args, _lat1ArgumentIndex);
    double lon1 = arg(args, _lon1ArgumentIndex);
    double lat2 = arg(args, _lat2ArgumentIndex);
    double lon2 = arg(args, _lon2ArgumentIndex);

    FederatedService service = collection.getServiceForBounds(lat1, lon1, lat2, lon2);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

    Iterable<String> entityIds = (Iterable<String>) args[_argumentIndex];
    Set<String> agencyIds = new HashSet<String>();
    for (String entityId : entityIds)
      agencyIds.add(AgencyIdSupport.getAgencyIdFromEntityId(entityId));
    FederatedService service = collection.getServiceForAgencyIds(agencyIds);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

    Object value = args[_argumentIndex];
    if (_expression != null)
      value = _expression.invoke(value);
    String entityId = value.toString();
    String agencyId = AgencyIdSupport.getAgencyIdFromEntityId(entityId);
    FederatedService service = collection.getServiceForAgencyId(agencyId);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

      if (agencyId != null) {
        agencyIds.add(agencyId);
      }
    }

    FederatedService service = collection.getServiceForAgencyIds(agencyIds);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

      IllegalAccessException, InvocationTargetException {
    Object value = (Object) args[_argumentIndex];
    if (_expression != null)
      value = _expression.invoke(value);
    String agencyId = (String) value;
    FederatedService service = collection.getServiceForAgencyId(agencyId);
    return method.invoke(service, args);
  }
View Full Code Here

Examples of org.onebusaway.federations.FederatedService

          String url = serviceEntry.getServiceUrl();

          _log.debug("querying url: {}", url);

          try {
            FederatedService service = (FederatedService) _proxyFactory.create(
                _serviceInterface, url);

            Map<String, List<CoordinateBounds>> agencyIdsWithCoverageArea = service.getAgencyIdsWithCoverageArea();

            boolean allGood = true;

            for (Map.Entry<String, List<CoordinateBounds>> entry : agencyIdsWithCoverageArea.entrySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.