use of org.onebusaway.api.model.transit.blocks.BlockStopTimeV2Bean in project onebusaway-application-modules by camsys.
the class BeanFactoryV2 method getBlockTrip.
public BlockTripV2Bean getBlockTrip(BlockTripBean blockTrip) {
BlockTripV2Bean bean = new BlockTripV2Bean();
bean.setAccumulatedSlackTime(blockTrip.getAccumulatedSlackTime());
bean.setDistanceAlongBlock(blockTrip.getDistanceAlongBlock());
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;
}
use of org.onebusaway.api.model.transit.blocks.BlockStopTimeV2Bean in project onebusaway-application-modules by camsys.
the class BeanFactoryV2 method getBlockStopTime.
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;
}
Aggregations