Package org.ivoa.dm.proposal.prop
Class SimultaneityConstraint
java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConstraint
org.ivoa.dm.proposal.prop.TimingConstraint
org.ivoa.dm.proposal.prop.SimultaneityConstraint
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:SimultaneityConstraint",
role=objectType)
public class SimultaneityConstraint
extends TimingConstraint
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A constraint that requires that two observations occur simultaneously.
objectType: SimultaneityConstraint
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for SimultaneityConstraint, mainly for use in the functional builder pattern. -
Field Summary
Fields inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
isAvoidConstraint, note
Fields inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
_id
-
Constructor Summary
ConstructorDescriptionCreates a new SimultaneityConstraintSimultaneityConstraint
(String note, Boolean isAvoidConstraint) full parameter constructor.Copy Constructor.SimultaneityConstraint
(TimingConstraint superinstance) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
make a clone of the object taking into account current polymorhic type.static SimultaneityConstraint
create a SimultaneityConstraint in functional builder style.void
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
Update this object with the content of the given object.Methods inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
getIsAvoidConstraint, getNote, setIsAvoidConstraint, setNote, updateUsing, withIsAvoidConstraint, withNote
Methods inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
getId, updateUsing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
Constructor Details
-
SimultaneityConstraint
public SimultaneityConstraint()Creates a new SimultaneityConstraint -
SimultaneityConstraint
full parameter constructor.- Parameters:
note
- .isAvoidConstraint
- .
-
SimultaneityConstraint
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
SimultaneityConstraint
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMe
in classTimingConstraint
- Returns:
- the cloned object.
-
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.
-
createSimultaneityConstraint
public static SimultaneityConstraint createSimultaneityConstraint(Consumer<SimultaneityConstraint.SimultaneityConstraintBuilder> f) create a SimultaneityConstraint 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
- Overrides:
forceLoad
in classTimingConstraint
-
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
- Overrides:
persistRefs
in classTimingConstraint
-