Package org.ivoa.dm.caom2
Class Metrics
java.lang.Object
org.ivoa.dm.caom2.Metrics
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Metrics",
role=objectType)
public class Metrics
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
collection of measured quantities that describe the content of the data.
objectType: Metrics
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Metrics, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Doublebackground level.protected Doublestandard deviation in the background level.protected Doubleflux density with a signal:noise ratio of 10.protected Doublemagnitude with a signal:noise ratio of 10.protected Doublesignal:noise ratio for a representative subset of samples.protected Doublenumber of sources detected per unit area. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Metricscreate a Metrics in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns background Attribute.Returns backgroundStddev Attribute.Returns fluxDensityLimit Attribute.getId()Returns magLimit Attribute.Returns sampleSNR Attribute.Returns sourceNumberDensity Attribute.voidsetBackground(Double pBackground) Set background Attribute.voidsetBackgroundStddev(Double pBackgroundStddev) Set backgroundStddev Attribute.voidsetFluxDensityLimit(Double pFluxDensityLimit) Set fluxDensityLimit Attribute.voidsetMagLimit(Double pMagLimit) Set magLimit Attribute.voidsetSampleSNR(Double pSampleSNR) Set sampleSNR Attribute.voidsetSourceNumberDensity(Double pSourceNumberDensity) Set sourceNumberDensity Attribute.voidupdateUsing(Metrics other) Update this object with the content of the given object.withBackground(Double pBackground) fluent setter for background Attribute.withBackgroundStddev(Double pBackgroundStddev) fluent setter for backgroundStddev Attribute.withFluxDensityLimit(Double pFluxDensityLimit) fluent setter for fluxDensityLimit Attribute.withMagLimit(Double pMagLimit) fluent setter for magLimit Attribute.withSampleSNR(Double pSampleSNR) fluent setter for sampleSNR Attribute.withSourceNumberDensity(Double pSourceNumberDensity) fluent setter for sourceNumberDensity Attribute.
-
Field Details
-
_id
inserted database key -
sourceNumberDensity
@VoDml(id="caom2:Metrics.sourceNumberDensity", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sourceNumberDensitynumber of sources detected per unit area. : Attribute sourceNumberDensity : multiplicity 0..1 -
background
@VoDml(id="caom2:Metrics.background", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double backgroundbackground level. : Attribute background : multiplicity 0..1 -
backgroundStddev
@VoDml(id="caom2:Metrics.backgroundStddev", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double backgroundStddevstandard deviation in the background level. : Attribute backgroundStddev : multiplicity 0..1 -
fluxDensityLimit
@VoDml(id="caom2:Metrics.fluxDensityLimit", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double fluxDensityLimitflux density with a signal:noise ratio of 10. : Attribute fluxDensityLimit : multiplicity 0..1 -
magLimit
@VoDml(id="caom2:Metrics.magLimit", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double magLimitmagnitude with a signal:noise ratio of 10. : Attribute magLimit : multiplicity 0..1 -
sampleSNR
@VoDml(id="caom2:Metrics.sampleSNR", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sampleSNRsignal:noise ratio for a representative subset of samples. : Attribute sampleSNR : multiplicity 0..1
-
-
Constructor Details
-
Metrics
public Metrics()Creates a new Metrics -
Metrics
public Metrics(Double sourceNumberDensity, Double background, Double backgroundStddev, Double fluxDensityLimit, Double magLimit, Double sampleSNR) full parameter constructor.- Parameters:
sourceNumberDensity- number of sources detected per unit area.background- background level.backgroundStddev- standard deviation in the background level.fluxDensityLimit- flux density with a signal:noise ratio of 10.magLimit- magnitude with a signal:noise ratio of 10.sampleSNR- signal:noise ratio for a representative subset of samples.
-
Metrics
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.
-
getSourceNumberDensity
Returns sourceNumberDensity Attribute.- Returns:
- sourceNumberDensity Attribute
-
setSourceNumberDensity
Set sourceNumberDensity Attribute.- Parameters:
pSourceNumberDensity- value to set
-
withSourceNumberDensity
fluent setter for sourceNumberDensity Attribute.- Parameters:
pSourceNumberDensity- value to set- Returns:
- Metrics
-
getBackground
Returns background Attribute.- Returns:
- background Attribute
-
setBackground
Set background Attribute.- Parameters:
pBackground- value to set
-
withBackground
fluent setter for background Attribute.- Parameters:
pBackground- value to set- Returns:
- Metrics
-
getBackgroundStddev
Returns backgroundStddev Attribute.- Returns:
- backgroundStddev Attribute
-
setBackgroundStddev
Set backgroundStddev Attribute.- Parameters:
pBackgroundStddev- value to set
-
withBackgroundStddev
fluent setter for backgroundStddev Attribute.- Parameters:
pBackgroundStddev- value to set- Returns:
- Metrics
-
getFluxDensityLimit
Returns fluxDensityLimit Attribute.- Returns:
- fluxDensityLimit Attribute
-
setFluxDensityLimit
Set fluxDensityLimit Attribute.- Parameters:
pFluxDensityLimit- value to set
-
withFluxDensityLimit
fluent setter for fluxDensityLimit Attribute.- Parameters:
pFluxDensityLimit- value to set- Returns:
- Metrics
-
getMagLimit
Returns magLimit Attribute.- Returns:
- magLimit Attribute
-
setMagLimit
Set magLimit Attribute.- Parameters:
pMagLimit- value to set
-
withMagLimit
fluent setter for magLimit Attribute.- Parameters:
pMagLimit- value to set- Returns:
- Metrics
-
getSampleSNR
Returns sampleSNR Attribute.- Returns:
- sampleSNR Attribute
-
setSampleSNR
Set sampleSNR Attribute.- Parameters:
pSampleSNR- value to set
-
withSampleSNR
fluent setter for sampleSNR Attribute.- Parameters:
pSampleSNR- value to set- Returns:
- Metrics
-
createMetrics
create a Metrics 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>
-