Class TimingConstraint

java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConstraint
org.ivoa.dm.proposal.prop.TimingConstraint
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
SimultaneityConstraint, TimingWindow

@Entity @VoDml(id="proposal:TimingConstraint", role=objectType) public abstract class TimingConstraint extends ObservingConstraint implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Any specific timing requirements for the observing. objectType: TimingConstraint
  • Field Details

    • note

      @VoDml(id="proposal:TimingConstraint.note", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String note
      . : Attribute note : multiplicity 0..1
    • isAvoidConstraint

      @VoDml(id="proposal:TimingConstraint.isAvoidConstraint", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean isAvoidConstraint
      . : Attribute isAvoidConstraint : multiplicity 0..1
  • Constructor Details

    • TimingConstraint

      public TimingConstraint()
      Creates a new TimingConstraint
    • TimingConstraint

      public TimingConstraint(String note, Boolean isAvoidConstraint)
      full parameter constructor.
      Parameters:
      note - .
      isAvoidConstraint - .
  • Method Details

    • copyMe

      public abstract ObservingConstraint copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class ObservingConstraint
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(TimingConstraint other)
      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.
    • getNote

      public String getNote()
      Returns note Attribute.
      Returns:
      note Attribute
    • setNote

      public void setNote(String pNote)
      Set note Attribute.
      Parameters:
      pNote - value to set
    • withNote

      public TimingConstraint withNote(String pNote)
      fluent setter for note Attribute.
      Parameters:
      pNote - value to set
      Returns:
      TimingConstraint
    • getIsAvoidConstraint

      public Boolean getIsAvoidConstraint()
      Returns isAvoidConstraint Attribute.
      Returns:
      isAvoidConstraint Attribute
    • setIsAvoidConstraint

      public void setIsAvoidConstraint(Boolean pIsAvoidConstraint)
      Set isAvoidConstraint Attribute.
      Parameters:
      pIsAvoidConstraint - value to set
    • withIsAvoidConstraint

      public TimingConstraint withIsAvoidConstraint(Boolean pIsAvoidConstraint)
      fluent setter for isAvoidConstraint Attribute.
      Parameters:
      pIsAvoidConstraint - value to set
      Returns:
      TimingConstraint
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class ObservingConstraint
    • persistRefs

      @Deprecated public 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.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class ObservingConstraint