Package org.ivoa.dm.caom2
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Environment, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Doubleambient temperature at the telescope.protected Doubleangular elevation above horizon [0,90].protected Doublefractional relative humidity [0,1].protected Doubletypical atmospheric distortion (full-width-half-max of a point source).protected Booleanindicator that flux and/or color calibration is stable.protected Doublethe opacity of the atmosphere [0,1].protected Doublewavelength at which opacity was measured. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EnvironmentEnvironment(Double name, Double humidity, Double elevation, Double tau, Double wavelengthTau, Double ambientTemp, Boolean photometric) full parameter constructor.Environment(Environment other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Environmentcreate a Environment in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns ambientTemp Attribute.Returns elevation Attribute.Returns humidity Attribute.getId()getName()Returns name Attribute.Returns photometric Attribute.getTau()Returns tau Attribute.Returns wavelengthTau Attribute.voidsetAmbientTemp(Double pAmbientTemp) Set ambientTemp Attribute.voidsetElevation(Double pElevation) Set elevation Attribute.voidsetHumidity(Double pHumidity) Set humidity Attribute.voidSet name Attribute.voidsetPhotometric(Boolean pPhotometric) Set photometric Attribute.voidSet tau Attribute.voidsetWavelengthTau(Double pWavelengthTau) Set wavelengthTau Attribute.voidupdateUsing(Environment other) Update this object with the content of the given object.withAmbientTemp(Double pAmbientTemp) fluent setter for ambientTemp Attribute.withElevation(Double pElevation) fluent setter for elevation Attribute.withHumidity(Double pHumidity) fluent setter for humidity Attribute.fluent setter for name Attribute.withPhotometric(Boolean pPhotometric) fluent setter for photometric Attribute.fluent setter for tau Attribute.withWavelengthTau(Double pWavelengthTau) fluent setter for wavelengthTau Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="caom2:Environment.name", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double nametypical 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 humidityfractional relative humidity [0,1]. : Attribute humidity : multiplicity 0..1 -
elevation
@VoDml(id="caom2:Environment.elevation", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double elevationangular 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 tauthe 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 wavelengthTauwavelength 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 ambientTempambient temperature at the telescope. : Attribute ambientTemp : multiplicity 0..1 -
photometric
@VoDml(id="caom2:Environment.photometric", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean photometricindicator 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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateUsing
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
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- Environment
-
getHumidity
Returns humidity Attribute.- Returns:
- humidity Attribute
-
setHumidity
Set humidity Attribute.- Parameters:
pHumidity- value to set
-
withHumidity
fluent setter for humidity Attribute.- Parameters:
pHumidity- value to set- Returns:
- Environment
-
getElevation
Returns elevation Attribute.- Returns:
- elevation Attribute
-
setElevation
Set elevation Attribute.- Parameters:
pElevation- value to set
-
withElevation
fluent setter for elevation Attribute.- Parameters:
pElevation- value to set- Returns:
- Environment
-
getTau
Returns tau Attribute.- Returns:
- tau Attribute
-
setTau
Set tau Attribute.- Parameters:
pTau- value to set
-
withTau
fluent setter for tau Attribute.- Parameters:
pTau- value to set- Returns:
- Environment
-
getWavelengthTau
Returns wavelengthTau Attribute.- Returns:
- wavelengthTau Attribute
-
setWavelengthTau
Set wavelengthTau Attribute.- Parameters:
pWavelengthTau- value to set
-
withWavelengthTau
fluent setter for wavelengthTau Attribute.- Parameters:
pWavelengthTau- value to set- Returns:
- Environment
-
getAmbientTemp
Returns ambientTemp Attribute.- Returns:
- ambientTemp Attribute
-
setAmbientTemp
Set ambientTemp Attribute.- Parameters:
pAmbientTemp- value to set
-
withAmbientTemp
fluent setter for ambientTemp Attribute.- Parameters:
pAmbientTemp- value to set- Returns:
- Environment
-
getPhotometric
Returns photometric Attribute.- Returns:
- photometric Attribute
-
setPhotometric
Set photometric Attribute.- Parameters:
pPhotometric- value to set
-
withPhotometric
fluent setter for photometric Attribute.- Parameters:
pPhotometric- value to set- Returns:
- Environment
-
createEnvironment
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-