Package org.ivoa.dm.caom2
Class Position
java.lang.Object
org.ivoa.dm.caom2.Position
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Position",
role=objectType)
public class Position
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the position coverage and sampling of the data.
objectType: Position
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Position, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Shapespatial boundary that includes the data (CHANGED cardinality in CAOM-2.5).protected CalibrationStatusterm describing the calibration of the position axis values (NEW in CAOM-2.5).protected Dimension2Dnumber of separate measurements (pixels) along each axis.protected Intervalmaximum size of spatial structure (signal) that can be recovered or seen in the data (new in CAOM-2.5).protected Shapeminimum spatial boundary that includes the data; this value is smaller than the bounds (maximum) when the field-of-view varies because it is dependent on another axis (usually energy) (new in CAOM-2.5).protected Doublemean spatial resolution (full-width-half-max) per pixel.protected Intervalrange of resolution within the bounds.protected MultiShapedetailed sub-samples of the bounds (CHANGED in CAOM-2.5).protected Doublemedian pixel size. -
Constructor Summary
ConstructorsConstructorDescriptionPosition()Creates a new PositionCopy Constructor.Position(Shape bounds, MultiShape samples, Shape minBounds, Dimension2D dimension, Interval maxRecoverableScale, Double resolution, Interval resolutionBounds, Double sampleSize, CalibrationStatus calibration) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Positioncreate a Position in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns bounds Attribute.Returns calibration Attribute.Returns dimension Attribute.getId()Returns maxRecoverableScale Attribute.Returns minBounds Attribute.Returns resolution Attribute.Returns resolutionBounds Attribute.Returns samples Attribute.Returns sampleSize Attribute.voidSet bounds Attribute.voidsetCalibration(CalibrationStatus pCalibration) Set calibration Attribute.voidsetDimension(Dimension2D pDimension) Set dimension Attribute.voidsetMaxRecoverableScale(Interval pMaxRecoverableScale) Set maxRecoverableScale Attribute.voidsetMinBounds(Shape pMinBounds) Set minBounds Attribute.voidsetResolution(Double pResolution) Set resolution Attribute.voidsetResolutionBounds(Interval pResolutionBounds) Set resolutionBounds Attribute.voidsetSamples(MultiShape pSamples) Set samples Attribute.voidsetSampleSize(Double pSampleSize) Set sampleSize Attribute.voidupdateUsing(Position other) Update this object with the content of the given object.withBounds(Shape pBounds) fluent setter for bounds Attribute.withCalibration(CalibrationStatus pCalibration) fluent setter for calibration Attribute.withDimension(Dimension2D pDimension) fluent setter for dimension Attribute.withMaxRecoverableScale(Interval pMaxRecoverableScale) fluent setter for maxRecoverableScale Attribute.withMinBounds(Shape pMinBounds) fluent setter for minBounds Attribute.withResolution(Double pResolution) fluent setter for resolution Attribute.withResolutionBounds(Interval pResolutionBounds) fluent setter for resolutionBounds Attribute.withSamples(MultiShape pSamples) fluent setter for samples Attribute.withSampleSize(Double pSampleSize) fluent setter for sampleSize Attribute.
-
Field Details
-
_id
inserted database key -
bounds
@VoDml(id="caom2:Position.bounds", role=composition, type="caom2:types.Shape", typeRole=objectType) protected Shape boundsspatial boundary that includes the data (CHANGED cardinality in CAOM-2.5). composition bounds : ( Multiplicity : 1 ) -
samples
@VoDml(id="caom2:Position.samples", role=composition, type="caom2:types.MultiShape", typeRole=objectType) protected MultiShape samplesdetailed sub-samples of the bounds (CHANGED in CAOM-2.5). composition samples : ( Multiplicity : 1 ) -
minBounds
@VoDml(id="caom2:Position.minBounds", role=composition, type="caom2:types.Shape", typeRole=objectType) protected Shape minBoundsminimum spatial boundary that includes the data; this value is smaller than the bounds (maximum) when the field-of-view varies because it is dependent on another axis (usually energy) (new in CAOM-2.5). composition minBounds : ( Multiplicity : 0..1 ) -
dimension
@VoDml(id="caom2:Position.dimension", role=attribute, type="caom2:types.Dimension2D", typeRole=dataType) protected Dimension2D dimensionnumber of separate measurements (pixels) along each axis. : Attribute dimension : multiplicity 0..1 -
maxRecoverableScale
@VoDml(id="caom2:Position.maxRecoverableScale", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval maxRecoverableScalemaximum size of spatial structure (signal) that can be recovered or seen in the data (new in CAOM-2.5). : Attribute maxRecoverableScale : multiplicity 0..1 -
resolution
@VoDml(id="caom2:Position.resolution", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double resolutionmean spatial resolution (full-width-half-max) per pixel. : Attribute resolution : multiplicity 0..1 -
resolutionBounds
@VoDml(id="caom2:Position.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:Position.sampleSize", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sampleSizemedian pixel size. : Attribute sampleSize : multiplicity 0..1 -
calibration
@VoDml(id="caom2:Position.calibration", role=attribute, type="caom2:CalibrationStatus", typeRole=dataType) protected CalibrationStatus calibrationterm describing the calibration of the position axis values (NEW in CAOM-2.5). : Attribute calibration : multiplicity 0..1
-
-
Constructor Details
-
Position
public Position()Creates a new Position -
Position
public Position(Shape bounds, MultiShape samples, Shape minBounds, Dimension2D dimension, Interval maxRecoverableScale, Double resolution, Interval resolutionBounds, Double sampleSize, CalibrationStatus calibration) full parameter constructor.- Parameters:
bounds- spatial boundary that includes the data (CHANGED cardinality in CAOM-2.5).samples- detailed sub-samples of the bounds (CHANGED in CAOM-2.5).minBounds- minimum spatial boundary that includes the data; this value is smaller than the bounds (maximum) when the field-of-view varies because it is dependent on another axis (usually energy) (new in CAOM-2.5).dimension- number of separate measurements (pixels) along each axis.maxRecoverableScale- maximum size of spatial structure (signal) that can be recovered or seen in the data (new in CAOM-2.5).resolution- mean spatial resolution (full-width-half-max) per pixel.resolutionBounds- range of resolution within the bounds.sampleSize- median pixel size.calibration- term describing the calibration of the position axis values (NEW in CAOM-2.5).
-
Position
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:
- Position
-
getSamples
Returns samples Attribute.- Returns:
- samples Attribute
-
setSamples
Set samples Attribute.- Parameters:
pSamples- value to set
-
withSamples
fluent setter for samples Attribute.- Parameters:
pSamples- value to set- Returns:
- Position
-
getMinBounds
Returns minBounds Attribute.- Returns:
- minBounds Attribute
-
setMinBounds
Set minBounds Attribute.- Parameters:
pMinBounds- value to set
-
withMinBounds
fluent setter for minBounds Attribute.- Parameters:
pMinBounds- value to set- Returns:
- Position
-
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:
- Position
-
getMaxRecoverableScale
Returns maxRecoverableScale Attribute.- Returns:
- maxRecoverableScale Attribute
-
setMaxRecoverableScale
Set maxRecoverableScale Attribute.- Parameters:
pMaxRecoverableScale- value to set
-
withMaxRecoverableScale
fluent setter for maxRecoverableScale Attribute.- Parameters:
pMaxRecoverableScale- value to set- Returns:
- Position
-
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:
- Position
-
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:
- Position
-
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:
- Position
-
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:
- Position
-
createPosition
create a Position 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>
-