Package org.onebusaway.transit_data_federation.services.realtime

Examples of org.onebusaway.transit_data_federation.services.realtime.VehicleStatus


    if (elements != null) {
      for (VehicleLocationCacheElement element : elements.getElements())
        records.add(element.getRecord());
    }

    VehicleStatus status = new VehicleStatus();
    status.setRecord(record);
    status.setAllRecords(records);

    return status;
  }
View Full Code Here


  @Override
  public List<VehicleStatus> getAllVehicleStatuses() {
    ArrayList<VehicleStatus> statuses = new ArrayList<VehicleStatus>();
    for (VehicleLocationRecord record : _vehicleRecordsById.values()) {
      VehicleStatus status = new VehicleStatus();
      status.setRecord(record);
      statuses.add(status);
    }
    return statuses;
  }
View Full Code Here

      BlockLocationService blockLocationService) {
      _blockLocationService = blockLocationService;
  }

  public VehicleStatusBean getVehicleForId(AgencyAndId vehicleId, long time) {
    VehicleStatus status = _vehicleStatusService.getVehicleStatusForId(vehicleId);
    if (status == null)
      return null;
    return getStatusAsBean(status, time);
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.services.realtime.VehicleStatus

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.