Class BasicConfiguredAtlasChangeGenerator
- java.lang.Object
-
- org.openstreetmap.atlas.mutator.configuration.mutators.ConfiguredAtlasChangeGenerator
-
- org.openstreetmap.atlas.mutator.configuration.mutators.BasicConfiguredAtlasChangeGenerator
-
- All Implemented Interfaces:
java.io.Serializable,java.util.function.Function<org.openstreetmap.atlas.geography.atlas.Atlas,java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange>>,org.openstreetmap.atlas.geography.atlas.change.AtlasChangeGenerator,org.openstreetmap.atlas.utilities.conversion.Converter<org.openstreetmap.atlas.geography.atlas.Atlas,java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange>>
public class BasicConfiguredAtlasChangeGenerator extends ConfiguredAtlasChangeGenerator
Class allowing a non-configuredAtlasChangeGeneratorto be treated as aConfiguredAtlasChangeGeneratorwith default configuration.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.atlas.mutator.configuration.mutators.ConfiguredAtlasChangeGenerator
BROADCAST_VARIABLES_NEEDED_JSON_PROPERTY, CLASS_NAME_JSON_PROPERTY, CONFIGURATION_BROADCAST_VARIABLES_NEEDED, CONFIGURATION_CLASS_NAME, CONFIGURATION_COUNTRIES, CONFIGURATION_DEPENDENCIES, CONFIGURATION_DYNAMIC_ATLAS_POLICY_APPLICATION, CONFIGURATION_DYNAMIC_ATLAS_POLICY_GENERATION, CONFIGURATION_ENABLED, CONFIGURATION_EXCLUDED_COUNTRIES, CONFIGURATION_VALIDATE, COUNTRIES_JSON_PROPERTY, DECLARED_MERGE_FORGIVENESS_POLICY_JSON_PROPERTY, DEPENDENCIES_JSON_PROPERTY, DYNAMIC_ATLAS_POLICY_APPLICATION_JSON_PROPERTY, DYNAMIC_ATLAS_POLICY_GENERATION_JSON_PROPERTY, ENABLED_JSON_PROPERTY, EXCLUDED_COUNTRIES_JSON_PROPERTY, INPUT_DEPENDENCIES_JSON_PROPERTY, NAME_JSON_PROPERTY, TYPE_JSON_PROPERTY_VALUE
-
-
Constructor Summary
Constructors Constructor Description BasicConfiguredAtlasChangeGenerator(java.lang.String name, org.openstreetmap.atlas.geography.atlas.change.AtlasChangeGenerator source, org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange>generate(org.openstreetmap.atlas.geography.atlas.Atlas atlas)java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange>generateWithoutValidation(org.openstreetmap.atlas.geography.atlas.Atlas atlas)inthashCode()static BasicConfiguredAtlasChangeGeneratornoOp(java.lang.String name, org.openstreetmap.atlas.utilities.configuration.Configuration configuration)-
Methods inherited from class org.openstreetmap.atlas.mutator.configuration.mutators.ConfiguredAtlasChangeGenerator
addBroadcastVariable, getBroadcastVariable, getBroadcastVariablesNeeded, getCountries, getDependencies, getDynamicAtlasPolicyApplication, getDynamicAtlasPolicyGeneration, getExcludedCountries, getGlobalPolygonFilter, getInputDependencies, getMergeForgivenessPolicy, getName, getPolygonFilter, getSparkConfiguration, isEnabled, toJson, toString, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
noOp
public static BasicConfiguredAtlasChangeGenerator noOp(java.lang.String name, org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
- Parameters:
name- The name of theAtlasChangeGeneratorconfiguration- The configuration where the name can be found- Returns:
- A no-operation
BasicConfiguredAtlasChangeGeneratorthat still parsed the configuration and adopted the given name, so it can be used to determine if a not-foundAtlasChangeGeneratorwas configured as disabled for example.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classConfiguredAtlasChangeGenerator
-
generate
public java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange> generate(org.openstreetmap.atlas.geography.atlas.Atlas atlas)
- Specified by:
generatein interfaceorg.openstreetmap.atlas.geography.atlas.change.AtlasChangeGenerator- Overrides:
generatein classConfiguredAtlasChangeGenerator
-
generateWithoutValidation
public java.util.Set<org.openstreetmap.atlas.geography.atlas.change.FeatureChange> generateWithoutValidation(org.openstreetmap.atlas.geography.atlas.Atlas atlas)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConfiguredAtlasChangeGenerator
-
-