Class BigNodeBadDataCheck

  • All Implemented Interfaces:
    java.io.Serializable, Check

    public class BigNodeBadDataCheck
    extends BaseCheck<java.lang.Long>
    Flag any BigNodes that have may have some bad data. Approach: Flag any BigNodes where either - the number of paths through the big node are over a threshold - the number of junction nodes are over a threshold. The BigNode is first filtered based on the highway types of the connected edges. The highway types of the connected edges should be within the minimum amd maximum highway types set in the configuration.
    See Also:
    Serialized Form
    • Constructor Detail

      • BigNodeBadDataCheck

        public BigNodeBadDataCheck​(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
    • Method Detail

      • finder

        public java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.complex.bignode.BigNodeFinder> finder()
        Description copied from interface: Check
        The finder returned will be used to collect the ComplexEntitys this check will be applied to.
        Returns:
        An Optional Finder
      • validCheckForObject

        public boolean validCheckForObject​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Description copied from interface: Check
        Checks to see whether the supplied object class type is valid for this particular check
        Parameters:
        object - The AtlasObject you are checking
        Returns:
        true if it is
      • flag

        protected java.util.Optional<CheckFlag> flag​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Specified by:
        flag in class BaseCheck<java.lang.Long>
      • getFallbackInstructions

        protected java.util.List<java.lang.String> getFallbackInstructions()
        Description copied from class: BaseCheck
        Method to implement for inheriting checks to return the default set of instruction formats that will be the last resort in BaseCheck.getLocalizedInstruction(int, Object[])
        Overrides:
        getFallbackInstructions in class BaseCheck<java.lang.Long>
        Returns:
        The set of instructions to fall back to if configuration results in none.