Package hec.model
Class WeeklyRepeatInterval
java.lang.Object
hec.model.RepeatInterval
hec.model.WeeklyRepeatInterval
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
- See Also:
-
Field Summary
Fields inherited from class hec.model.RepeatInterval
_endDate, _repeatNumber, DAILY_REPEAT, MONTHLY_REPEAT, NO_REPEAT, WEEKLY_REPEAT, YEARLY_REPEAT -
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.protected voidgetNextTime(HecTime baseStartTime, HecTime stepStartTime, HecTime baseEndTime, HecTime stepEndTime, HecTime[] nextTimes) boolean[]intbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.booleansetRepeatDayOfWeek(int idx, boolean shouldRepeat) toString()Methods inherited from class hec.model.RepeatInterval
getEndDate, getNextRepeatTime, getRepeatNumber, nextRepeatTime, setEndDate, setRepeatNumber
-
Constructor Details
-
WeeklyRepeatInterval
public WeeklyRepeatInterval()
-
-
Method Details
-
clone
- Overrides:
clonein classRepeatInterval- Throws:
CloneNotSupportedException
-
getRepeatType
public int getRepeatType()- Specified by:
getRepeatTypein classRepeatInterval
-
toString
-
setRepeatDayOfWeek
public boolean setRepeatDayOfWeek(int idx, boolean shouldRepeat) -
getRepeatDays
public boolean[] getRepeatDays() -
getNextTime
protected void getNextTime(HecTime baseStartTime, HecTime stepStartTime, HecTime baseEndTime, HecTime stepEndTime, HecTime[] nextTimes) - Specified by:
getNextTimein classRepeatInterval
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classRepeatInterval- 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- Overrides:
setFieldObjectin classRepeatInterval- 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
-