use of org.onebusaway.transit_data.model.schedule.StopTimeBean in project onebusaway-application-modules by camsys.
the class BlockBeanServiceImpl method getBlockStopTimeAsBean.
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;
}
use of org.onebusaway.transit_data.model.schedule.StopTimeBean in project onebusaway-application-modules by camsys.
the class StopTimeBeanServiceImpl method getStopTimeAsBean.
@Override
public StopTimeBean getStopTimeAsBean(StopTimeEntry stopTime) {
StopTimeBean bean = new StopTimeBean();
bean.setArrivalTime(stopTime.getArrivalTime());
bean.setDepartureTime(stopTime.getDepartureTime());
bean.setDropOffType(stopTime.getDropOffType());
bean.setPickupType(stopTime.getPickupType());
StopBean stopBean = _stopBeanService.getStopForId(stopTime.getStop().getId());
bean.setStop(stopBean);
return bean;
}
Aggregations