Class Circle

java.lang.Object
org.ivoa.dm.adqlgeom.Shape
org.ivoa.dm.adqlgeom.Circle
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="adqlgeom:Circle", role=dataType) public class Circle extends Shape implements org.ivoa.vodml.jpa.JPAManipulations
a circular region on the sky. dataType: Circle
  • Field Details

    • center

      @VoDml(id="adqlgeom:Circle.center", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected Point center
      the centre of the circle. : Attribute center : multiplicity 1
    • radius

      @VoDml(id="adqlgeom:Circle.radius", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double radius
      the radius of the circle. : Attribute radius : multiplicity 1
  • Constructor Details

    • Circle

      public Circle()
      Creates a new Circle
    • Circle

      public Circle(Point center, Double radius)
      full parameter constructor.
      Parameters:
      center - the centre of the circle.
      radius - the radius of the circle.
    • Circle

      public Circle(Circle other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • Circle

      public Circle(Shape superinstance, Point center, Double radius)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      center - the centre of the circle.
      radius - the radius of the circle.
  • Method Details

    • copyMe

      public Shape copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class Shape
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(Circle other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getCenter

      public Point getCenter()
      Returns center Attribute.
      Returns:
      center Attribute
    • setCenter

      public void setCenter(Point pCenter)
      Set center Attribute.
      Parameters:
      pCenter - value to set
    • withCenter

      public Circle withCenter(Point pCenter)
      fluent setter for center Attribute.
      Parameters:
      pCenter - value to set
      Returns:
      Circle
    • getRadius

      public Double getRadius()
      Returns radius Attribute.
      Returns:
      radius Attribute
    • setRadius

      public void setRadius(Double pRadius)
      Set radius Attribute.
      Parameters:
      pRadius - value to set
    • withRadius

      public Circle withRadius(Double pRadius)
      fluent setter for radius Attribute.
      Parameters:
      pRadius - value to set
      Returns:
      Circle
    • createCircle

      public static Circle createCircle(Consumer<Circle.CircleBuilder> f)
      create a Circle in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class Shape