Class Environment

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

@Entity @VoDml(id="caom2:Environment", role=objectType) public class Environment extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
collection of measured quantities that characterise the environment at the time of observation. objectType: Environment
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="caom2:Environment.name", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double name
      typical atmospheric distortion (full-width-half-max of a point source). : Attribute name : multiplicity 0..1
    • humidity

      @VoDml(id="caom2:Environment.humidity", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double humidity
      fractional relative humidity [0,1]. : Attribute humidity : multiplicity 0..1
    • elevation

      @VoDml(id="caom2:Environment.elevation", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double elevation
      angular elevation above horizon [0,90]. : Attribute elevation : multiplicity 0..1
    • tau

      @VoDml(id="caom2:Environment.tau", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double tau
      the opacity of the atmosphere [0,1]. : Attribute tau : multiplicity 0..1
    • wavelengthTau

      @VoDml(id="caom2:Environment.wavelengthTau", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double wavelengthTau
      wavelength at which opacity was measured. : Attribute wavelengthTau : multiplicity 0..1
    • ambientTemp

      @VoDml(id="caom2:Environment.ambientTemp", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double ambientTemp
      ambient temperature at the telescope. : Attribute ambientTemp : multiplicity 0..1
    • photometric

      @VoDml(id="caom2:Environment.photometric", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean photometric
      indicator that flux and/or color calibration is stable. : Attribute photometric : multiplicity 0..1
  • Constructor Details

    • Environment

      public Environment()
      Creates a new Environment
    • Environment

      public Environment(Double name, Double humidity, Double elevation, Double tau, Double wavelengthTau, Double ambientTemp, Boolean photometric)
      full parameter constructor.
      Parameters:
      name - typical atmospheric distortion (full-width-half-max of a point source).
      humidity - fractional relative humidity [0,1].
      elevation - angular elevation above horizon [0,90].
      tau - the opacity of the atmosphere [0,1].
      wavelengthTau - wavelength at which opacity was measured.
      ambientTemp - ambient temperature at the telescope.
      photometric - indicator that flux and/or color calibration is stable.
    • Environment

      public Environment(Environment 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(Environment 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.
    • getName

      public Double getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(Double pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Environment withName(Double pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Environment
    • getHumidity

      public Double getHumidity()
      Returns humidity Attribute.
      Returns:
      humidity Attribute
    • setHumidity

      public void setHumidity(Double pHumidity)
      Set humidity Attribute.
      Parameters:
      pHumidity - value to set
    • withHumidity

      public Environment withHumidity(Double pHumidity)
      fluent setter for humidity Attribute.
      Parameters:
      pHumidity - value to set
      Returns:
      Environment
    • getElevation

      public Double getElevation()
      Returns elevation Attribute.
      Returns:
      elevation Attribute
    • setElevation

      public void setElevation(Double pElevation)
      Set elevation Attribute.
      Parameters:
      pElevation - value to set
    • withElevation

      public Environment withElevation(Double pElevation)
      fluent setter for elevation Attribute.
      Parameters:
      pElevation - value to set
      Returns:
      Environment
    • getTau

      public Double getTau()
      Returns tau Attribute.
      Returns:
      tau Attribute
    • setTau

      public void setTau(Double pTau)
      Set tau Attribute.
      Parameters:
      pTau - value to set
    • withTau

      public Environment withTau(Double pTau)
      fluent setter for tau Attribute.
      Parameters:
      pTau - value to set
      Returns:
      Environment
    • getWavelengthTau

      public Double getWavelengthTau()
      Returns wavelengthTau Attribute.
      Returns:
      wavelengthTau Attribute
    • setWavelengthTau

      public void setWavelengthTau(Double pWavelengthTau)
      Set wavelengthTau Attribute.
      Parameters:
      pWavelengthTau - value to set
    • withWavelengthTau

      public Environment withWavelengthTau(Double pWavelengthTau)
      fluent setter for wavelengthTau Attribute.
      Parameters:
      pWavelengthTau - value to set
      Returns:
      Environment
    • getAmbientTemp

      public Double getAmbientTemp()
      Returns ambientTemp Attribute.
      Returns:
      ambientTemp Attribute
    • setAmbientTemp

      public void setAmbientTemp(Double pAmbientTemp)
      Set ambientTemp Attribute.
      Parameters:
      pAmbientTemp - value to set
    • withAmbientTemp

      public Environment withAmbientTemp(Double pAmbientTemp)
      fluent setter for ambientTemp Attribute.
      Parameters:
      pAmbientTemp - value to set
      Returns:
      Environment
    • getPhotometric

      public Boolean getPhotometric()
      Returns photometric Attribute.
      Returns:
      photometric Attribute
    • setPhotometric

      public void setPhotometric(Boolean pPhotometric)
      Set photometric Attribute.
      Parameters:
      pPhotometric - value to set
    • withPhotometric

      public Environment withPhotometric(Boolean pPhotometric)
      fluent setter for photometric Attribute.
      Parameters:
      pPhotometric - value to set
      Returns:
      Environment
    • createEnvironment

      public static Environment createEnvironment(Consumer<Environment.EnvironmentBuilder> f)
      create a Environment 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>