Examples of VehicleStatus


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

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

  @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

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

      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
Copyright © 2018 www.massapi.com. 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.