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()
      Specified by:
      copyMe in class TimingConstraint
    • 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)
      Defines startTime Attribute
      Parameters:
      pStartTime - value to set
    • withStartTime

      public TimingWindow withStartTime(Date pStartTime)
    • getEndTime

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

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

      public TimingWindow withEndTime(Date pEndTime)
    • 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      jpaClone in class TimingConstraint
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class TimingConstraint