Package org.onebusaway.api.model.transit.blocks

Examples of org.onebusaway.api.model.transit.blocks.BlockStopTimeV2Bean


    addToReferences(blockTrip.getTrip());
    bean.setTripId(blockTrip.getTrip().getId());

    List<BlockStopTimeV2Bean> blockStopTimes = new ArrayList<BlockStopTimeV2Bean>();
    for (BlockStopTimeBean blockStopTime : blockTrip.getBlockStopTimes()) {
      BlockStopTimeV2Bean stopTimeBean = getBlockStopTime(blockStopTime);
      blockStopTimes.add(stopTimeBean);
    }
    bean.setBlockStopTimes(blockStopTimes);

    return bean;
View Full Code Here


    return bean;
  }

  public BlockStopTimeV2Bean getBlockStopTime(BlockStopTimeBean blockStopTime) {
    BlockStopTimeV2Bean bean = new BlockStopTimeV2Bean();
    bean.setAccumulatedSlackTime(blockStopTime.getAccumulatedSlackTime());
    bean.setBlockSequence(blockStopTime.getBlockSequence());
    bean.setDistanceAlongBlock(blockStopTime.getDistanceAlongBlock());
    bean.setStopTime(getStopTime(blockStopTime.getStopTime()));
    return bean;
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.api.model.transit.blocks.BlockStopTimeV2Bean

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.