Package org.ivoa.dm.caom2
Class Energy
java.lang.Object
org.ivoa.dm.caom2.Energy
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Energy",
role=objectType)
public class Energy
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the energy coverage and sampling of the data.
objectType: Energy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Energy, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keytelescope- and instrument-specific name for the energy band(s) included; multiple bands may be included if energies from all specified bands are included in the data (in the sense of union).protected Intervalsimple outer bounds of energy coverage of the data (CHANGED cardinality in CAOM-2.5).protected CalibrationStatusterm describing the calibration of the energy axis values (new in CAOM-2.5).protected Integernumber of measurements (pixels) on the energy axis.protected List<EnergyBand>standard name of the energy regime(s) included in the data.protected Doublemean absolute spectral resolution per pixel (new in CAOM-2.5).protected Intervalrange of absolute spectral resolution within the bounds (new in CAOM-2.5).protected Doublemean spectral resolving power per pixel (relative resolution).protected Intervalrange of resolving power within the bounds (relative resolution).protected Doublerest energy of the target energy transition (name changed in CAOM-2.5).detailed energy coverage of the data (CHANGED in CAOM-2.5).protected Doublemean pixel size.protected EnergyTransitiontarget energy transition for this data. -
Constructor Summary
ConstructorsConstructorDescriptionEnergy()Creates a new EnergyCopy Constructor.Energy(Interval bounds, List<IntervalM> samples, List<EnergyBand> energyBands, Integer dimension, Double resolvingPower, Interval resolvingPowerBounds, Double resolution, Interval resolutionBounds, Double sampleSize, List<String> bandpassName, Double restwav, CalibrationStatus calibration, EnergyTransition transition) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.caom2.types.IntervalM to the composition.static Energycreate a Energy in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns bandpassName Attribute.Returns bounds Attribute.Returns calibration Attribute.Returns dimension Attribute.Returns energyBands Attribute.getId()Returns resolution Attribute.Returns resolutionBounds Attribute.Returns resolvingPower Attribute.Returns resolvingPowerBounds Attribute.Returns restwav Attribute.Returns samples composition as an immutable list.Returns sampleSize Attribute.Returns transition Attribute.voidRemove a org.ivoa.dm.caom2.types.IntervalM from the composition.voidupdate a org.ivoa.dm.caom2.types.IntervalM in the composition.voidsetBandpassName(List<String> pBandpassName) Set bandpassName Attribute.voidSet bounds Attribute.voidsetCalibration(CalibrationStatus pCalibration) Set calibration Attribute.voidsetDimension(Integer pDimension) Set dimension Attribute.voidsetEnergyBands(List<EnergyBand> pEnergyBands) Set energyBands Attribute.voidsetResolution(Double pResolution) Set resolution Attribute.voidsetResolutionBounds(Interval pResolutionBounds) Set resolutionBounds Attribute.voidsetResolvingPower(Double pResolvingPower) Set resolvingPower Attribute.voidsetResolvingPowerBounds(Interval pResolvingPowerBounds) Set resolvingPowerBounds Attribute.voidsetRestwav(Double pRestwav) Set restwav Attribute.voidsetSamples(List<IntervalM> pSamples) Defines whole samples composition.voidsetSampleSize(Double pSampleSize) Set sampleSize Attribute.voidsetTransition(EnergyTransition pTransition) Set transition Attribute.voidupdateUsing(Energy other) Update this object with the content of the given object.withBandpassName(List<String> pBandpassName) fluent setter for bandpassName Attribute.withBounds(Interval pBounds) fluent setter for bounds Attribute.withCalibration(CalibrationStatus pCalibration) fluent setter for calibration Attribute.withDimension(Integer pDimension) fluent setter for dimension Attribute.withEnergyBands(List<EnergyBand> pEnergyBands) fluent setter for energyBands Attribute.withResolution(Double pResolution) fluent setter for resolution Attribute.withResolutionBounds(Interval pResolutionBounds) fluent setter for resolutionBounds Attribute.withResolvingPower(Double pResolvingPower) fluent setter for resolvingPower Attribute.withResolvingPowerBounds(Interval pResolvingPowerBounds) fluent setter for resolvingPowerBounds Attribute.withRestwav(Double pRestwav) fluent setter for restwav Attribute.withSampleSize(Double pSampleSize) fluent setter for sampleSize Attribute.withTransition(EnergyTransition pTransition) fluent setter for transition Attribute.
-
Field Details
-
_id
inserted database key -
bounds
@VoDml(id="caom2:Energy.bounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval boundssimple outer bounds of energy coverage of the data (CHANGED cardinality in CAOM-2.5). : Attribute bounds : multiplicity 1 -
samples
@VoDml(id="caom2:Energy.samples", role=composition, type="caom2:types.IntervalM", typeRole=objectType) protected List<IntervalM> samplesdetailed energy coverage of the data (CHANGED in CAOM-2.5). composition samples : ( Multiplicity : 1..* ) -
energyBands
@VoDml(id="caom2:Energy.energyBands", role=attribute, type="caom2:EnergyBand", typeRole=enumeration) protected List<EnergyBand> energyBandsstandard name of the energy regime(s) included in the data. : Attribute energyBands : multiplicity 0..* -
dimension
@VoDml(id="caom2:Energy.dimension", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer dimensionnumber of measurements (pixels) on the energy axis. : Attribute dimension : multiplicity 0..1 -
resolvingPower
@VoDml(id="caom2:Energy.resolvingPower", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double resolvingPowermean spectral resolving power per pixel (relative resolution). : Attribute resolvingPower : multiplicity 0..1 -
resolvingPowerBounds
@VoDml(id="caom2:Energy.resolvingPowerBounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval resolvingPowerBoundsrange of resolving power within the bounds (relative resolution). : Attribute resolvingPowerBounds : multiplicity 0..1 -
resolution
@VoDml(id="caom2:Energy.resolution", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double resolutionmean absolute spectral resolution per pixel (new in CAOM-2.5). : Attribute resolution : multiplicity 0..1 -
resolutionBounds
@VoDml(id="caom2:Energy.resolutionBounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval resolutionBoundsrange of absolute spectral resolution within the bounds (new in CAOM-2.5). : Attribute resolutionBounds : multiplicity 0..1 -
sampleSize
@VoDml(id="caom2:Energy.sampleSize", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sampleSizemean pixel size. : Attribute sampleSize : multiplicity 0..1 -
bandpassName
@VoDml(id="caom2:Energy.bandpassName", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> bandpassNametelescope- and instrument-specific name for the energy band(s) included; multiple bands may be included if energies from all specified bands are included in the data (in the sense of union). : Attribute bandpassName : multiplicity 0..* -
restwav
@VoDml(id="caom2:Energy.restwav", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double restwavrest energy of the target energy transition (name changed in CAOM-2.5). : Attribute restwav : multiplicity 0..1 -
calibration
@VoDml(id="caom2:Energy.calibration", role=attribute, type="caom2:CalibrationStatus", typeRole=dataType) protected CalibrationStatus calibrationterm describing the calibration of the energy axis values (new in CAOM-2.5). : Attribute calibration : multiplicity 0..1 -
transition
@VoDml(id="caom2:Energy.transition", role=attribute, type="caom2:EnergyTransition", typeRole=dataType) protected EnergyTransition transitiontarget energy transition for this data. : Attribute transition : multiplicity 0..1
-
-
Constructor Details
-
Energy
public Energy()Creates a new Energy -
Energy
public Energy(Interval bounds, List<IntervalM> samples, List<EnergyBand> energyBands, Integer dimension, Double resolvingPower, Interval resolvingPowerBounds, Double resolution, Interval resolutionBounds, Double sampleSize, List<String> bandpassName, Double restwav, CalibrationStatus calibration, EnergyTransition transition) full parameter constructor.- Parameters:
bounds- simple outer bounds of energy coverage of the data (CHANGED cardinality in CAOM-2.5).samples- detailed energy coverage of the data (CHANGED in CAOM-2.5).energyBands- standard name of the energy regime(s) included in the data.dimension- number of measurements (pixels) on the energy axis.resolvingPower- mean spectral resolving power per pixel (relative resolution).resolvingPowerBounds- range of resolving power within the bounds (relative resolution).resolution- mean absolute spectral resolution per pixel (new in CAOM-2.5).resolutionBounds- range of absolute spectral resolution within the bounds (new in CAOM-2.5).sampleSize- mean pixel size.bandpassName- telescope- and instrument-specific name for the energy band(s) included; multiple bands may be included if energies from all specified bands are included in the data (in the sense of union).restwav- rest energy of the target energy transition (name changed in CAOM-2.5).calibration- term describing the calibration of the energy axis values (new in CAOM-2.5).transition- target energy transition for this data.
-
Energy
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.
-
getBounds
Returns bounds Attribute.- Returns:
- bounds Attribute
-
setBounds
Set bounds Attribute.- Parameters:
pBounds- value to set
-
withBounds
fluent setter for bounds Attribute.- Parameters:
pBounds- value to set- Returns:
- Energy
-
getSamples
Returns samples composition as an immutable list.- Returns:
- samples composition.
-
setSamples
Defines whole samples composition.- Parameters:
pSamples- composition to set.
-
addToSamples
Add a org.ivoa.dm.caom2.types.IntervalM to the composition.- Parameters:
p- org.ivoa.dm.caom2.types.IntervalM to add
-
removeFromSamples
Remove a org.ivoa.dm.caom2.types.IntervalM from the composition.- Parameters:
p- org.ivoa.dm.caom2.types.IntervalM to remove
-
replaceInSamples
update a org.ivoa.dm.caom2.types.IntervalM in the composition.- Parameters:
_p- org.ivoa.dm.caom2.types.IntervalM to update the match is done via the database key
-
getEnergyBands
Returns energyBands Attribute.- Returns:
- energyBands Attribute
-
setEnergyBands
Set energyBands Attribute.- Parameters:
pEnergyBands- value to set
-
withEnergyBands
fluent setter for energyBands Attribute.- Parameters:
pEnergyBands- value to set- Returns:
- Energy
-
getDimension
Returns dimension Attribute.- Returns:
- dimension Attribute
-
setDimension
Set dimension Attribute.- Parameters:
pDimension- value to set
-
withDimension
fluent setter for dimension Attribute.- Parameters:
pDimension- value to set- Returns:
- Energy
-
getResolvingPower
Returns resolvingPower Attribute.- Returns:
- resolvingPower Attribute
-
setResolvingPower
Set resolvingPower Attribute.- Parameters:
pResolvingPower- value to set
-
withResolvingPower
fluent setter for resolvingPower Attribute.- Parameters:
pResolvingPower- value to set- Returns:
- Energy
-
getResolvingPowerBounds
Returns resolvingPowerBounds Attribute.- Returns:
- resolvingPowerBounds Attribute
-
setResolvingPowerBounds
Set resolvingPowerBounds Attribute.- Parameters:
pResolvingPowerBounds- value to set
-
withResolvingPowerBounds
fluent setter for resolvingPowerBounds Attribute.- Parameters:
pResolvingPowerBounds- value to set- Returns:
- Energy
-
getResolution
Returns resolution Attribute.- Returns:
- resolution Attribute
-
setResolution
Set resolution Attribute.- Parameters:
pResolution- value to set
-
withResolution
fluent setter for resolution Attribute.- Parameters:
pResolution- value to set- Returns:
- Energy
-
getResolutionBounds
Returns resolutionBounds Attribute.- Returns:
- resolutionBounds Attribute
-
setResolutionBounds
Set resolutionBounds Attribute.- Parameters:
pResolutionBounds- value to set
-
withResolutionBounds
fluent setter for resolutionBounds Attribute.- Parameters:
pResolutionBounds- value to set- Returns:
- Energy
-
getSampleSize
Returns sampleSize Attribute.- Returns:
- sampleSize Attribute
-
setSampleSize
Set sampleSize Attribute.- Parameters:
pSampleSize- value to set
-
withSampleSize
fluent setter for sampleSize Attribute.- Parameters:
pSampleSize- value to set- Returns:
- Energy
-
getBandpassName
Returns bandpassName Attribute.- Returns:
- bandpassName Attribute
-
setBandpassName
Set bandpassName Attribute.- Parameters:
pBandpassName- value to set
-
withBandpassName
fluent setter for bandpassName Attribute.- Parameters:
pBandpassName- value to set- Returns:
- Energy
-
getRestwav
Returns restwav Attribute.- Returns:
- restwav Attribute
-
setRestwav
Set restwav Attribute.- Parameters:
pRestwav- value to set
-
withRestwav
fluent setter for restwav Attribute.- Parameters:
pRestwav- value to set- Returns:
- Energy
-
getCalibration
Returns calibration Attribute.- Returns:
- calibration Attribute
-
setCalibration
Set calibration Attribute.- Parameters:
pCalibration- value to set
-
withCalibration
fluent setter for calibration Attribute.- Parameters:
pCalibration- value to set- Returns:
- Energy
-
getTransition
Returns transition Attribute.- Returns:
- transition Attribute
-
setTransition
Set transition Attribute.- Parameters:
pTransition- value to set
-
withTransition
fluent setter for transition Attribute.- Parameters:
pTransition- value to set- Returns:
- Energy
-
createEnergy
create a Energy 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>
-