Class Site

  • All Implemented Interfaces:
    iSite, java.lang.Comparable<Site>

    public class Site
    extends ASite
    Extended Version of a site, which has relative Positions
    • Field Detail

      • isDummy

        public boolean isDummy
        This attribute is used to mark the sites, which are only added to bound the Voronoi diagram.
    • Constructor Detail

      • Site

        public Site​(double x,
                    double y)
        Parameters:
        x - x-coordinate
        y - y-coordinate
      • Site

        public Site​(double x,
                    double y,
                    double weight)
        Parameters:
        x - x-coordinate
        y - y-coordinate
        weight - the weight of the site, where weight=radius*radius which is used for weighting
      • Site

        public Site​(double x,
                    double y,
                    double weight,
                    double percentage)
    • Method Detail

      • cloneZeroWeight

        public Site cloneZeroWeight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class ASite
      • setAsDummy

        public void setAsDummy()
      • setData

        public void setData​(java.lang.Object child)
      • getData

        public java.lang.Object getData()