Package org.onebusaway.transit_data.model.schedule

Examples of org.onebusaway.transit_data.model.schedule.FrequencyBean


   
    FrequencyEntry frequencyLabel = blockTripInstance.getFrequencyLabel();
   
    if( frequencyLabel != null) {
      long serviceDate = blockTripInstance.getServiceDate();
      FrequencyBean fb = FrequencyBeanLibrary.getBeanForFrequency(serviceDate, frequencyLabel);
      bean.setFrequency(fb);
    }

    return bean;
  }
View Full Code Here


      }

      FrequencyEntry frequencyLabel = activeTripInstance.getFrequencyLabel();

      if (frequencyLabel != null) {
        FrequencyBean fb = FrequencyBeanLibrary.getBeanForFrequency(
            serviceDate, frequencyLabel);
        bean.setFrequency(fb);
      }

    } else {
View Full Code Here

      BlockTripInstance blockTripInstance, BlockLocation blockLocation,
      TripDetailsInclusionBean inclusion, long time) {

    TripBean trip = null;
    long serviceDate = blockTripInstance.getServiceDate();
    FrequencyBean frequency = null;
    TripStopTimesBean stopTimes = null;
    TripStatusBean status = null;
    AgencyAndId vehicleId = null;

    boolean missing = false;
View Full Code Here

    transitLeg.setServiceDate(blockTripInstanceFrom.getServiceDate());

    FrequencyEntry frequencyLabel = blockTripInstanceFrom.getFrequencyLabel();
    if (frequencyLabel != null) {
      FrequencyBean frequency = FrequencyBeanLibrary.getBeanForFrequency(
          blockTripInstanceFrom.getServiceDate(), frequencyLabel);
      transitLeg.setFrequency(frequency);
    }

    TripBean tripBean = _tripBeanService.getTripForId(trip.getId());
View Full Code Here

      FrequencyEntry frequency) {

    if (frequency == null)
      return null;

    FrequencyBean bean = new FrequencyBean();
    bean.setStartTime(serviceDate + frequency.getStartTime() * 1000);
    bean.setEndTime(serviceDate + frequency.getEndTime() * 1000);
    bean.setHeadway(frequency.getHeadwaySecs());
    return bean;
  }
View Full Code Here

    pab.setScheduledDepartureTime(instance.getScheduledDepartureTime());

    FrequencyEntry frequency = instance.getFrequencyLabel();
    pab.setFrequency(null);
    if (frequency != null) {
      FrequencyBean fb = FrequencyBeanLibrary.getBeanForFrequency(
          instance.getServiceDate(), frequency);
      pab.setFrequency(fb);
    }

    return pab;
View Full Code Here

    }

    bean.setServiceDate(leg.getServiceDate());
    bean.setVehicleId(leg.getVehicleId());

    FrequencyBean frequency = leg.getFrequency();
    if (frequency != null) {
      FrequencyV2Bean freqBean = _factory.getFrequency(frequency);
      bean.setFrequency(freqBean);
    }
View Full Code Here

    if (_factory.isStringSet(leg.getVehicleId()))
      bean.setVehicleId(leg.getVehicleId());

    FrequencyV2Bean frequency = leg.getFrequency();
    if (frequency != null) {
      FrequencyBean freqBean = _factory.reverseFrequency(frequency);
      bean.setFrequency(freqBean);
    }

    String fromStopId = leg.getFromStopId();
    if (_factory.isStringSet(fromStopId)) {
View Full Code Here

      addToReferences(activeTrip);
    }

    bean.setServiceDate(tripStatus.getServiceDate());

    FrequencyBean frequency = tripStatus.getFrequency();
    if (frequency != null)
      bean.setFrequency(getFrequency(frequency));

    bean.setScheduledDistanceAlongTrip(tripStatus.getScheduledDistanceAlongTrip());
    bean.setTotalDistanceAlongTrip(tripStatus.getTotalDistanceAlongTrip());
View Full Code Here

    if (prevTrip != null) {
      bean.setPreviousTripId(prevTrip.getId());
      addToReferences(prevTrip);
    }

    FrequencyBean freq = tripStopTimes.getFrequency();
    if (freq != null)
      bean.setFrequency(getFrequency(freq));

    return bean;
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.schedule.FrequencyBean

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.