Package hec.rss.model
Class DayOfWeekMultiplier
java.lang.Object
hec.rss.model.DayOfWeekMultiplier
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,Serializable,Cloneable
public class DayOfWeekMultiplier
extends Object
implements Serializable, Cloneable, AsciiSerializable, AltInputReportInfc
DayOfWeekMultiplier.java
This object consists of an array of doubles that act as a multiplier value for each day of the week,
MONDAY-SUNDAY
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this objectgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubledoublegetMultiplier(int day) Returns the multiplier for a given daydoublegetMultiplier(HecTime hecTime) Determines the day of week for the HecTime and returns the day of week multiplierdoublegetMultiplier(RunTimeStep rts) Determines the day of week for the RunTimeStep.step and returns the day of week multiplierbooleanreturns true if all multipliers == 1voidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetMultiplier(int day, double mult) Sets the multiplier for a given day
-
Field Details
-
SUNDAY
public static int SUNDAYStatic definition values for each day. Act as indexes into the multiplier array -
MONDAY
public static int MONDAY -
TUESDAY
public static int TUESDAY -
WEDNSDAY
public static int WEDNSDAY -
THURSDAY
public static int THURSDAY -
FRIDAY
public static int FRIDAY -
SATURDAY
public static int SATURDAY
-
-
Constructor Details
-
DayOfWeekMultiplier
public DayOfWeekMultiplier()
-
-
Method Details
-
isDefaults
public boolean isDefaults()returns true if all multipliers == 1 -
getLargestMultiplier
public double getLargestMultiplier() -
getMultiplier
public double getMultiplier(int day) Returns the multiplier for a given day -
getMultiplier
Determines the day of week for the HecTime and returns the day of week multiplier -
getMultiplier
Determines the day of week for the RunTimeStep.step and returns the day of week multiplier -
setMultiplier
public void setMultiplier(int day, double mult) Sets the multiplier for a given day -
clone
Clones this object- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
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
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-