Package org.onebusaway.transit_data.model.blocks

Examples of org.onebusaway.transit_data.model.blocks.ScheduledBlockLocationBean


  }

  private ScheduledBlockLocationBean getBlockLocationAsBean(
      ScheduledBlockLocation blockLocation) {

    ScheduledBlockLocationBean bean = new ScheduledBlockLocationBean();

    if (blockLocation.getActiveTrip() != null) {
      BlockTripBean activeTrip = getBlockTripAsBean(blockLocation.getActiveTrip());
      bean.setActiveTrip(activeTrip);
    }

    bean.setDistanceAlongBlock(blockLocation.getDistanceAlongBlock());

    bean.setInService(blockLocation.isInService());
    bean.setLocation(blockLocation.getLocation());
    bean.setScheduledTime(blockLocation.getScheduledTime());
    bean.setStopTimeIndex(blockLocation.getStopTimeIndex());

    return bean;
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.blocks.ScheduledBlockLocationBean

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.