Examples of OutOfServiceAreaServiceException


Examples of org.onebusaway.exceptions.OutOfServiceAreaServiceException

    Vertex fromVertex = getTransitLocationAsVertex(from, options);
    Vertex toVertex = getTransitLocationAsVertex(to, options);

    if (fromVertex == null || toVertex == null)
      throw new OutOfServiceAreaServiceException();

    Vertex v = options.isArriveBy() ? toVertex : fromVertex;
    Vertex target = options.isArriveBy() ? fromVertex : toVertex;

    State state = new OBAState(targetTime, v, options);
View Full Code Here

Examples of org.onebusaway.exceptions.OutOfServiceAreaServiceException

        throw new MultipleServiceAreasServiceException();
      }
    }

    if (service == null)
      throw new OutOfServiceAreaServiceException();

    return service;
  }
View Full Code Here

Examples of org.onebusaway.exceptions.OutOfServiceAreaServiceException

      Set<FederatedService> providers) throws OutOfServiceAreaServiceException,
      MultipleServiceAreasServiceException {
    if (providers.size() == 1)
      return providers.iterator().next();
    if (providers.size() == 0)
      throw new OutOfServiceAreaServiceException();
    throw new MultipleServiceAreasServiceException();
  }
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.