public class TimeOfDayMultiplier extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, AsciiSerializable, hec.rss.model.reports.AltInputReportInfc
| Constructor and Description |
|---|
TimeOfDayMultiplier() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this object
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getHourlyMultiplier(int hour)
Returns the multiplier for a given hour of the day
|
double |
getHourlyWeightedMultiplier(int hour)
Returns the multiplier for a given hour of the day
divided by the sum of all multipliers, and assuming
interval value should be apportioned over the hour.
|
int |
getInterval()
Interval time in hours
|
double |
getLargestHourlyMultiplier() |
double[] |
getMultipliers()
Returns the set of multipliers
|
boolean |
isAllZeroes()
returns true if all multipliers == 0
|
boolean |
isDefaults()
returns true if all multipliers == 1
|
static boolean |
isValidInterval(int interval)
Test that the interval time ( in hours ) is valid
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setInterval(int interval)
Set interval ( in hours ) for multiplier data
|
boolean |
setMultiplier(int idx,
double val)
Sets the multiplier for a given day
|
void |
setMultipliers(double[] multiplier)
Sets the multipliers
|
double |
sumHourly()
Sum all the weights
|
public boolean isDefaults()
public boolean isAllZeroes()
public double getLargestHourlyMultiplier()
public double getHourlyMultiplier(int hour)
public double getHourlyWeightedMultiplier(int hour)
public double sumHourly()
public double[] getMultipliers()
public void setMultipliers(double[] multiplier)
public boolean setMultiplier(int idx,
double val)
public static boolean isValidInterval(int interval)
public void setInterval(int interval)
public int getInterval()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorfld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfc