public class DecisionSch extends java.lang.Object implements AsciiSerializable, java.lang.Cloneable, hec.rss.model.reports.AltInputReportInfc
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERVALTYPE_REGULAR
Interval Option for decisions on a regular interval
|
static int |
INTERVALTYPE_STEP
Interval Option for decisions every time step
|
static int |
INTERVALTYPE_WEEKLYSCH
Interval Option for decisions on a weekly schedule
|
static int |
REGULARTYPE_12HR
Regular Interval Option for decisions every 12 hours
|
static int |
REGULARTYPE_1HR
Regular Interval Option for decisions every hour
|
static int |
REGULARTYPE_2HR
Regular Interval Option for decisions every 2 hours
|
static int |
REGULARTYPE_3HR
Regular Interval Option for decisions every 3 hours
|
static int |
REGULARTYPE_4HR
Regular Interval Option for decisions every 4 hours
|
static int |
REGULARTYPE_6HR
Regular Interval Option for decisions every 6 hours
|
static int |
REGULARTYPE_8HR
Regular Interval Option for decisions every 8 hours
|
static int |
REGULARTYPE_DAILY
Regular Interval Option for decisions once per day
|
static int |
REGULARTYPE_MONTHLY
Regular Interval Option for decisions once per month
|
static int |
REGULARTYPE_WEEKLY
Regular Interval Option for decisions once per week
|
| Constructor and Description |
|---|
DecisionSch()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
calcMaxNumDecisionSteps(int dt)
calculates and returns the max number of time steps in the
decision schedule
|
int |
calcNumDecisionSteps(RunTimeStep rts)
calculates and returns the number of time steps in the current
decision interval - assume this method is called when isDecisionStep()
has returned true.
|
void |
clearRegularInterval()
Clears all indexes and sets them to original default state
|
void |
clearWeeklySchedule()
Clears Weekly Schedule table
|
java.lang.Object |
clone()
Clone method (used primarily when object is copied for editing)
|
boolean |
determineDecisionStep(RunTimeStep rts)
Determines whether the given time step is a decision step
|
int |
getCurrentDecisionInterval()
Gets the current Decision Interval chosen
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
static int |
getLastDayOfMonth(HecTime hecTime)
return the last day for the calendar month
|
int |
getMaxNumDecisionSteps(int dt)
return the maximum number of decision steps.
|
int |
getNumDecisionSteps(RunTimeStep rts)
return the precalculated number of decision steps for this time step
|
int |
getRegularType()
Returnd Regular Type index
|
int |
getStartDOM()
Returns Starting Day of the Month index
|
int |
getStartDOW()
Returns Starting Day of the Week index
|
int |
getStartHour()
Returns the Starting Hour index
|
java.util.Vector[] |
getWeeklySchedule()
Returns Weekly Schedule table cell values
|
boolean |
initializeCompute(RunTimeWindow rtw)
prepare for compute
|
boolean |
isDecisionStep(RunTimeStep rts)
returns pre-determined flag indicating whether the given time step is a
decision step.
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
setCurrentDecisionInterval(int interval)
Sets the current Decision Interval chosen
|
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 |
setRegularType(int type)
Sets Regular Type index for combobox selection
|
void |
setStartDOM(int startDOM)
Sets the Starting Day of Month
|
void |
setStartDOW(int startDOW)
Sets Starting Day of the Week index for combobox
|
void |
setStartHour(int hour)
Sets the Starting Hour index for combobox selection
|
void |
setWeeklySchedule(java.util.Vector[] sch)
Sets Weekly Schedule table values
|
public static final int INTERVALTYPE_STEP
public static final int INTERVALTYPE_REGULAR
public static final int INTERVALTYPE_WEEKLYSCH
public static final int REGULARTYPE_1HR
public static final int REGULARTYPE_2HR
public static final int REGULARTYPE_3HR
public static final int REGULARTYPE_4HR
public static final int REGULARTYPE_6HR
public static final int REGULARTYPE_8HR
public static final int REGULARTYPE_12HR
public static final int REGULARTYPE_DAILY
public static final int REGULARTYPE_WEEKLY
public static final int REGULARTYPE_MONTHLY
public java.lang.Object clone()
clone in class java.lang.Objectpublic int getCurrentDecisionInterval()
public void setCurrentDecisionInterval(int interval)
interval - Integer index to combobox selectionpublic int getRegularType()
public void setRegularType(int type)
type - Integer indexpublic int getStartHour()
public void setStartHour(int hour)
hour - Integer indexpublic int getStartDOW()
public void setStartDOW(int startDOW)
startDOW - Integer for combobox selectionpublic int getStartDOM()
public void setStartDOM(int startDOM)
startDOM - integer Day of Monthpublic java.util.Vector[] getWeeklySchedule()
public void setWeeklySchedule(java.util.Vector[] sch)
sch - Vector[] cell valuespublic void clearRegularInterval()
public void clearWeeklySchedule()
public boolean isDecisionStep(RunTimeStep rts)
rts - public boolean determineDecisionStep(RunTimeStep rts)
rts - time step to testpublic int getNumDecisionSteps(RunTimeStep rts)
rts - public int calcNumDecisionSteps(RunTimeStep rts)
rts - public int getMaxNumDecisionSteps(int dt)
dt - public int calcMaxNumDecisionSteps(int dt)
dt - time step in secondspublic static int getLastDayOfMonth(HecTime hecTime)
public boolean initializeCompute(RunTimeWindow rtw)
rtw - public 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