Class NullSite

  • All Implemented Interfaces:
    Site

    public class NullSite
    extends AbstractSite
    A site that doesn't do anything useful. Sometimes this is needed as a placeholder for objects that expect sites, but because other objects they depend on haven't been created yet, can't have them.
    Version:
    $Id$
    Author:
    John Reekie
    • Constructor Detail

      • NullSite

        public NullSite()
    • Method Detail

      • getID

        public int getID()
        Return 0
        Specified by:
        getID in interface Site
        Specified by:
        getID in class AbstractSite
        Returns:
        The unique identifier.
      • getX

        public double getX()
        Return 0.0.
        Specified by:
        getX in interface Site
        Specified by:
        getX in class AbstractSite
        Returns:
        The x-coordinate of the site.
      • getY

        public double getY()
        Return 0.0.
        Specified by:
        getY in interface Site
        Specified by:
        getY in class AbstractSite
        Returns:
        The y-coordinate of the site.