Class TimingWindow

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:TimingWindow", role=objectType) public class TimingWindow extends TimingConstraint implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
particular time range. objectType: TimingWindow
  • Field Details

    • startTime

      @VoDml(id="proposal:TimingWindow.startTime", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date startTime
      . : Attribute startTime : multiplicity 0..1
    • endTime

      @VoDml(id="proposal:TimingWindow.endTime", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date endTime
      . : Attribute endTime : multiplicity 0..1
  • Constructor Details

    • TimingWindow

      public TimingWindow()
      Creates a new TimingWindow
    • TimingWindow

      public TimingWindow(Date startTime, Date endTime, String note, Boolean isAvoidConstraint)
      full parameter constructor.
      Parameters:
      startTime - .
      endTime - .
      note - .
      isAvoidConstraint - .
    • TimingWindow

      public TimingWindow(TimingWindow other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • TimingWindow

      public TimingWindow(TimingConstraint superinstance, Date startTime, Date endTime)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      startTime - .
      endTime - .
  • Method Details

    • copyMe

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

      public void updateUsing(TimingWindow 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.
    • getStartTime

      public Date getStartTime()
      Returns startTime Attribute.
      Returns:
      startTime Attribute
    • setStartTime

      public void setStartTime(Date pStartTime)
      Set startTime Attribute.
      Parameters:
      pStartTime - value to set
    • withStartTime

      public TimingWindow withStartTime(Date pStartTime)
      fluent setter for startTime Attribute.
      Parameters:
      pStartTime - value to set
      Returns:
      TimingWindow
    • getEndTime

      public Date getEndTime()
      Returns endTime Attribute.
      Returns:
      endTime Attribute
    • setEndTime

      public void setEndTime(Date pEndTime)
      Set endTime Attribute.
      Parameters:
      pEndTime - value to set
    • withEndTime

      public TimingWindow withEndTime(Date pEndTime)
      fluent setter for endTime Attribute.
      Parameters:
      pEndTime - value to set
      Returns:
      TimingWindow
    • createTimingWindow

      public static TimingWindow createTimingWindow(Consumer<TimingWindow.TimingWindowBuilder> f)
      create a TimingWindow in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class TimingConstraint
    • 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 TimingConstraint