Package org.onebusaway.transit_data.model.blocks

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


    bean.setAccumulatedSlackTime(blockTrip.getAccumulatedSlackTime());
    bean.setDistanceAlongBlock(blockTrip.getDistanceAlongBlock());

    List<BlockStopTimeBean> blockStopTimes = new ArrayList<BlockStopTimeBean>();
    for (BlockStopTimeEntry blockStopTime : blockTrip.getStopTimes()) {
      BlockStopTimeBean blockStopTimeAsBean = getBlockStopTimeAsBean(blockStopTime);
      blockStopTimes.add(blockStopTimeAsBean);
    }
    bean.setBlockStopTimes(blockStopTimes);

    return bean;
View Full Code Here


  }

  private BlockStopTimeBean getBlockStopTimeAsBean(
      BlockStopTimeEntry blockStopTime) {

    BlockStopTimeBean bean = new BlockStopTimeBean();
    bean.setAccumulatedSlackTime(blockStopTime.getAccumulatedSlackTime());
    bean.setBlockSequence(blockStopTime.getBlockSequence());
    bean.setDistanceAlongBlock(blockStopTime.getDistanceAlongBlock());

    StopTimeBean stopTimeAsBean = _stopTimeBeanService.getStopTimeAsBean(blockStopTime.getStopTime());
    bean.setStopTime(stopTimeAsBean);

    return bean;
  }
View Full Code Here

TOP

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

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.