public class InflowTimeSeriesOptionModel extends java.lang.Object implements AsciiSerializable, java.lang.Cloneable
Title: Hec Java Development
Description:
Holds the data for the Time Series Option dialogCopyright: Copyright (c) 2002
Company: RMA, Inc.
| Modifier and Type | Field and Description |
|---|---|
static int |
DATE_TIME_TYPE
type for Date Time Independent Variable
|
static int |
DATE_TYPE
Type for Date Independent Variable
|
static int |
MODEL_VARIABLE_TYPE
type for Model Variable Independent Variable
|
static int |
TIME_SERIES_TYPE
type for Time Series Independent Variable
|
static int |
TS_CURRENT_TYPE
type id for Current Value time series function
|
static java.lang.String[] |
TS_FUNCTION_STRINGS
strings corresponding to Time Series Functions
|
static int |
TS_LAGGED_TYPE
type id for Lagged Value time series function
|
static int |
TS_PERAVG_TYPE
type id for Period Average time series function
|
static int |
TS_PERMAX_TYPE
type id for Period Maximum time series function
|
static int |
TS_PERMIN_TYPE
type id for Period Minimum time series function
|
static int |
TS_PREVIOUS_TYPE
type id for Previous Value time series function
|
| Constructor and Description |
|---|
InflowTimeSeriesOptionModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areTheSame(IndependentVariable iv)
Test if two IndependentVariable are essentially the same
|
java.lang.String |
buildFunctionOfString(ReleaseFuncOpRule rule)
Description of the Method
|
java.lang.Object |
clone()
Description of the Method
|
double |
evaluateTSFunction(RunTimeStep rts,
double[] tsarray)
Computes the value of the independent variable based on the Time Series
Function
|
int |
getElementId()
Gets the Element of this object
Only valid if type is MODEL_VARIABLE_TYPE |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
Gets the fieldObject attribute of the InflowTimeSeriesOptionModel object
|
ModelVariable |
getModelVariable()
Gets the modelVariable attribute of the InflowTimeSeriesOptionModel
object
|
int |
getModelVariableId()
Gets the ModelVariable value
Only valid if type is MODEL_VARIABLE_TYPE |
java.lang.String |
getTimeSeriesFunction()
Gets the TimeSeries Function only valid if the type is
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPE |
int |
getTimeSeriesFunctionType()
Gets the timeSeriesFunctionType attribute of the
InflowTimeSeriesOptionModel object
|
double |
getTimeSeriesLag()
Gets the TimeSeries Lag only valid if the type is
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPE |
java.lang.String |
getTimeSeriesName()
Gets the TimeSeries Name value only valid if the type is
TIME_SERIES_TYPE |
double |
getTimeSeriesPeriod()
Gets the TimeSeries Period only valid if the type is
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPE |
java.lang.String |
getTSProxyName()
Gets the name if the TSRecordProxy
|
int |
getType()
Gets the Type of this object one of:
DATE_TYPE DATE_TIME_TYPE MODEL_VARIABLE_TYPE TIME_SERIES_TYPE |
void |
InflowTimeSeriesOptionModel()
Constructor
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
Sets the fieldObject attribute of the InflowTimeSeriesOptionModel object
|
void |
setModalVariableInfo(TSRecordProxy proxy,
Element elem,
ModelVariable mv)
Sets the ModalVariableInfo information for this object.
|
void |
setModelVariableString(java.lang.String s)
Sets the modelVariableString attribute of the
InflowTimeSeriesOptionModel object
|
void |
setTimeSeriesName(java.lang.String name)
Sets the TimeSeries Name for this object
|
void |
setTimeSeriesOptions(int function,
double lag,
double period)
Sets the TimeSeriesOptions attribute of the IndependentVariable object
|
java.lang.String |
toString()
Enumerations to strings
|
public static final int DATE_TYPE
public static final int DATE_TIME_TYPE
public static final int MODEL_VARIABLE_TYPE
public static final int TIME_SERIES_TYPE
public static final java.lang.String[] TS_FUNCTION_STRINGS
public static final int TS_CURRENT_TYPE
public static final int TS_PREVIOUS_TYPE
public static final int TS_LAGGED_TYPE
public static final int TS_PERAVG_TYPE
public static final int TS_PERMAX_TYPE
public static final int TS_PERMIN_TYPE
public void InflowTimeSeriesOptionModel()
public void setModalVariableInfo(TSRecordProxy proxy, Element elem, ModelVariable mv)
elem - the Elementmv - the ModelVariableproxy - The new modalVariableInfo valuejava.lang.IllegalStateException - if the type isn't MODEL_VARIABLE_TYPEpublic void setTimeSeriesName(java.lang.String name)
name - The new TimeSeries Namejava.lang.IllegalStateException - if the type isn't TIME_SERIES_TYPEpublic void setTimeSeriesOptions(int function,
double lag,
double period)
function - the TimeSeriesOption Functionlag - the TimeSeries lagperiod - the TimeSeries periodjava.lang.IllegalStateException - if the type isn't TIME_SERIES_TYPE
or MODEL_VARIABLE_TYPEpublic void setModelVariableString(java.lang.String s)
s - The new modelVariableString valuepublic boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
setFieldObject in interface FieldAccessorfld - The new fieldObject valuefobj - The new fieldObject valuepublic java.lang.String getTSProxyName()
public java.lang.String getTimeSeriesName()
TIME_SERIES_TYPEpublic java.lang.String getTimeSeriesFunction()
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPEpublic int getTimeSeriesFunctionType()
public double getTimeSeriesLag()
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPEpublic double getTimeSeriesPeriod()
MODEL_VARIABLE_TYPE
or TIME_SERIES_TYPEpublic int getType()
DATE_TYPE DATE_TIME_TYPE MODEL_VARIABLE_TYPE TIME_SERIES_TYPEpublic int getElementId()
MODEL_VARIABLE_TYPEpublic int getModelVariableId()
MODEL_VARIABLE_TYPEpublic ModelVariable getModelVariable()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
getFieldObject in interface FieldAccessorfld - Description of Parameterpublic double evaluateTSFunction(RunTimeStep rts, double[] tsarray)
rts - RunTimeStep at which the independent variable is to be
evaluatedtsarray - Time Series arraypublic boolean areTheSame(IndependentVariable iv)
iv - Description of Parameterpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String buildFunctionOfString(ReleaseFuncOpRule rule)
rule - Description of Parameterpublic java.lang.String toString()
toString in class java.lang.Object