Class Observable

java.lang.Object
org.ivoa.dm.caom2.Observable
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="caom2:Observable", role=objectType) public class Observable extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the sample (pixel) values. objectType: Observable
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • ucd

      @VoDml(id="caom2:Observable.ucd", role=attribute, type="caom2:UCDTerm", typeRole=dataType) protected UCDTerm ucd
      Unified Content Descriptor (UCD) that says what kind of quantity is stored. : Attribute ucd : multiplicity 1
    • calibration

      @VoDml(id="caom2:Observable.calibration", role=attribute, type="caom2:CalibrationStatus", typeRole=dataType) protected CalibrationStatus calibration
      term describing the calibration of the observable values. : Attribute calibration : multiplicity 0..1
  • Constructor Details

    • Observable

      public Observable()
      Creates a new Observable
    • Observable

      public Observable(UCDTerm ucd, CalibrationStatus calibration)
      full parameter constructor.
      Parameters:
      ucd - Unified Content Descriptor (UCD) that says what kind of quantity is stored.
      calibration - term describing the calibration of the observable values.
    • Observable

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

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Observable 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.
    • getUcd

      public UCDTerm getUcd()
      Returns ucd Attribute.
      Returns:
      ucd Attribute
    • setUcd

      public void setUcd(UCDTerm pUcd)
      Set ucd Attribute.
      Parameters:
      pUcd - value to set
    • withUcd

      public Observable withUcd(UCDTerm pUcd)
      fluent setter for ucd Attribute.
      Parameters:
      pUcd - value to set
      Returns:
      Observable
    • getCalibration

      public CalibrationStatus getCalibration()
      Returns calibration Attribute.
      Returns:
      calibration Attribute
    • setCalibration

      public void setCalibration(CalibrationStatus pCalibration)
      Set calibration Attribute.
      Parameters:
      pCalibration - value to set
    • withCalibration

      public Observable withCalibration(CalibrationStatus pCalibration)
      fluent setter for calibration Attribute.
      Parameters:
      pCalibration - value to set
      Returns:
      Observable
    • createObservable

      public static Observable createObservable(Consumer<Observable.ObservableBuilder> f)
      create a Observable 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
    • delete

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