Uses of Class
org.onebusaway.gtfs_merge.GtfsMergeContext
Packages that use GtfsMergeContext
Package
Description
-
Uses of GtfsMergeContext in org.onebusaway.gtfs_merge.strategies
Methods in org.onebusaway.gtfs_merge.strategies with parameters of type GtfsMergeContextModifier and TypeMethodDescriptionprotected EDuplicateDetectionStrategyAbstractEntityMergeStrategy.determineDuplicateDetectionStrategy(GtfsMergeContext context) Determines the bestEDuplicateDetectionStrategyto use for the current entity type and source feed.protected org.onebusaway.gtfs.model.IdentityBean<?> AbstractIdentifiableSingleEntityMergeStrategy.getFuzzyDuplicate(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) protected org.onebusaway.gtfs.model.IdentityBean<?> AbstractSingleEntityMergeStrategy.getFuzzyDuplicate(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) UseEDuplicateDetectionStrategy.FUZZYbased duplication-detection to find a duplicate in the output merged feed for the specified entity.protected org.onebusaway.gtfs.model.IdentityBean<?> AbstractIdentifiableSingleEntityMergeStrategy.getIdentityDuplicate(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) protected org.onebusaway.gtfs.model.IdentityBean<?> AbstractNonIdentifiableSingleEntityMergeStrategy.getIdentityDuplicate(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> newEntity) Non-identifiable entities obviously don't have identifiers.protected abstract org.onebusaway.gtfs.model.IdentityBean<?> AbstractSingleEntityMergeStrategy.getIdentityDuplicate(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) UseEDuplicateDetectionStrategy.IDENTITYbased duplication-detection to find a duplicate in the output merged feed for the specified entity.voidAbstractCollectionEntityMergeStrategy.merge(GtfsMergeContext context) voidAbstractSingleEntityMergeStrategy.merge(GtfsMergeContext context) voidEntityMergeStrategy.merge(GtfsMergeContext context) Perform a merge operation for the entities specified in theGtfsMergeContext.protected voidAbstractSingleEntityMergeStrategy.mergeEntity(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) Protected Methodsprotected EDuplicateDetectionStrategyAbstractCollectionEntityMergeStrategy.pickBestDuplicateDetectionStrategy(GtfsMergeContext context) protected abstract EDuplicateDetectionStrategyAbstractEntityMergeStrategy.pickBestDuplicateDetectionStrategy(GtfsMergeContext context) Determines the bestEDuplicateDetectionStrategyto use for merging entities from the current source feed into the merged output feed.protected EDuplicateDetectionStrategyAbstractIdentifiableSingleEntityMergeStrategy.pickBestDuplicateDetectionStrategy(GtfsMergeContext context) protected EDuplicateDetectionStrategyAbstractNonIdentifiableSingleEntityMergeStrategy.pickBestDuplicateDetectionStrategy(GtfsMergeContext context) protected booleanAbstractSingleEntityMergeStrategy.rejectDuplicateOverDifferences(GtfsMergeContext context, T sourceEntity, T targetDuplicate) For some entity types, we may detect that two entities are duplicates in the source feed and the target merged feed, but the entities might have slight differences that prevent them from being represented as one merged entity in the output feed.protected booleanTripMergeStrategy.rejectDuplicateOverDifferences(GtfsMergeContext context, org.onebusaway.gtfs.model.Trip sourceEntity, org.onebusaway.gtfs.model.Trip targetDuplicate) Even if we have detected that two trips are duplicates, they might have slight differences that prevent them from being represented as one merged trip.protected voidAbstractIdentifiableSingleEntityMergeStrategy.rename(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) Rename the id of the specified identity to avoid an raw GTFS identifier collision in the merged output feed.protected voidAbstractNonIdentifiableSingleEntityMergeStrategy.rename(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) Non-identifiable entities should never have raw GTFS identifier overlap, so this method should never be called.protected voidAgencyMergeStrategy.rename(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) static org.onebusaway.gtfs.model.AgencyAndIdMergeSupport.renameAgencyAndId(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId id) protected abstract voidAbstractCollectionEntityMergeStrategy.renameKey(GtfsMergeContext context, KEY oldId, KEY newId) If we detect that an entity collection in the source input feed duplicates an entity collection in the merged output feed, we rename all references to the old id in the source feed to use the id of the entity in the merged feed.protected voidServiceCalendarMergeStrategy.renameKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId oldId, org.onebusaway.gtfs.model.AgencyAndId newId) Replaces all references to the specified old service_id with the new service_id for allServiceCalendar,ServiceCalendarDate, andTripentities in the source feed.protected voidShapePointMergeStrategy.renameKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId oldId, org.onebusaway.gtfs.model.AgencyAndId newId) protected voidAbstractNonIdentifiableSingleEntityMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, T oldEntity, T newEntity) Non-identifiable entities can't be referenced by other GTFS entities, so there shouldn't be any work to do here.protected abstract voidAbstractSingleEntityMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, T oldEntity, T newEntity) If we've detected a duplicate for an entity in the source feed with some entity in the merged output feed, we want to replace all references to the old entity with the new merged entity.protected voidAgencyMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Agency oldAgency, org.onebusaway.gtfs.model.Agency newAgency) protected voidAreaMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Area oldEntity, org.onebusaway.gtfs.model.Area newEntity) protected voidFareAttributeMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.FareAttribute oldAttribute, org.onebusaway.gtfs.model.FareAttribute newAttribute) protected voidFeedInfoMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.FeedInfo oldEntity, org.onebusaway.gtfs.model.FeedInfo newEntity) protected voidRouteMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Route oldRoute, org.onebusaway.gtfs.model.Route newRoute) protected voidStopMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Stop oldStop, org.onebusaway.gtfs.model.Stop newStop) protected voidTripMergeStrategy.replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.Trip oldTrip, org.onebusaway.gtfs.model.Trip newTrip) protected voidAbstractIdentifiableSingleEntityMergeStrategy.save(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) Saves the specified entity to the merged output feed.protected voidAbstractSingleEntityMergeStrategy.save(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) Saves the specified entity to the merged output feed.protected voidTripMergeStrategy.save(GtfsMergeContext context, org.onebusaway.gtfs.model.IdentityBean<?> entity) protected abstract voidAbstractCollectionEntityMergeStrategy.saveElementsForKey(GtfsMergeContext context, KEY key) Writes the specified entity collection to the merged output feed.protected voidServiceCalendarMergeStrategy.saveElementsForKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId serviceId) Writes allServiceCalendarandServiceCalendarDateentities with the specifiedservice_idto the merged output feed.protected voidShapePointMergeStrategy.saveElementsForKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId shapeId) protected abstract doubleAbstractCollectionEntityMergeStrategy.scoreDuplicateKey(GtfsMergeContext context, KEY key) Given an id identifying an entity collection in both the source input feed and the merged output feed, produce a score between 0.0 and 1.0 identifying how likely it is that the two entity collections are one and the same, where 0.0 means they having nothing in common and 1.0 meaning they are exactly the same.protected doubleServiceCalendarMergeStrategy.scoreDuplicateKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId key) We consider two service calendars to be duplicates if they share a lot of dates in common.protected doubleShapePointMergeStrategy.scoreDuplicateKey(GtfsMergeContext context, org.onebusaway.gtfs.model.AgencyAndId key) Constructors in org.onebusaway.gtfs_merge.strategies with parameters of type GtfsMergeContextModifierConstructorDescriptionScoringTask(GtfsMergeContext context, AndDuplicateScoringStrategy<T> duplicateScoringStrategy, Collection<T> targetEntities, Collection<T> remainingSourceEntities, int start, int end, double min, org.onebusaway.gtfs_merge.strategies.AbstractIdentifiableSingleEntityMergeStrategy.Result result) -
Uses of GtfsMergeContext in org.onebusaway.gtfs_merge.strategies.scoring
Methods in org.onebusaway.gtfs_merge.strategies.scoring with parameters of type GtfsMergeContextModifier and TypeMethodDescriptiondoubleAndDuplicateScoringStrategy.score(GtfsMergeContext context, T source, T target) doubleDuplicateScoringStrategy.score(GtfsMergeContext context, T source, T target) doubleRouteStopsInCommonDuplicateScoringStrategy.score(GtfsMergeContext context, org.onebusaway.gtfs.model.Route source, org.onebusaway.gtfs.model.Route target) doubleStopDistanceDuplicateScoringStrategy.score(GtfsMergeContext context, org.onebusaway.gtfs.model.Stop source, org.onebusaway.gtfs.model.Stop target) doubleTripScheduleOverlapDuplicateScoringStrategy.score(GtfsMergeContext context, org.onebusaway.gtfs.model.Trip source, org.onebusaway.gtfs.model.Trip target) doubleTripStopsInCommonDuplicateScoringStrategy.score(GtfsMergeContext context, org.onebusaway.gtfs.model.Trip source, org.onebusaway.gtfs.model.Trip target)