Package org.ivoa.dm.proposal.prop
Class TechnicalGoal
java.lang.Object
org.ivoa.dm.proposal.prop.TechnicalGoal
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:TechnicalGoal",
role=objectType)
public class TechnicalGoal
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
collects together the technical goals of the proposal.
objectType: TechnicalGoal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TechnicalGoal, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected PerformanceParameters.protected List<ScienceSpectralWindow>. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TechnicalGoalTechnicalGoal(PerformanceParameters performance, List<ScienceSpectralWindow> spectrum) full parameter constructor.TechnicalGoal(TechnicalGoal other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.proposal.prop.ScienceSpectralWindow to the composition.static TechnicalGoalcreate a TechnicalGoal in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns performance Attribute.Returns spectrum composition as an immutable list.getXmlId()getter for XMLIDbooleanvoidRemove a org.ivoa.dm.proposal.prop.ScienceSpectralWindow from the composition.voidupdate a org.ivoa.dm.proposal.prop.ScienceSpectralWindow in the composition.voidsetPerformance(PerformanceParameters pPerformance) Set performance Attribute.voidsetSpectrum(List<ScienceSpectralWindow> pSpectrum) Defines whole spectrum composition.voidvoidupdateUsing(TechnicalGoal other) Update this object with the content of the given object.withPerformance(PerformanceParameters pPerformance) fluent setter for performance Attribute.
-
Field Details
-
_id
inserted database key -
performance
@VoDml(id="proposal:TechnicalGoal.performance", role=composition, type="proposal:PerformanceParameters", typeRole=objectType) protected PerformanceParameters performance. composition performance : ( Multiplicity : 1 ) -
spectrum
@VoDml(id="proposal:TechnicalGoal.spectrum", role=composition, type="proposal:ScienceSpectralWindow", typeRole=objectType) protected List<ScienceSpectralWindow> spectrum. composition spectrum : ( Multiplicity : 1..* )
-
-
Constructor Details
-
TechnicalGoal
public TechnicalGoal()Creates a new TechnicalGoal -
TechnicalGoal
full parameter constructor.- Parameters:
performance- .spectrum- .
-
TechnicalGoal
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
-
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.
-
getPerformance
Returns performance Attribute.- Returns:
- performance Attribute
-
setPerformance
Set performance Attribute.- Parameters:
pPerformance- value to set
-
withPerformance
fluent setter for performance Attribute.- Parameters:
pPerformance- value to set- Returns:
- TechnicalGoal
-
getSpectrum
Returns spectrum composition as an immutable list.- Returns:
- spectrum composition.
-
setSpectrum
Defines whole spectrum composition.- Parameters:
pSpectrum- composition to set.
-
addToSpectrum
Add a org.ivoa.dm.proposal.prop.ScienceSpectralWindow to the composition.- Parameters:
p- org.ivoa.dm.proposal.prop.ScienceSpectralWindow to add
-
removeFromSpectrum
Remove a org.ivoa.dm.proposal.prop.ScienceSpectralWindow from the composition.- Parameters:
p- org.ivoa.dm.proposal.prop.ScienceSpectralWindow to remove
-
replaceInSpectrum
update a org.ivoa.dm.proposal.prop.ScienceSpectralWindow in the composition.- Parameters:
_p- org.ivoa.dm.proposal.prop.ScienceSpectralWindow to update the match is done via the database key
-
createTechnicalGoal
create a TechnicalGoal 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>
-