Interface EntityMergeStrategy

All Known Implementing Classes:
AbstractCollectionEntityMergeStrategy, AbstractEntityMergeStrategy, AbstractIdentifiableSingleEntityMergeStrategy, AbstractNonIdentifiableSingleEntityMergeStrategy, AbstractSingleEntityMergeStrategy, AgencyMergeStrategy, AreaMergeStrategy, FareAttributeMergeStrategy, FareRuleMergeStrategy, FeedInfoMergeStrategy, FrequencyMergeStrategy, RouteMergeStrategy, ServiceCalendarMergeStrategy, ShapePointMergeStrategy, StopMergeStrategy, TransferMergeStrategy, TripMergeStrategy

public interface EntityMergeStrategy
Defines an interface for performing a merge operation on entities of particular type from a source GTFS feed into a merged GTFS feed. Typically, each GTFS entity type (stops vs routes vs trips vs ...) will define its own EntityMergeStrategy.
Author:
bdferris
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getEntityTypes(Collection<Class<?>> entityTypes)
    Determine the list of entity types handled by this merge strategy.
    void
    Perform a merge operation for the entities specified in the GtfsMergeContext.
  • Method Details

    • getEntityTypes

      void getEntityTypes(Collection<Class<?>> entityTypes)
      Determine the list of entity types handled by this merge strategy.
      Parameters:
      entityTypes - the handled types should be added to this output collection.
    • merge

      void merge(GtfsMergeContext context)
      Perform a merge operation for the entities specified in the GtfsMergeContext. This method will be called repeated by the GtfsMerger, once for each input feed.
      Parameters:
      context - the merge state for the current merge operation