Class BoundedVoronoiIntegrityCheck


  • public class BoundedVoronoiIntegrityCheck
    extends Object
    Provides tools for checking the correctness of the construction of a Voronoi Diagram.
    • 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.