Class Sphere1D

  • All Implemented Interfaces:
    java.io.Serializable, Space

    public class Sphere1D
    extends java.lang.Object
    implements java.io.Serializable, Space
    This class implements a one-dimensional sphere (i.e. a circle).

    We use here the topologists definition of the 1-sphere (see Sphere on MathWorld), i.e. the 1-sphere is the one-dimensional closed curve defined in 2D as x2+y2=1.

    Since:
    3.3
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Serializable version identifier.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Sphere1D()
      Private constructor for the singleton.
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serializable version identifier.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Sphere1D

        private Sphere1D()
        Private constructor for the singleton.
    • Method Detail

      • getInstance

        public static Sphere1D getInstance()
        Get the unique instance.
        Returns:
        the unique instance
      • getDimension

        public int getDimension()
        Get the dimension of the space.
        Specified by:
        getDimension in interface Space
        Returns:
        dimension of the space
      • readResolve

        private java.lang.Object readResolve()
        Handle deserialization of the singleton.
        Returns:
        the singleton instance