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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ObservingMode, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected BackendReferenceObject backend : .protected Stringhuman readable description.protected FilterThe filter or frequency response that .protected InstrumentReferenceObject instrument : .protected Stringhuman readable name for the mode.protected ObservingPlatformReferenceObject telescope : . -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 ObservingModecreate a ObservingMode in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns backend ReferenceReturns description Attribute.Returns filter Attribute.getId()Returns instrument ReferencegetName()Returns name Attribute.Returns telescope ReferencegetXmlId()getter for XMLIDbooleanvoidsetBackend(Backend pBackend) Defines backend ReferencevoidsetDescription(String pDescription) Set description Attribute.voidSet filter Attribute.voidsetInstrument(Instrument pInstrument) Defines instrument ReferencevoidSet name Attribute.voidsetTelescope(ObservingPlatform pTelescope) Defines telescope Referencevoidvoidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(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 -
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 ) -
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 ) -
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:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin 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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-