Package hec.model

Class RepeatInterval

java.lang.Object
hec.model.RepeatInterval
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable
Direct Known Subclasses:
DailyRepeatInterval, MonthlyRepeatInterval, NoRepeatInterval, WeeklyRepeatInterval, YearlyRepeatInterval

public abstract class RepeatInterval extends Object implements AsciiSerializable, Cloneable
See Also:
  • Field Details

  • Constructor Details

    • RepeatInterval

      public RepeatInterval()
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getRepeatType

      public abstract int getRepeatType()
    • getRepeatNumber

      public int getRepeatNumber()
    • setRepeatNumber

      public void setRepeatNumber(int num)
    • getEndDate

      public HecTime getEndDate()
    • setEndDate

      public void setEndDate(HecTime endDate)
    • getNextRepeatTime

      public HecTime[] getNextRepeatTime(HecTime startTime, HecTime stepStartTime, HecTime endTime, HecTime stepEndTime)
    • nextRepeatTime

      protected HecTime[] nextRepeatTime(HecTime startTime, HecTime stepStartTime, HecTime endTime, HecTime stepEndTime)
    • getNextTime

      protected abstract void getNextTime(HecTime baseStartTime, HecTime stepStartTime, HecTime baseEndTime, HecTime stepEndTime, HecTime[] nextTimes)
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful