Package org.ivoa.dm.caom2
Class Time
java.lang.Object
org.ivoa.dm.caom2.Time
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Time",
role=objectType)
public class Time
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the time coverage and sampling of the data.
objectType: Time
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Time, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Intervaltime bounds that include the data (cardinality changed in CAOM-2.5).protected CalibrationStatusterm describing the calibration of the time axis values.protected Integernumber of discrete samples (pixels) on the time axis.protected Doublemean exposure time per pixel.protected Intervalrange of exposure within the bounds.protected Doublemedian temporal resolution per pixel.protected Intervalrange of resolution within the bounds.detailed time coverage that include the data (refactored in CAOM-2.5).protected Doublemedian pixel size. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.caom2.types.IntervalM to the composition.static Timecreate a Time in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns bounds Attribute.Returns calibration Attribute.Returns dimension Attribute.Returns exposure Attribute.Returns exposureBounds Attribute.getId()Returns resolution Attribute.Returns resolutionBounds Attribute.Returns samples composition as an immutable list.Returns sampleSize Attribute.voidRemove a org.ivoa.dm.caom2.types.IntervalM from the composition.voidupdate a org.ivoa.dm.caom2.types.IntervalM in the composition.voidSet bounds Attribute.voidsetCalibration(CalibrationStatus pCalibration) Set calibration Attribute.voidsetDimension(Integer pDimension) Set dimension Attribute.voidsetExposure(Double pExposure) Set exposure Attribute.voidsetExposureBounds(Interval pExposureBounds) Set exposureBounds Attribute.voidsetResolution(Double pResolution) Set resolution Attribute.voidsetResolutionBounds(Interval pResolutionBounds) Set resolutionBounds Attribute.voidsetSamples(List<IntervalM> pSamples) Defines whole samples composition.voidsetSampleSize(Double pSampleSize) Set sampleSize Attribute.voidupdateUsing(Time other) Update this object with the content of the given object.withBounds(Interval pBounds) fluent setter for bounds Attribute.withCalibration(CalibrationStatus pCalibration) fluent setter for calibration Attribute.withDimension(Integer pDimension) fluent setter for dimension Attribute.withExposure(Double pExposure) fluent setter for exposure Attribute.withExposureBounds(Interval pExposureBounds) fluent setter for exposureBounds Attribute.withResolution(Double pResolution) fluent setter for resolution Attribute.withResolutionBounds(Interval pResolutionBounds) fluent setter for resolutionBounds Attribute.withSampleSize(Double pSampleSize) fluent setter for sampleSize Attribute.
-
Field Details
-
_id
inserted database key -
bounds
@VoDml(id="caom2:Time.bounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval boundstime bounds that include the data (cardinality changed in CAOM-2.5). : Attribute bounds : multiplicity 1 -
samples
@VoDml(id="caom2:Time.samples", role=composition, type="caom2:types.IntervalM", typeRole=objectType) protected List<IntervalM> samplesdetailed time coverage that include the data (refactored in CAOM-2.5). composition samples : ( Multiplicity : 1..* ) -
calibration
@VoDml(id="caom2:Time.calibration", role=attribute, type="caom2:CalibrationStatus", typeRole=dataType) protected CalibrationStatus calibrationterm describing the calibration of the time axis values. : Attribute calibration : multiplicity 0..1 -
dimension
@VoDml(id="caom2:Time.dimension", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer dimensionnumber of discrete samples (pixels) on the time axis. : Attribute dimension : multiplicity 0..1 -
resolution
@VoDml(id="caom2:Time.resolution", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double resolutionmedian temporal resolution per pixel. : Attribute resolution : multiplicity 0..1 -
resolutionBounds
@VoDml(id="caom2:Time.resolutionBounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval resolutionBoundsrange of resolution within the bounds. : Attribute resolutionBounds : multiplicity 0..1 -
sampleSize
@VoDml(id="caom2:Time.sampleSize", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sampleSizemedian pixel size. : Attribute sampleSize : multiplicity 0..1 -
exposure
@VoDml(id="caom2:Time.exposure", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double exposuremean exposure time per pixel. : Attribute exposure : multiplicity 0..1 -
exposureBounds
@VoDml(id="caom2:Time.exposureBounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval exposureBoundsrange of exposure within the bounds. : Attribute exposureBounds : multiplicity 0..1
-
-
Constructor Details
-
Time
public Time()Creates a new Time -
Time
public Time(Interval bounds, List<IntervalM> samples, CalibrationStatus calibration, Integer dimension, Double resolution, Interval resolutionBounds, Double sampleSize, Double exposure, Interval exposureBounds) full parameter constructor.- Parameters:
bounds- time bounds that include the data (cardinality changed in CAOM-2.5).samples- detailed time coverage that include the data (refactored in CAOM-2.5).calibration- term describing the calibration of the time axis values.dimension- number of discrete samples (pixels) on the time axis.resolution- median temporal resolution per pixel.resolutionBounds- range of resolution within the bounds.sampleSize- median pixel size.exposure- mean exposure time per pixel.exposureBounds- range of exposure within the bounds.
-
Time
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:
- Time
-
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
-
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:
- Time
-
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:
- Time
-
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:
- Time
-
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:
- Time
-
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:
- Time
-
getExposure
Returns exposure Attribute.- Returns:
- exposure Attribute
-
setExposure
Set exposure Attribute.- Parameters:
pExposure- value to set
-
withExposure
fluent setter for exposure Attribute.- Parameters:
pExposure- value to set- Returns:
- Time
-
getExposureBounds
Returns exposureBounds Attribute.- Returns:
- exposureBounds Attribute
-
setExposureBounds
Set exposureBounds Attribute.- Parameters:
pExposureBounds- value to set
-
withExposureBounds
fluent setter for exposureBounds Attribute.- Parameters:
pExposureBounds- value to set- Returns:
- Time
-
createTime
create a Time 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>
-