Package org.ivoa.dm.proposal.management
Class ObservingMode
java.lang.Object
org.ivoa.dm.proposal.management.ObservingMode
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:ObservingMode",
role=objectType)
public class ObservingMode
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
a configuration can be used to observe with.
objectType: ObservingMode
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for ObservingMode, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected Backend
ReferenceObject backend : .protected String
human readable description.protected Filter
The filter or frequency response that .protected Instrument
ReferenceObject instrument : .protected String
human readable name for the mode.protected ObservingPlatform
ReferenceObject telescope : . -
Constructor Summary
ConstructorDescriptionCreates a new ObservingModeObservingMode
(String name, String description, ObservingPlatform telescope, Instrument instrument, Filter filter, Backend backend) full parameter constructor.ObservingMode
(ObservingMode other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObservingMode
create a ObservingMode in functional builder style.void
Returns backend ReferenceReturns description Attribute.Returns filter Attribute.getId()
Returns instrument ReferencegetName()
Returns name Attribute.Returns telescope ReferencegetXmlId()
getter for XMLIDboolean
void
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
setBackend
(Backend pBackend) Defines backend Referencevoid
setDescription
(String pDescription) Set description Attribute.void
Set filter Attribute.void
setInstrument
(Instrument pInstrument) Defines instrument Referencevoid
Set name Attribute.void
setTelescope
(ObservingPlatform pTelescope) Defines telescope Referencevoid
void
updates any cloned references that are contained within the hierarchy.void
updateUsing
(ObservingMode other) Update this object with the content of the given object.withDescription
(String pDescription) fluent setter for description Attribute.withFilter
(Filter pFilter) fluent setter for filter Attribute.fluent setter for name Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="proposalManagement:ObservingMode.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namehuman readable name for the mode. : Attribute name : multiplicity 1 -
description
@VoDml(id="proposalManagement:ObservingMode.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionhuman readable description. : Attribute description : multiplicity 1 -
filter
@VoDml(id="proposalManagement:ObservingMode.filter", role=composition, type="proposalManagement:Filter", typeRole=objectType) protected Filter filterThe filter or frequency response that . composition filter : ( Multiplicity : 1 ) -
telescope
@VoDml(id="proposalManagement:ObservingMode.telescope", role=reference, type="proposalManagement:ObservingPlatform", typeRole=objectType) protected ObservingPlatform telescopeReferenceObject telescope : . ( Multiplicity : 1 ) -
instrument
@VoDml(id="proposalManagement:ObservingMode.instrument", role=reference, type="proposalManagement:Instrument", typeRole=objectType) protected Instrument instrumentReferenceObject instrument : . ( Multiplicity : 1 ) -
backend
@VoDml(id="proposalManagement:ObservingMode.backend", role=reference, type="proposalManagement:Backend", typeRole=objectType) protected Backend backendReferenceObject backend : . ( Multiplicity : 1 )
-
-
Constructor Details
-
ObservingMode
public ObservingMode()Creates a new ObservingMode -
ObservingMode
public ObservingMode(String name, String description, ObservingPlatform telescope, Instrument instrument, Filter filter, Backend backend) full parameter constructor.- Parameters:
name
- human readable name for the mode.description
- human readable description.telescope
- .instrument
- .filter
- The filter or frequency response that .backend
- .
-
ObservingMode
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:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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:
- ObservingMode
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription
- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription
- value to set- Returns:
- ObservingMode
-
getTelescope
Returns telescope Reference- Returns:
- telescope Reference
-
setTelescope
Defines telescope Reference- Parameters:
pTelescope
- reference to set
-
getInstrument
Returns instrument Reference- Returns:
- instrument Reference
-
setInstrument
Defines instrument Reference- Parameters:
pInstrument
- reference to set
-
getFilter
Returns filter Attribute.- Returns:
- filter Attribute
-
setFilter
Set filter Attribute.- Parameters:
pFilter
- value to set
-
withFilter
fluent setter for filter Attribute.- Parameters:
pFilter
- value to set- Returns:
- ObservingMode
-
getBackend
Returns backend Reference- Returns:
- backend Reference
-
setBackend
Defines backend Reference- Parameters:
pBackend
- reference to set
-
createObservingMode
create a ObservingMode in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-