Class ObservingConfiguration

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

@Entity @VoDml(id="proposal:ObservingConfiguration", role=objectType) public class ObservingConfiguration extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A particular observation combination that is possible. objectType: ObservingConfiguration
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • telescope

      @VoDml(id="proposal:ObservingConfiguration.telescope", role=reference, type="proposal:Telescope", typeRole=objectType) protected Telescope telescope
      ReferenceObject telescope : . ( Multiplicity : 1 )
    • instrument

      @VoDml(id="proposal:ObservingConfiguration.instrument", role=reference, type="proposal:Instrument", typeRole=objectType) protected Instrument instrument
      ReferenceObject instrument : . ( Multiplicity : 1 )
    • backend

      @VoDml(id="proposal:ObservingConfiguration.backend", role=reference, type="proposal:Backend", typeRole=objectType) protected Backend backend
      ReferenceObject backend : . ( Multiplicity : 1 )
  • Constructor Details

    • ObservingConfiguration

      public ObservingConfiguration()
      Creates a new ObservingConfiguration
    • ObservingConfiguration

      public ObservingConfiguration(Telescope telescope, Instrument instrument, Backend backend)
      full parameter constructor.
      Parameters:
      telescope - .
      instrument - .
      backend - .
    • ObservingConfiguration

      public ObservingConfiguration(ObservingConfiguration 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
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
    • updateUsing

      public void updateUsing(ObservingConfiguration 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.
    • getTelescope

      public Telescope getTelescope()
      Returns telescope Reference
      Returns:
      telescope Reference
    • setTelescope

      public void setTelescope(Telescope pTelescope)
      Defines telescope Reference
      Parameters:
      pTelescope - reference to set
    • getInstrument

      public Instrument getInstrument()
      Returns instrument Reference
      Returns:
      instrument Reference
    • setInstrument

      public void setInstrument(Instrument pInstrument)
      Defines instrument Reference
      Parameters:
      pInstrument - reference to set
    • getBackend

      public Backend getBackend()
      Returns backend Reference
      Returns:
      backend Reference
    • setBackend

      public void setBackend(Backend pBackend)
      Defines backend Reference
      Parameters:
      pBackend - reference to set
    • createObservingConfiguration

      create a ObservingConfiguration 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
    • jpaClone

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

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