Package org.ivoa.dm.caom2
Class Telescope
java.lang.Object
org.ivoa.dm.caom2.Telescope
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Telescope",
role=objectType)
public class Telescope
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the telescope used to acquire the data for an observation.
objectType: Telescope
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Telescope, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Doublex-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).protected Doubley-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).protected Doublez-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).additional keywords that describe the telescope or telscope configuration at the time of observation; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g.protected Stringcommon name of the telescope; TBD: reference to a standard list of names?.protected Stringterm from the (currently non-existent) IVOA Tracking vocabulary used to indicate how the telescope moves during data acquisition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Telescopecreate a Telescope in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns geoLocationX Attribute.Returns geoLocationY Attribute.Returns geoLocationZ Attribute.getId()Returns keywords Attribute.getName()Returns name Attribute.Returns trackingMode Attribute.voidsetGeoLocationX(Double pGeoLocationX) Set geoLocationX Attribute.voidsetGeoLocationY(Double pGeoLocationY) Set geoLocationY Attribute.voidsetGeoLocationZ(Double pGeoLocationZ) Set geoLocationZ Attribute.voidsetKeywords(List<String> pKeywords) Set keywords Attribute.voidSet name Attribute.voidsetTrackingMode(String pTrackingMode) Set trackingMode Attribute.voidupdateUsing(Telescope other) Update this object with the content of the given object.withGeoLocationX(Double pGeoLocationX) fluent setter for geoLocationX Attribute.withGeoLocationY(Double pGeoLocationY) fluent setter for geoLocationY Attribute.withGeoLocationZ(Double pGeoLocationZ) fluent setter for geoLocationZ Attribute.withKeywords(List<String> pKeywords) fluent setter for keywords Attribute.fluent setter for name Attribute.withTrackingMode(String pTrackingMode) fluent setter for trackingMode Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="caom2:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namecommon name of the telescope; TBD: reference to a standard list of names?. : Attribute name : multiplicity 1 -
geoLocationX
@VoDml(id="caom2:Telescope.geoLocationX", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double geoLocationXx-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III). : Attribute geoLocationX : multiplicity 0..1 -
geoLocationY
@VoDml(id="caom2:Telescope.geoLocationY", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double geoLocationYy-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III). : Attribute geoLocationY : multiplicity 0..1 -
geoLocationZ
@VoDml(id="caom2:Telescope.geoLocationZ", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double geoLocationZz-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III). : Attribute geoLocationZ : multiplicity 0..1 -
keywords
@VoDml(id="caom2:Telescope.keywords", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> keywordsadditional keywords that describe the telescope or telscope configuration at the time of observation; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table) . : Attribute keywords : multiplicity 0..* -
trackingMode
@VoDml(id="caom2:Telescope.trackingMode", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String trackingModeterm from the (currently non-existent) IVOA Tracking vocabulary used to indicate how the telescope moves during data acquisition. : Attribute trackingMode : multiplicity 0..1
-
-
Constructor Details
-
Telescope
public Telescope()Creates a new Telescope -
Telescope
public Telescope(String name, Double geoLocationX, Double geoLocationY, Double geoLocationZ, List<String> keywords, String trackingMode) full parameter constructor.- Parameters:
name- common name of the telescope; TBD: reference to a standard list of names?.geoLocationX- x-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).geoLocationY- y-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).geoLocationZ- z-coordinate of the geocentric location of the telescope at the time of observation (see FITS WCS Paper III).keywords- additional keywords that describe the telescope or telscope configuration at the time of observation; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table) .trackingMode- term from the (currently non-existent) IVOA Tracking vocabulary used to indicate how the telescope moves during data acquisition.
-
Telescope
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- Telescope
-
getGeoLocationX
Returns geoLocationX Attribute.- Returns:
- geoLocationX Attribute
-
setGeoLocationX
Set geoLocationX Attribute.- Parameters:
pGeoLocationX- value to set
-
withGeoLocationX
fluent setter for geoLocationX Attribute.- Parameters:
pGeoLocationX- value to set- Returns:
- Telescope
-
getGeoLocationY
Returns geoLocationY Attribute.- Returns:
- geoLocationY Attribute
-
setGeoLocationY
Set geoLocationY Attribute.- Parameters:
pGeoLocationY- value to set
-
withGeoLocationY
fluent setter for geoLocationY Attribute.- Parameters:
pGeoLocationY- value to set- Returns:
- Telescope
-
getGeoLocationZ
Returns geoLocationZ Attribute.- Returns:
- geoLocationZ Attribute
-
setGeoLocationZ
Set geoLocationZ Attribute.- Parameters:
pGeoLocationZ- value to set
-
withGeoLocationZ
fluent setter for geoLocationZ Attribute.- Parameters:
pGeoLocationZ- value to set- Returns:
- Telescope
-
getKeywords
Returns keywords Attribute.- Returns:
- keywords Attribute
-
setKeywords
Set keywords Attribute.- Parameters:
pKeywords- value to set
-
withKeywords
fluent setter for keywords Attribute.- Parameters:
pKeywords- value to set- Returns:
- Telescope
-
getTrackingMode
Returns trackingMode Attribute.- Returns:
- trackingMode Attribute
-
setTrackingMode
Set trackingMode Attribute.- Parameters:
pTrackingMode- value to set
-
withTrackingMode
fluent setter for trackingMode Attribute.- Parameters:
pTrackingMode- value to set- Returns:
- Telescope
-
createTelescope
create a Telescope 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>
-