Class CalibrationObservation

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

@Entity @VoDml(id="proposal:CalibrationObservation", role=objectType) public class CalibrationObservation extends Observation implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
An observation that is intended for calibration. objectType: CalibrationObservation
  • Field Details

    • intent

      @VoDml(id="proposal:CalibrationObservation.intent", role=attribute, type="proposal:CalibrationTarget_intendedUse", typeRole=enumeration) protected CalibrationTarget_intendedUse intent
      The use of the calibration observation. : Attribute intent : multiplicity 1
  • Constructor Details

    • CalibrationObservation

      public CalibrationObservation()
      Creates a new CalibrationObservation
    • CalibrationObservation

      public CalibrationObservation(CalibrationTarget_intendedUse intent, List<Target> target, Field field, TechnicalGoal technicalGoal, List<ObservingConstraint> constraints)
      full parameter constructor.
      Parameters:
      intent - The use of the calibration observation.
      target - The actual target of the observation.
      field - The Field for the observation.
      technicalGoal - The technical goals of the observation.
      constraints - any constraints on the observation.
    • CalibrationObservation

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

      public CalibrationObservation(Observation superinstance, CalibrationTarget_intendedUse intent)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      intent - The use of the calibration observation.
  • Method Details

    • copyMe

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

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
      Overrides:
      updateClonedReferences in class Observation
    • updateUsing

      public void updateUsing(CalibrationObservation 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.
    • getIntent

      public CalibrationTarget_intendedUse getIntent()
      Returns intent Attribute.
      Returns:
      intent Attribute
    • setIntent

      public void setIntent(CalibrationTarget_intendedUse pIntent)
      Set intent Attribute.
      Parameters:
      pIntent - value to set
    • withIntent

      fluent setter for intent Attribute.
      Parameters:
      pIntent - value to set
      Returns:
      CalibrationObservation
    • createCalibrationObservation

      create a CalibrationObservation 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 Observation
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Observation