Class CelestialTarget

java.lang.Object
org.ivoa.dm.proposal.prop.Target
org.ivoa.dm.proposal.prop.CelestialTarget
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity(name="CelestialTarget") @VoDml(id="proposal:CelestialTarget", role=objectType) public class CelestialTarget extends Target implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
The basic target setup for a celestial Target.

objectType: CelestialTarget

  • Field Details

    • coord

      @VoDml(id="proposal:CelestialTarget.coord", role=attribute, type="proposal:CelestialPosition", typeRole=dataType) protected CelestialPosition coord
      the coordinates. : Attribute coord type proposal:CelestialPosition : multiplicity 1
    • coordUnit

      @VoDml(id="proposal:CelestialTarget.coordUnit", role=attribute, type="ivoa:Unit", typeRole=primitiveType) protected org.ivoa.vodml.stdtypes.Unit coordUnit
      the unit for the coordinates. : Attribute coordUnit type ivoa:Unit : multiplicity 1
    • positionEpoch

      @VoDml(id="proposal:CelestialTarget.positionEpoch", role=attribute, type="proposal:coords.mjd", typeRole=primitiveType) protected Mjd positionEpoch
      the epoch at which the position was measured. : Attribute positionEpoch type proposal:coords.mjd : multiplicity 1
    • pmRA

      @VoDml(id="proposal:CelestialTarget.pmRA", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pmRA
      . : Attribute pmRA type ivoa:RealQuantity : multiplicity 0..1
    • pmDec

      @VoDml(id="proposal:CelestialTarget.pmDec", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pmDec
      . : Attribute pmDec type ivoa:RealQuantity : multiplicity 0..1
    • parallax

      @VoDml(id="proposal:CelestialTarget.parallax", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity parallax
      . : Attribute parallax type ivoa:RealQuantity : multiplicity 0..1
    • sourceVelocity

      @VoDml(id="proposal:CelestialTarget.sourceVelocity", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity sourceVelocity
      . : Attribute sourceVelocity type ivoa:RealQuantity : multiplicity 0..1
  • Constructor Details

    • CelestialTarget

      public CelestialTarget()
      Creates a new CelestialTarget
    • CelestialTarget

      public CelestialTarget(CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity, String sourceName)
      full parameter constructor.
      Parameters:
      coord - the coordinates.
      coordUnit - the unit for the coordinates.
      positionEpoch - the epoch at which the position was measured.
      pmRA - .
      pmDec - .
      parallax - .
      sourceVelocity - .
      sourceName - A common name for the source.
    • CelestialTarget

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

      public CelestialTarget(Target superinstance, CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      coord - the coordinates.
      coordUnit - the unit for the coordinates.
      positionEpoch - the epoch at which the position was measured.
      pmRA - .
      pmDec - .
      parallax - .
      sourceVelocity - .
  • Method Details

    • copyMe

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

      public void updateUsing(CelestialTarget 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.
    • getCoord

      public CelestialPosition getCoord()
      Returns coord Attribute.
      Returns:
      coord Attribute
    • setCoord

      public void setCoord(CelestialPosition pCoord)
      Set coord Attribute.
      Parameters:
      pCoord - value to set
    • withCoord

      public CelestialTarget withCoord(CelestialPosition pCoord)
      fluent setter for coord Attribute.
      Parameters:
      pCoord - value to set
      Returns:
      CelestialTarget
    • getCoordUnit

      public org.ivoa.vodml.stdtypes.Unit getCoordUnit()
      Returns coordUnit Attribute.
      Returns:
      coordUnit Attribute
    • setCoordUnit

      public void setCoordUnit(org.ivoa.vodml.stdtypes.Unit pCoordUnit)
      Set coordUnit Attribute.
      Parameters:
      pCoordUnit - value to set
    • withCoordUnit

      public CelestialTarget withCoordUnit(org.ivoa.vodml.stdtypes.Unit pCoordUnit)
      fluent setter for coordUnit Attribute.
      Parameters:
      pCoordUnit - value to set
      Returns:
      CelestialTarget
    • getPositionEpoch

      public Mjd getPositionEpoch()
      Returns positionEpoch Attribute.
      Returns:
      positionEpoch Attribute
    • setPositionEpoch

      public void setPositionEpoch(Mjd pPositionEpoch)
      Set positionEpoch Attribute.
      Parameters:
      pPositionEpoch - value to set
    • withPositionEpoch

      public CelestialTarget withPositionEpoch(Mjd pPositionEpoch)
      fluent setter for positionEpoch Attribute.
      Parameters:
      pPositionEpoch - value to set
      Returns:
      CelestialTarget
    • getPmRA

      public org.ivoa.dm.ivoa.RealQuantity getPmRA()
      Returns pmRA Attribute.
      Returns:
      pmRA Attribute
    • setPmRA

      public void setPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA)
      Set pmRA Attribute.
      Parameters:
      pPmRA - value to set
    • withPmRA

      public CelestialTarget withPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA)
      fluent setter for pmRA Attribute.
      Parameters:
      pPmRA - value to set
      Returns:
      CelestialTarget
    • getPmDec

      public org.ivoa.dm.ivoa.RealQuantity getPmDec()
      Returns pmDec Attribute.
      Returns:
      pmDec Attribute
    • setPmDec

      public void setPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec)
      Set pmDec Attribute.
      Parameters:
      pPmDec - value to set
    • withPmDec

      public CelestialTarget withPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec)
      fluent setter for pmDec Attribute.
      Parameters:
      pPmDec - value to set
      Returns:
      CelestialTarget
    • getParallax

      public org.ivoa.dm.ivoa.RealQuantity getParallax()
      Returns parallax Attribute.
      Returns:
      parallax Attribute
    • setParallax

      public void setParallax(org.ivoa.dm.ivoa.RealQuantity pParallax)
      Set parallax Attribute.
      Parameters:
      pParallax - value to set
    • withParallax

      public CelestialTarget withParallax(org.ivoa.dm.ivoa.RealQuantity pParallax)
      fluent setter for parallax Attribute.
      Parameters:
      pParallax - value to set
      Returns:
      CelestialTarget
    • getSourceVelocity

      public org.ivoa.dm.ivoa.RealQuantity getSourceVelocity()
      Returns sourceVelocity Attribute.
      Returns:
      sourceVelocity Attribute
    • setSourceVelocity

      public void setSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity)
      Set sourceVelocity Attribute.
      Parameters:
      pSourceVelocity - value to set
    • withSourceVelocity

      public CelestialTarget withSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity)
      fluent setter for sourceVelocity Attribute.
      Parameters:
      pSourceVelocity - value to set
      Returns:
      CelestialTarget
    • createCelestialTarget

      public static CelestialTarget createCelestialTarget(Consumer<CelestialTarget.CelestialTargetBuilder> f)
      create a CelestialTarget 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 Target
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>