Class PrioritizeTagStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openstreetmap.atlas.geography.atlas.change.FeatureChange resolve​(org.openstreetmap.atlas.geography.atlas.change.FeatureChange left, org.openstreetmap.atlas.geography.atlas.change.FeatureChange right, java.util.Map<java.lang.String,​java.io.Serializable> configuration)
      Perform the resolution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrioritizeTagStrategy

        public PrioritizeTagStrategy()
    • Method Detail

      • resolve

        public org.openstreetmap.atlas.geography.atlas.change.FeatureChange resolve​(org.openstreetmap.atlas.geography.atlas.change.FeatureChange left,
                                                                                    org.openstreetmap.atlas.geography.atlas.change.FeatureChange right,
                                                                                    java.util.Map<java.lang.String,​java.io.Serializable> configuration)
        Perform the resolution. At the moment, we do a basic resolution that tries to apply as many filters as possible. If the number that apply is not exactly 1, we fail. If both the left and right FeatureChange apply for a given rule, we decide what to do based on the leftRightExclusivity parameter. In the future, this method may respect the other parameters as well. For now, we will see what the data looks like using this simple resolution.
        Specified by:
        resolve in interface MergeForgivenessStrategy
        Parameters:
        left - the left FeatureChange
        right - the right FeatureChange
        configuration - the associated configuration Map
        Returns:
        the selected FeatureChange