Class BufferResultMatcher
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.BufferResultMatcher
-
- All Implemented Interfaces:
ResultMatcher
public class BufferResultMatcher extends Object implements ResultMatcher
AResultMatcher
which compares the results of buffer operations for equality, up to the given tolerance. All other operations are delagated to the standardEqualityResultMatcher
algorithm.- Author:
- mbdavis
-
-
Constructor Summary
Constructors Constructor Description BufferResultMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBoundaryHausdorffDistanceInTolerance(Geometry actualBuffer, Geometry expectedBuffer, double distance)
boolean
isBufferResultMatch(Geometry actualBuffer, Geometry expectedBuffer, double distance)
boolean
isMatch(Geometry geom, String opName, Object[] args, Result actualResult, Result expectedResult, double tolerance)
Tests whether the two results are equal within the given tolerance.boolean
isSymDiffAreaInTolerance(Geometry actualBuffer, Geometry expectedBuffer)
-
-
-
Method Detail
-
isMatch
public boolean isMatch(Geometry geom, String opName, Object[] args, Result actualResult, Result expectedResult, double tolerance)
Tests whether the two results are equal within the given tolerance. The input parameters are not considered.- Specified by:
isMatch
in interfaceResultMatcher
- Parameters:
geom
- the target geometryopName
- the operation performedargs
- the input arguments to the operationactualResult
- the actual computed resultexpectedResult
- the expected result of the testtolerance
- the tolerance for the test- Returns:
- true if the actual and expected results are considered equal
-
isBufferResultMatch
public boolean isBufferResultMatch(Geometry actualBuffer, Geometry expectedBuffer, double distance)
-
isSymDiffAreaInTolerance
public boolean isSymDiffAreaInTolerance(Geometry actualBuffer, Geometry expectedBuffer)
-
-