Package org.ivoa.dm.caom2
Class Algorithm
java.lang.Object
org.ivoa.dm.caom2.Algorithm
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Algorithm",
role=objectType)
public class Algorithm
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the algorithm that was responsible for creating the observation; for a DerivedObservation this is the
algorithm that defines the intended set of members to include
.
objectType: Algorithm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Algorithm, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Algorithmcreate a Algorithm in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()getName()Returns name Attribute.voidSet name Attribute.voidupdateUsing(Algorithm other) Update this object with the content of the given object.fluent setter for name Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="caom2:Algorithm.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namecommon name of the algorithm; the value 'exposure' is reserved for use in SimpleObservation; TBD: publish a list of acceptable values as a machine-readable vocabulary?. : Attribute name : multiplicity 1
-
-
Constructor Details
-
Algorithm
public Algorithm()Creates a new Algorithm -
Algorithm
full parameter constructor.- Parameters:
name- common name of the algorithm; the value 'exposure' is reserved for use in SimpleObservation; TBD: publish a list of acceptable values as a machine-readable vocabulary?.
-
Algorithm
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:
- Algorithm
-
createAlgorithm
create a Algorithm 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>
-