Class Coverage
java.lang.Object
org.ivoa.dm.registry.vodataservice.Coverage
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VODataService:Coverage",
       role=objectType)
public class Coverage
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A description of how a resource's contents or behavior maps
                          to the sky, to time, and to frequency space, including
                          coverage and resolution.  
 objectType:  Coverage
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Coverage, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ServiceReferenceA reference to a footprint service for retrieving precise and up-to-date description of coverage.protected DoubleA single numeric value representing the angle, given in decimal degrees, by which a positional query against this resource should be “blurred” in order to get an appropriate match.protected SpatialCoverageAn ASCII-serialized MOC defining the spatial coverage of the resource.protected List<FloatInterval>A pair of lower, upper limits of a spectral interval for which the resource offers data.protected List<FloatInterval>A pair of lower, upper limits of a time interval for which the resource offers data.A name of a messenger that the resource is relevant for (e.g., was used in the measurements). - 
Constructor Summary
ConstructorsConstructorDescriptionCoverage()Creates a new CoverageCopy Constructor.Coverage(SpatialCoverage spatial, List<FloatInterval> temporal, List<FloatInterval> spectral, ServiceReference footprint, List<String> waveband, Double regionOfRegard) full parameter constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Coveragecreate a Coverage in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns footprint Attribute.getId()Returns regionOfRegard Attribute.Returns spatial Attribute.Returns spectral Attribute.Returns temporal Attribute.Returns waveband Attribute.voidsetFootprint(ServiceReference pFootprint) Set footprint Attribute.voidsetRegionOfRegard(Double pRegionOfRegard) Set regionOfRegard Attribute.voidsetSpatial(SpatialCoverage pSpatial) Set spatial Attribute.voidsetSpectral(List<FloatInterval> pSpectral) Set spectral Attribute.voidsetTemporal(List<FloatInterval> pTemporal) Set temporal Attribute.voidsetWaveband(List<String> pWaveband) Set waveband Attribute.voidupdateUsing(Coverage other) Update this object with the content of the given object.withFootprint(ServiceReference pFootprint) fluent setter for footprint Attribute.withRegionOfRegard(Double pRegionOfRegard) fluent setter for regionOfRegard Attribute.withSpatial(SpatialCoverage pSpatial) fluent setter for spatial Attribute.withSpectral(List<FloatInterval> pSpectral) fluent setter for spectral Attribute.withTemporal(List<FloatInterval> pTemporal) fluent setter for temporal Attribute.withWaveband(List<String> pWaveband) fluent setter for waveband Attribute. 
- 
Field Details
- 
_id
inserted database key - 
spatial
@VoDml(id="VODataService:Coverage.spatial", role=attribute, type="VODataService:SpatialCoverage", typeRole=dataType) protected SpatialCoverage spatialAn ASCII-serialized MOC defining the spatial coverage of the resource. The MOC is to be understood in the ICRS reference frame unless a frame attribute is given. Resources should give the coverage at least to order 6 (a resolution of about one degree). The order should be chosen so as to keep the resulting MOC smaller than a few dozens of kB. If desired, a more precise MOC can be provided on a dedicated endpoint declared in the footprint element. : Attribute spatial : multiplicity 0..1 - 
temporal
@VoDml(id="VODataService:Coverage.temporal", role=attribute, type="VODataService:FloatInterval", typeRole=primitiveType) protected List<FloatInterval> temporalA pair of lower, upper limits of a time interval for which the resource offers data. This is written as for VOTable tabledata (i.e., whitespace-separated C-style floating point literals), as in “47847.2 51370.2”. The limits must be given as MJD. While they are not intended to be precise, they are to be understood in TDB for the solar system barycenter. The total coverage of the resource is the union of all such intervals. : Attribute temporal : multiplicity 0..* - 
spectral
@VoDml(id="VODataService:Coverage.spectral", role=attribute, type="VODataService:FloatInterval", typeRole=primitiveType) protected List<FloatInterval> spectralA pair of lower, upper limits of a spectral interval for which the resource offers data. This is written as for VOTable tabledata (i.e., whitespace-separated C-style floating point literals). The limits must be given in Joules of particle energies. While the limits are not intended to be precise, they are to be understood for the solar system barycenter. For instance, the Johnson V waveband (480 .. 730 nm) would be specified as “2.72e-19 4.14e-19” . : Attribute spectral : multiplicity 0..* - 
footprint
@VoDml(id="VODataService:Coverage.footprint", role=attribute, type="VODataService:ServiceReference", typeRole=dataType) protected ServiceReference footprintA reference to a footprint service for retrieving precise and up-to-date description of coverage. The ivoid attribute here refers to the standard in which the footprint is given. The only value defined by VODataService at this point is ivo://ivoa.net/std/moc, which indicates that retrieving the footprint URL will return a MOC (any IVOA-approved serialisation is legal). Note that the ivoid attribute was intended to have a different function in VODataService 1.1. The current meaning is what implementors actually adopted. : Attribute footprint : multiplicity 0..1 - 
waveband
@VoDml(id="VODataService:Coverage.waveband", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> wavebandA name of a messenger that the resource is relevant for (e.g., was used in the measurements). Terms must be taken from the vocabulary at http://www.ivoa.net/rdf/messenger. It is a bit unfortunate that the element is still called waveband when it is now also covers non-electromagnetic messengers. It was deemed that this slight notional sloppiness is preferable to introducing new and deprecating old elements. : Attribute waveband : multiplicity 0..* - 
regionOfRegard
@VoDml(id="VODataService:Coverage.regionOfRegard", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double regionOfRegardA single numeric value representing the angle, given in decimal degrees, by which a positional query against this resource should be “blurred” in order to get an appropriate match. In the case of image repositories, it might refer to a typical field-of-view size, or the primary beam size for radio aperture synthesis data. In the case of object catalogues RoR should normally be the largest of the typical size of the objects, the astrometric errors in the positions, or the resolution of the data. : Attribute regionOfRegard : multiplicity 0..1 
 - 
 - 
Constructor Details
- 
Coverage
public Coverage()Creates a new Coverage - 
Coverage
public Coverage(SpatialCoverage spatial, List<FloatInterval> temporal, List<FloatInterval> spectral, ServiceReference footprint, List<String> waveband, Double regionOfRegard) full parameter constructor.- Parameters:
 spatial- An ASCII-serialized MOC defining the spatial coverage of the resource. The MOC is to be understood in the ICRS reference frame unless a frame attribute is given. Resources should give the coverage at least to order 6 (a resolution of about one degree). The order should be chosen so as to keep the resulting MOC smaller than a few dozens of kB. If desired, a more precise MOC can be provided on a dedicated endpoint declared in the footprint element.temporal- A pair of lower, upper limits of a time interval for which the resource offers data. This is written as for VOTable tabledata (i.e., whitespace-separated C-style floating point literals), as in “47847.2 51370.2”. The limits must be given as MJD. While they are not intended to be precise, they are to be understood in TDB for the solar system barycenter. The total coverage of the resource is the union of all such intervals.spectral- A pair of lower, upper limits of a spectral interval for which the resource offers data. This is written as for VOTable tabledata (i.e., whitespace-separated C-style floating point literals). The limits must be given in Joules of particle energies. While the limits are not intended to be precise, they are to be understood for the solar system barycenter. For instance, the Johnson V waveband (480 .. 730 nm) would be specified as “2.72e-19 4.14e-19” .footprint- A reference to a footprint service for retrieving precise and up-to-date description of coverage. The ivoid attribute here refers to the standard in which the footprint is given. The only value defined by VODataService at this point is ivo://ivoa.net/std/moc, which indicates that retrieving the footprint URL will return a MOC (any IVOA-approved serialisation is legal). Note that the ivoid attribute was intended to have a different function in VODataService 1.1. The current meaning is what implementors actually adopted.waveband- A name of a messenger that the resource is relevant for (e.g., was used in the measurements). Terms must be taken from the vocabulary at http://www.ivoa.net/rdf/messenger. It is a bit unfortunate that the element is still called waveband when it is now also covers non-electromagnetic messengers. It was deemed that this slight notional sloppiness is preferable to introducing new and deprecating old elements.regionOfRegard- A single numeric value representing the angle, given in decimal degrees, by which a positional query against this resource should be “blurred” in order to get an appropriate match. In the case of image repositories, it might refer to a typical field-of-view size, or the primary beam size for radio aperture synthesis data. In the case of object catalogues RoR should normally be the largest of the typical size of the objects, the astrometric errors in the positions, or the resolution of the data.
 - 
Coverage
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.
 - 
getSpatial
Returns spatial Attribute.- Returns:
 - spatial Attribute
 
 - 
setSpatial
Set spatial Attribute.- Parameters:
 pSpatial- value to set
 - 
withSpatial
fluent setter for spatial Attribute.- Parameters:
 pSpatial- value to set- Returns:
 - Coverage
 
 - 
getTemporal
Returns temporal Attribute.- Returns:
 - temporal Attribute
 
 - 
setTemporal
Set temporal Attribute.- Parameters:
 pTemporal- value to set
 - 
withTemporal
fluent setter for temporal Attribute.- Parameters:
 pTemporal- value to set- Returns:
 - Coverage
 
 - 
getSpectral
Returns spectral Attribute.- Returns:
 - spectral Attribute
 
 - 
setSpectral
Set spectral Attribute.- Parameters:
 pSpectral- value to set
 - 
withSpectral
fluent setter for spectral Attribute.- Parameters:
 pSpectral- value to set- Returns:
 - Coverage
 
 - 
getFootprint
Returns footprint Attribute.- Returns:
 - footprint Attribute
 
 - 
setFootprint
Set footprint Attribute.- Parameters:
 pFootprint- value to set
 - 
withFootprint
fluent setter for footprint Attribute.- Parameters:
 pFootprint- value to set- Returns:
 - Coverage
 
 - 
getWaveband
Returns waveband Attribute.- Returns:
 - waveband Attribute
 
 - 
setWaveband
Set waveband Attribute.- Parameters:
 pWaveband- value to set
 - 
withWaveband
fluent setter for waveband Attribute.- Parameters:
 pWaveband- value to set- Returns:
 - Coverage
 
 - 
getRegionOfRegard
Returns regionOfRegard Attribute.- Returns:
 - regionOfRegard Attribute
 
 - 
setRegionOfRegard
Set regionOfRegard Attribute.- Parameters:
 pRegionOfRegard- value to set
 - 
withRegionOfRegard
fluent setter for regionOfRegard Attribute.- Parameters:
 pRegionOfRegard- value to set- Returns:
 - Coverage
 
 - 
createCoverage
create a Coverage 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>
 
 -