Class DefaultTripProducer

java.lang.Object
org.entur.netex.gtfs.export.producer.DefaultTripProducer
All Implemented Interfaces:
TripProducer

public class DefaultTripProducer extends Object implements TripProducer
Produce a GTFS Trip or null if the service journey does not correspond to a valid TFS Trip In particular ServiceJourney having a ServiceAlteration=cancelled or ServiceAlteration=replaced are not valid GTFS Trip.
  • Constructor Details

  • Method Details

    • produce

      public org.onebusaway.gtfs.model.Trip produce(org.rutebanken.netex.model.ServiceJourney serviceJourney, org.rutebanken.netex.model.Route netexRoute, org.onebusaway.gtfs.model.Route gtfsRoute, org.onebusaway.gtfs.model.AgencyAndId shapeId, org.rutebanken.netex.model.DestinationDisplay initialDestinationDisplay)
      Description copied from interface: TripProducer
      Return a GTFS Trip corresponding to the ServiceJourney or null if the ServiceJourney cannot be converted into a valid GTFS trip.
      Specified by:
      produce in interface TripProducer
      Parameters:
      serviceJourney - the NeTEx service journey
      netexRoute - the NeTEx route
      gtfsRoute - the GTFS route
      shapeId - the optional shape id
      initialDestinationDisplay - the initial destination display.
      Returns:
      a GTFS Trip corresponding to the ServiceJourney or null if the ServiceJourney cannot be converted into a valid GTFS trip.