Package org.tinfour.voronoi
Class BoundedVoronoiIntegrityCheck
- java.lang.Object
-
- org.tinfour.voronoi.BoundedVoronoiIntegrityCheck
-
public class BoundedVoronoiIntegrityCheck extends Object
Provides tools for checking the correctness of the construction of a Voronoi Diagram.
-
-
Constructor Summary
Constructors Constructor Description BoundedVoronoiIntegrityCheck(BoundedVoronoiDiagram BoundedVoronoi)Constructs an instance of the integrity checker tied to the specified instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets descriptive information about the cause of a test failure.booleaninspect()Tests the Voronoi Diagram to see if it passes a number of sanity checks for correctness of implementaiton.
-
-
-
Constructor Detail
-
BoundedVoronoiIntegrityCheck
public BoundedVoronoiIntegrityCheck(BoundedVoronoiDiagram BoundedVoronoi)
Constructs an instance of the integrity checker tied to the specified instance.- Parameters:
BoundedVoronoi- a valid, correctly populated instance
-
-
Method Detail
-
inspect
public boolean inspect()
Tests the Voronoi Diagram to see if it passes a number of sanity checks for correctness of implementaiton.- Returns:
- true if the structure passes the test series; otherwise, false.
-
getMessage
public String getMessage()
Gets descriptive information about the cause of a test failure.- Returns:
- if a failure occurred, descriptive information; otherwise a string indicating that No Error Detected.
-
-