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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HecTimeprotected intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.HecTime[]getNextRepeatTime(HecTime startTime, HecTime stepStartTime, HecTime endTime, HecTime stepEndTime) protected abstract voidgetNextTime(HecTime baseStartTime, HecTime stepStartTime, HecTime baseEndTime, HecTime stepEndTime, HecTime[] nextTimes) intabstract intprotected HecTime[]nextRepeatTime(HecTime startTime, HecTime stepStartTime, HecTime endTime, HecTime stepEndTime) voidsetEndDate(HecTime endDate) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetRepeatNumber(int num)
-
Field Details
-
NO_REPEAT
public static final int NO_REPEAT- See Also:
-
DAILY_REPEAT
public static final int DAILY_REPEAT- See Also:
-
WEEKLY_REPEAT
public static final int WEEKLY_REPEAT- See Also:
-
MONTHLY_REPEAT
public static final int MONTHLY_REPEAT- See Also:
-
YEARLY_REPEAT
public static final int YEARLY_REPEAT- See Also:
-
_endDate
-
_repeatNumber
protected int _repeatNumber
-
-
Constructor Details
-
RepeatInterval
public RepeatInterval()
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getRepeatType
public abstract int getRepeatType() -
getRepeatNumber
public int getRepeatNumber() -
setRepeatNumber
public void setRepeatNumber(int num) -
getEndDate
-
setEndDate
-
getNextRepeatTime
-
nextRepeatTime
-
getNextTime
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-