All Implemented Interfaces:
iSite, Comparable<Site>

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

    • isDummy

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

    • 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 Details

    • cloneZeroWeight

      public Site cloneZeroWeight()
    • toString

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

      public void setAsDummy()
    • setData

      public void setData(Object child)
    • getData

      public Object getData()