Package org.onebusaway.siri.model

Examples of org.onebusaway.siri.model.ServiceDelivery


    GregorianCalendar now = new GregorianCalendar();
    now.setTime(_time);

    Siri siri = new Siri();
    siri.ServiceDelivery = new ServiceDelivery();
    siri.ServiceDelivery.ResponseTimestamp = now;
    siri.ServiceDelivery.stopMonitoringDeliveries = new ArrayList<StopMonitoringDelivery>();

    StopMonitoringDelivery delivery = new StopMonitoringDelivery();
    siri.ServiceDelivery.stopMonitoringDeliveries.add(delivery);
View Full Code Here


  /** Generate a siri response for a set of VehicleActivities */
  private Siri generateSiriResponse(Date time,
      ArrayList<VehicleActivity> activities) {
    Siri siri = new Siri();
    siri.ServiceDelivery = new ServiceDelivery();
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(time);
    siri.ServiceDelivery.ResponseTimestamp = calendar;

    siri.ServiceDelivery.VehicleMonitoringDelivery = new VehicleMonitoringDelivery();
View Full Code Here

TOP

Related Classes of org.onebusaway.siri.model.ServiceDelivery

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.