Package org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph

Examples of org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph.HasStopTimeInstanceTransitVertex


      /**
       * Skip a vertex that has moved on to the next service date
       */
      if (vertex instanceof HasStopTimeInstanceTransitVertex) {
        HasStopTimeInstanceTransitVertex v = (HasStopTimeInstanceTransitVertex) vertex;
        StopTimeInstance instance = v.getInstance();
        if (instance.getServiceDate() > _serviceDate + 12 * 60 * 60 * 1000)
          return true;
      }

      /**
       * Print the visited stop count as a show of progress
       */
      if (vertex instanceof HasStopTransitVertex) {
        HasStopTransitVertex v = (HasStopTransitVertex) vertex;
        StopEntry stop = v.getStop();
        if (_stops.add(stop) && _stops.size() % 100 == 0) {
          System.out.println("stops=" + _stops.size());
          if (_stops.size() == 13900)
            System.out.println("here");
        }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.bundle.tasks.transfer_pattern.graph.HasStopTimeInstanceTransitVertex

Copyright © 2018 www.massapicom. 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.