Class GenericEllipse

java.lang.Object
org.ivoa.dm.demodm.catalog.SkyError
org.ivoa.dm.demodm.catalog.GenericEllipse
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="DemoDM:catalog.GenericEllipse", role=dataType) public class GenericEllipse extends SkyError implements org.ivoa.vodml.jpa.JPAManipulations
. dataType: GenericEllipse
  • Field Details

    • major

      @VoDml(id="DemoDM:catalog.GenericEllipse.major", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double major
      major axis of error ellipse. : Attribute major : multiplicity 1
    • minor

      @VoDml(id="DemoDM:catalog.GenericEllipse.minor", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double minor
      minor axis of error ellipse. : Attribute minor : multiplicity 1
    • pa

      @VoDml(id="DemoDM:catalog.GenericEllipse.pa", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double pa
      Position angle of error ellipse in coordinate system of position. : Attribute pa : multiplicity 1
  • Constructor Details

    • GenericEllipse

      public GenericEllipse()
      Creates a new GenericEllipse
    • GenericEllipse

      public GenericEllipse(Double major, Double minor, Double pa)
      full parameter constructor.
      Parameters:
      major - major axis of error ellipse.
      minor - minor axis of error ellipse.
      pa - Position angle of error ellipse in coordinate system of position.
    • GenericEllipse

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

      public GenericEllipse(SkyError superinstance, Double major, Double minor, Double pa)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      major - major axis of error ellipse.
      minor - minor axis of error ellipse.
      pa - Position angle of error ellipse in coordinate system of position.
  • Method Details

    • copyMe

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

      public void updateUsing(GenericEllipse 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.
    • getMajor

      public Double getMajor()
      Returns major Attribute.
      Returns:
      major Attribute
    • setMajor

      public void setMajor(Double pMajor)
      Set major Attribute.
      Parameters:
      pMajor - value to set
    • withMajor

      public GenericEllipse withMajor(Double pMajor)
      fluent setter for major Attribute.
      Parameters:
      pMajor - value to set
      Returns:
      GenericEllipse
    • getMinor

      public Double getMinor()
      Returns minor Attribute.
      Returns:
      minor Attribute
    • setMinor

      public void setMinor(Double pMinor)
      Set minor Attribute.
      Parameters:
      pMinor - value to set
    • withMinor

      public GenericEllipse withMinor(Double pMinor)
      fluent setter for minor Attribute.
      Parameters:
      pMinor - value to set
      Returns:
      GenericEllipse
    • getPa

      public Double getPa()
      Returns pa Attribute.
      Returns:
      pa Attribute
    • setPa

      public void setPa(Double pPa)
      Set pa Attribute.
      Parameters:
      pPa - value to set
    • withPa

      public GenericEllipse withPa(Double pPa)
      fluent setter for pa Attribute.
      Parameters:
      pPa - value to set
      Returns:
      GenericEllipse
    • createGenericEllipse

      public static GenericEllipse createGenericEllipse(Consumer<GenericEllipse.GenericEllipseBuilder> f)
      create a GenericEllipse 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 SkyError