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 HecTime
protected int
static final int
static final int
static final int
static final int
static 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 void
getNextTime
(HecTime baseStartTime, HecTime stepStartTime, HecTime baseEndTime, HecTime stepEndTime, HecTime[] nextTimes) int
abstract int
protected HecTime[]
nextRepeatTime
(HecTime startTime, HecTime stepStartTime, HecTime endTime, HecTime stepEndTime) void
setEndDate
(HecTime endDate) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setRepeatNumber
(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:
clone
in 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:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in 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
-