public class RoundaboutClosedLoopCheck extends BaseCheck<java.lang.Long>
MINIMUM_VALENCE connections. See
http://wiki.openstreetmap.org/wiki/Key:oneway for more information about one-way and roundabouts| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
FALLBACK_INSTRUCTIONS |
static java.lang.String |
MINIMUM_VALENCE_INSTRUCTION |
static java.lang.String |
ONE_WAY_INSTRUCTION |
PARAMETER_ACCEPT_PIERS, PARAMETER_BLACKLIST_COUNTRIES, PARAMETER_CHALLENGE, PARAMETER_FLAG, PARAMETER_WHITELIST_COUNTRIES, PARAMETER_WHITELIST_TAGS| Constructor and Description |
|---|
RoundaboutClosedLoopCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<CheckFlag> |
flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Flags an
Edge if it is not one-way or it is connected to end nodes whose valence is
less than MINIMUM_VALENCE. |
protected java.util.List<java.lang.String> |
getFallbackInstructions()
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[]) |
boolean |
validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Validates if given
AtlasObject is actually an Edge and is a roundabout and
also corresponding OSM identifier shouldn't be flagged before (this is for avoiding duplicate
flags) |
acceptPier, check, checkObjectFilter, clear, clearFlaggedIdentifiers, configurationKey, configurationKey, configurationValue, configurationValue, createFlag, createFlag, createFlag, createFlag, flags, getBlacklistCountries, getChallenge, getCheckName, getCountries, getFlaggedIdentifiers, getLocale, getLocalizedInstruction, getTaskIdentifier, getTaskIdentifier, getUniqueObjectIdentifier, getUniqueOSMIdentifier, isFlagged, logStatus, markAsFlagged, validCheckForCountrypublic static final java.lang.String ONE_WAY_INSTRUCTION
public static final java.lang.String MINIMUM_VALENCE_INSTRUCTION
public static final java.util.List<java.lang.String> FALLBACK_INSTRUCTIONS
public RoundaboutClosedLoopCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
configuration - the JSON configuration for this checkprotected java.util.List<java.lang.String> getFallbackInstructions()
BaseCheckBaseCheck.getLocalizedInstruction(int, Object[])getFallbackInstructions in class BaseCheck<java.lang.Long>public boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
AtlasObject is actually an Edge and is a roundabout and
also corresponding OSM identifier shouldn't be flagged before (this is for avoiding duplicate
flags)object - The AtlasObject you are checkingprotected java.util.Optional<CheckFlag> flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Edge if it is not one-way or it is connected to end nodes whose valence is
less than MINIMUM_VALENCE. See OneWayTag.isTwoWay(org.openstreetmap.atlas.tags.OneWayTag)
for more details on how one-way checks.