Interface Check
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbbreviatedAddressStreetCheck,AbbreviatedNameCheck,AddressPointMatchCheck,AddressStreetNameCheck,ApproximateWayCheck,AreasWithHighwayTagCheck,AtGradeSignPostCheck,BaseCheck,BigNodeBadDataCheck,BoundaryIntersectionCheck,BridgeDetailedInfoCheck,BuildingRoadIntersectionCheck,ConcerningAngleBuildingCheck,ConditionalRestrictionCheck,ConflictingAreaTagCombination,ConflictingTagCombinationCheck,ConnectivityCheck,ConstructionCheck,DuplicateLocationInPolyLineCheck,DuplicateMapFeatureCheck,DuplicateNodeCheck,DuplicatePointCheck,DuplicateRelationCheck,DuplicateWaysCheck,EdgeCrossingEdgeCheck,FixMeReviewCheck,FloatingEdgeCheck,GeneralizedCoastlineCheck,GenericTagCheck,HighwayAccessCheck,HighwayIntersectionCheck,HighwayMissingNameAndRefTagCheck,HighwayToFerryTagCheck,ImproperAndUnknownRoadNameCheck,InconsistentRoadClassificationCheck,IntersectingBuildingsCheck,IntersectionAtDifferentLayersCheck,InvalidAccessTagCheck,InvalidCharacterNameTagCheck,InvalidGeometryCheck,InvalidLanesTagCheck,InvalidMiniRoundaboutCheck,InvalidMultiPolygonRelationCheck,InvalidPiersCheck,InvalidSignBoardRelationCheck,InvalidTagsCheck,InvalidTurnLanesValueCheck,InvalidTurnRestrictionCheck,LevelCrossingOnRailwayCheck,LineCrossingBuildingCheck,LineCrossingWaterBodyCheck,LoneNodeCheck,LongNameCheck,LongSegmentCheck,MalformedPolyLineCheck,MalformedRoundaboutCheck,MissingRelationTypeCheck,MixedCaseNameCheck,NodeValenceCheck,OceanBleedingCheck,OneMemberRelationCheck,OpenBoundaryCheck,OrphanNodeCheck,OverlappingAOIPolygonCheck,OverlappingEdgeCheck,PedestrianAreaOverlappingEdgeCheck,PoolSizeCheck,RoadLinkCheck,RoadNameGapCheck,RoadNameSpellingConsistencyCheck,RoundaboutClosedLoopCheck,RoundaboutConnectorCheck,RoundaboutHighwayTagCheck,RoundaboutMissingTagCheck,RoundaboutValenceCheck,RouteRelationCheck,SelfIntersectingPolylineCheck,SeparateSidewalkTagCheck,ShadowDetectionCheck,SharpAngleCheck,ShortNameCheck,ShortSegmentCheck,SignPostCheck,SimilarTagValueCheck,SingleSegmentMotorwayCheck,SinkIslandCheck,SnakeRoadCheck,SourceMaxspeedCheck,SpikyBuildingCheck,StreetNameCheck,StreetNameIntegersOnlyCheck,SuddenHighwayTypeChangeCheck,TallBuildingCheck,TollValidationCheck,TunnelBridgeHeightLimitCheck,UnknownHighwayTagCheck,UnusualLayerTagsCheck,UnwalkableWaysCheck,ValenceOneImportantRoadCheck,WaterAreaCheck,WaterbodyAndIslandSizeCheck,WaterWayCheck
public interface Check extends java.io.SerializableThe check interface has one method that will execute the check against an atlas entity and return an OptionalCheckFlag. If the optional is empty then the check didn't find anything to flag.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<CheckFlag>check(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)The check for the atlas objectvoidclear()Cleanup check to remove any remaining artifacts from executiondefault <T extends org.openstreetmap.atlas.geography.atlas.items.complex.ComplexEntity>
java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.complex.Finder<T>>finder()The finder returned will be used to collect theComplexEntitys this check will be applied to.java.lang.Iterable<CheckFlag>flags(org.openstreetmap.atlas.geography.atlas.Atlas atlas)ChallengegetChallenge()Gets a challenge object for the specific checkjava.lang.StringgetCheckName()Gets the name of this checkvoidlogStatus()Helper for debugging.booleanvalidCheckForCountry(java.lang.String country)Checks to see whether the check is valid for the given country.booleanvalidCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)Checks to see whether the supplied object class type is valid for this particular check
-
-
-
Method Detail
-
check
java.util.Optional<CheckFlag> check(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
The check for the atlas object- Parameters:
object- TheAtlasObjectto check- Returns:
- an
OptionalCheckFlag,Optional.EMPTYif check did not reveal any errors
-
clear
void clear()
Cleanup check to remove any remaining artifacts from execution
-
finder
default <T extends org.openstreetmap.atlas.geography.atlas.items.complex.ComplexEntity> java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.complex.Finder<T>> finder()
The finder returned will be used to collect theComplexEntitys this check will be applied to.- Type Parameters:
T- The type ofComplexEntityto be returned- Returns:
- An
OptionalFinder
-
flags
java.lang.Iterable<CheckFlag> flags(org.openstreetmap.atlas.geography.atlas.Atlas atlas)
Compute and return all theCheckFlags from this check, givenAtlasEntitys andRelations.ComplexEntitys can be added as well, using the appropriateFinder.- Parameters:
atlas- theAtlasto check- Returns:
- all the
CheckFlags from this check
-
getChallenge
Challenge getChallenge()
Gets a challenge object for the specific check- Returns:
- a
Challenge
-
getCheckName
java.lang.String getCheckName()
Gets the name of this check- Returns:
- a
Stringname
-
logStatus
void logStatus()
Helper for debugging. Implement in check to log info after check is run.
-
validCheckForCountry
boolean validCheckForCountry(java.lang.String country)
Checks to see whether the check is valid for the given country.- Parameters:
country- country to check- Returns:
trueif the check is applicable to the given country
-
validCheckForObject
boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Checks to see whether the supplied object class type is valid for this particular check- Parameters:
object- TheAtlasObjectyou are checking- Returns:
- true if it is
-
-