Package org.ivoa.dm.proposal.prop
Class CalibrationObservation
java.lang.Object
org.ivoa.dm.proposal.prop.Observation
org.ivoa.dm.proposal.prop.CalibrationObservation
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:CalibrationObservation",
role=objectType)
public class CalibrationObservation
extends Observation
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
An observation that is intended for calibration.
objectType: CalibrationObservation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for CalibrationObservation, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CalibrationTarget_intendedUseThe use of the calibration observation.Fields inherited from class org.ivoa.dm.proposal.prop.Observation
_id, constraints, field, target, technicalGoal -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CalibrationObservationCopy Constructor.CalibrationObservation(CalibrationTarget_intendedUse intent, List<Target> target, Field field, TechnicalGoal technicalGoal, List<ObservingConstraint> constraints) full parameter constructor.CalibrationObservation(Observation superinstance, CalibrationTarget_intendedUse intent) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static CalibrationObservationcreate a CalibrationObservation in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns intent Attribute.voidsetIntent(CalibrationTarget_intendedUse pIntent) Set intent Attribute.voidupdates any cloned references that are contained within the hierarchy.voidUpdate this object with the content of the given object.withIntent(CalibrationTarget_intendedUse pIntent) fluent setter for intent Attribute.Methods inherited from class org.ivoa.dm.proposal.prop.Observation
addToConstraints, getConstraints, getField, getId, getTarget, getTechnicalGoal, getXmlId, hasNaturalKey, removeFromConstraints, replaceInConstraints, setConstraints, setField, setTarget, setTechnicalGoal, setXmlId, updateUsingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getIdMethods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
intent
@VoDml(id="proposal:CalibrationObservation.intent", role=attribute, type="proposal:CalibrationTarget_intendedUse", typeRole=enumeration) protected CalibrationTarget_intendedUse intentThe use of the calibration observation. : Attribute intent : multiplicity 1
-
-
Constructor Details
-
CalibrationObservation
public CalibrationObservation()Creates a new CalibrationObservation -
CalibrationObservation
public CalibrationObservation(CalibrationTarget_intendedUse intent, List<Target> target, Field field, TechnicalGoal technicalGoal, List<ObservingConstraint> constraints) full parameter constructor.- Parameters:
intent- The use of the calibration observation.target- The actual target of the observation.field- The Field for the observation.technicalGoal- The technical goals of the observation.constraints- any constraints on the observation.
-
CalibrationObservation
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
CalibrationObservation
Constructor from supertype instance.- Parameters:
superinstance- The supertype.intent- The use of the calibration observation.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classObservation- Returns:
- the cloned object.
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy.- Overrides:
updateClonedReferencesin classObservation
-
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.
-
getIntent
Returns intent Attribute.- Returns:
- intent Attribute
-
setIntent
Set intent Attribute.- Parameters:
pIntent- value to set
-
withIntent
fluent setter for intent Attribute.- Parameters:
pIntent- value to set- Returns:
- CalibrationObservation
-
createCalibrationObservation
public static CalibrationObservation createCalibrationObservation(Consumer<CalibrationObservation.CalibrationObservationBuilder> f) create a CalibrationObservation 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- Overrides:
forceLoadin classObservation
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-