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 @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

    • sourceCoordinates

      @VoDml(id="proposal:CelestialTarget.sourceCoordinates", role=attribute, type="coords:EquatorialPoint", typeRole=dataType) protected org.ivoa.dm.stc.coords.EquatorialPoint sourceCoordinates
      . : Attribute sourceCoordinates : multiplicity 1
    • positionEpoch

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

      @VoDml(id="proposal:CelestialTarget.pmRA", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pmRA
      . : Attribute pmRA : 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 : 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 : 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 : multiplicity 0..1
  • Constructor Details

    • CelestialTarget

      public CelestialTarget()
      Creates a new CelestialTarget
    • CelestialTarget

      public CelestialTarget(org.ivoa.dm.stc.coords.EquatorialPoint sourceCoordinates, org.ivoa.dm.stc.coords.Epoch 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:
      sourceCoordinates - .
      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, org.ivoa.dm.stc.coords.EquatorialPoint sourceCoordinates, org.ivoa.dm.stc.coords.Epoch 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.
      sourceCoordinates - .
      positionEpoch - the epoch at which the position was measured.
      pmRA - .
      pmDec - .
      parallax - .
      sourceVelocity - .
  • Method Details

    • copyMe

      public Target copyMe()
      Specified by:
      copyMe in class Target
    • 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.
    • getSourceCoordinates

      public org.ivoa.dm.stc.coords.EquatorialPoint getSourceCoordinates()
      Returns sourceCoordinates Attribute
      Returns:
      sourceCoordinates Attribute
    • setSourceCoordinates

      public void setSourceCoordinates(org.ivoa.dm.stc.coords.EquatorialPoint pSourceCoordinates)
      Defines sourceCoordinates Attribute
      Parameters:
      pSourceCoordinates - value to set
    • withSourceCoordinates

      public CelestialTarget withSourceCoordinates(org.ivoa.dm.stc.coords.EquatorialPoint pSourceCoordinates)
    • getPositionEpoch

      public org.ivoa.dm.stc.coords.Epoch getPositionEpoch()
      Returns positionEpoch Attribute
      Returns:
      positionEpoch Attribute
    • setPositionEpoch

      public void setPositionEpoch(org.ivoa.dm.stc.coords.Epoch pPositionEpoch)
      Defines positionEpoch Attribute
      Parameters:
      pPositionEpoch - value to set
    • withPositionEpoch

      public CelestialTarget withPositionEpoch(org.ivoa.dm.stc.coords.Epoch pPositionEpoch)
    • getPmRA

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

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

      public CelestialTarget withPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA)
    • getPmDec

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

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

      public CelestialTarget withPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec)
    • getParallax

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

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

      public CelestialTarget withParallax(org.ivoa.dm.ivoa.RealQuantity pParallax)
    • getSourceVelocity

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

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

      public CelestialTarget withSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity)
    • 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      jpaClone in class Target
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Target