Search in sources :

Example 1 with StopTimeBean

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;
}
Also used : StopTimeBean(org.onebusaway.transit_data.model.schedule.StopTimeBean) BlockStopTimeBean(org.onebusaway.transit_data.model.blocks.BlockStopTimeBean) BlockStopTimeBean(org.onebusaway.transit_data.model.blocks.BlockStopTimeBean)

Example 2 with StopTimeBean

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;
}
Also used : StopBean(org.onebusaway.transit_data.model.StopBean) StopTimeBean(org.onebusaway.transit_data.model.schedule.StopTimeBean)

Aggregations

StopTimeBean (org.onebusaway.transit_data.model.schedule.StopTimeBean)2 StopBean (org.onebusaway.transit_data.model.StopBean)1 BlockStopTimeBean (org.onebusaway.transit_data.model.blocks.BlockStopTimeBean)1