Package hec.rss.model
Class InflowTimeSeriesOptionModel
java.lang.Object
hec.rss.model.InflowTimeSeriesOptionModel
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
Title: Hec Java Development
Description:
Holds the data for the Time Series Option dialogCopyright: Copyright (c) 2002
Company: RMA, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final inttype for Date Time Independent Variablestatic final intType for Date Independent Variablestatic final inttype for Model Variable Independent Variablestatic final inttype for Time Series Independent Variablestatic final inttype id for Current Value time series functionstatic final String[]strings corresponding to Time Series Functionsstatic final inttype id for Lagged Value time series functionstatic final inttype id for Period Average time series functionstatic final inttype id for Period Maximum time series functionstatic final inttype id for Period Minimum time series functionstatic final inttype id for Previous Value time series function -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest if two IndependentVariable are essentially the sameDescription of the Methodclone()Description of the MethoddoubleevaluateTSFunction(RunTimeStep rts, double[] tsarray) Computes the value of the independent variable based on the Time Series FunctionintGets the Element of this object
Only valid if type isMODEL_VARIABLE_TYPEgetFieldObject(Field fld) Gets the fieldObject attribute of the InflowTimeSeriesOptionModel objectGets the modelVariable attribute of the InflowTimeSeriesOptionModel objectintGets the ModelVariable value
Only valid if type isMODEL_VARIABLE_TYPEGets the TimeSeries Function only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPEintGets the timeSeriesFunctionType attribute of the InflowTimeSeriesOptionModel objectdoubleGets the TimeSeries Lag only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPEGets the TimeSeries Name value only valid if the type isTIME_SERIES_TYPEdoubleGets the TimeSeries Period only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPEGets the name if the TSRecordProxyintgetType()Gets the Type of this object one of:
DATE_TYPE
DATE_TIME_TYPE
MODEL_VARIABLE_TYPE
TIME_SERIES_TYPEvoidConstructorbooleansetFieldObject(Field fld, Object fobj) Sets the fieldObject attribute of the InflowTimeSeriesOptionModel objectvoidsetModalVariableInfo(TSRecordProxy proxy, Element elem, ModelVariable mv) Sets the ModalVariableInfo information for this object.voidSets the modelVariableString attribute of the InflowTimeSeriesOptionModel objectvoidsetTimeSeriesName(String name) Sets the TimeSeries Name for this objectvoidsetTimeSeriesOptions(int function, double lag, double period) Sets the TimeSeriesOptions attribute of the IndependentVariable objecttoString()Enumerations to strings
-
Field Details
-
DATE_TYPE
public static final int DATE_TYPEType for Date Independent Variable- See Also:
-
DATE_TIME_TYPE
public static final int DATE_TIME_TYPEtype for Date Time Independent Variable- See Also:
-
MODEL_VARIABLE_TYPE
public static final int MODEL_VARIABLE_TYPEtype for Model Variable Independent Variable- See Also:
-
TIME_SERIES_TYPE
public static final int TIME_SERIES_TYPEtype for Time Series Independent Variable- See Also:
-
TS_FUNCTION_STRINGS
strings corresponding to Time Series Functions -
TS_CURRENT_TYPE
public static final int TS_CURRENT_TYPEtype id for Current Value time series function- See Also:
-
TS_PREVIOUS_TYPE
public static final int TS_PREVIOUS_TYPEtype id for Previous Value time series function- See Also:
-
TS_LAGGED_TYPE
public static final int TS_LAGGED_TYPEtype id for Lagged Value time series function- See Also:
-
TS_PERAVG_TYPE
public static final int TS_PERAVG_TYPEtype id for Period Average time series function- See Also:
-
TS_PERMAX_TYPE
public static final int TS_PERMAX_TYPEtype id for Period Maximum time series function- See Also:
-
TS_PERMIN_TYPE
public static final int TS_PERMIN_TYPEtype id for Period Minimum time series function- See Also:
-
-
Constructor Details
-
InflowTimeSeriesOptionModel
public InflowTimeSeriesOptionModel()
-
-
Method Details
-
InflowTimeSeriesOptionModel
public void InflowTimeSeriesOptionModel()Constructor -
setModalVariableInfo
Sets the ModalVariableInfo information for this object.- Parameters:
proxy- The new modalVariableInfo valueelem- the Elementmv- the ModelVariable- Throws:
IllegalStateException- if the type isn'tMODEL_VARIABLE_TYPE
-
setTimeSeriesName
Sets the TimeSeries Name for this object- Parameters:
name- The new TimeSeries Name- Throws:
IllegalStateException- if the type isn'tTIME_SERIES_TYPE
-
setTimeSeriesOptions
public void setTimeSeriesOptions(int function, double lag, double period) Sets the TimeSeriesOptions attribute of the IndependentVariable object- Parameters:
function- the TimeSeriesOption Functionlag- the TimeSeries lagperiod- the TimeSeries period- Throws:
IllegalStateException- if the type isn'tTIME_SERIES_TYPEorMODEL_VARIABLE_TYPE
-
setModelVariableString
Sets the modelVariableString attribute of the InflowTimeSeriesOptionModel object- Parameters:
s- The new modelVariableString value
-
setFieldObject
Sets the fieldObject attribute of the InflowTimeSeriesOptionModel object- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The new fieldObject valuefobj- The new fieldObject value- Returns:
- Boolean
-
getTSProxyName
Gets the name if the TSRecordProxy- Returns:
- name of proxy
-
getTimeSeriesName
Gets the TimeSeries Name value only valid if the type isTIME_SERIES_TYPE- Returns:
- The TimeSeries Name value
-
getTimeSeriesFunction
Gets the TimeSeries Function only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPE- Returns:
- The TimeSeries Function value
-
getTimeSeriesFunctionType
public int getTimeSeriesFunctionType()Gets the timeSeriesFunctionType attribute of the InflowTimeSeriesOptionModel object- Returns:
- The timeSeriesFunctionType value
-
getTimeSeriesLag
public double getTimeSeriesLag()Gets the TimeSeries Lag only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPE- Returns:
- The TimeSeries Lag value
-
getTimeSeriesPeriod
public double getTimeSeriesPeriod()Gets the TimeSeries Period only valid if the type isMODEL_VARIABLE_TYPEorTIME_SERIES_TYPE- Returns:
- The TimeSeries Period value
-
getType
public int getType()Gets the Type of this object one of:
DATE_TYPE
DATE_TIME_TYPE
MODEL_VARIABLE_TYPE
TIME_SERIES_TYPE- Returns:
- The Type value
-
getElementId
public int getElementId()Gets the Element of this object
Only valid if type isMODEL_VARIABLE_TYPE- Returns:
- The Element value
-
getModelVariableId
public int getModelVariableId()Gets the ModelVariable value
Only valid if type isMODEL_VARIABLE_TYPE- Returns:
- The ModelVariable value
-
getModelVariable
Gets the modelVariable attribute of the InflowTimeSeriesOptionModel object- Returns:
- The modelVariable value
-
getFieldObject
Gets the fieldObject attribute of the InflowTimeSeriesOptionModel object- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- Description of Parameter- Returns:
- The fieldObject value
-
evaluateTSFunction
Computes the value of the independent variable based on the Time Series Function- Parameters:
rts- RunTimeStep at which the independent variable is to be evaluatedtsarray- Time Series array- Returns:
- value of independent variable
-
areTheSame
Test if two IndependentVariable are essentially the same- Parameters:
iv- Description of Parameter- Returns:
- Description of the Returned Value
-
clone
Description of the Method -
buildFunctionOfString
Description of the Method- Parameters:
rule- Description of Parameter- Returns:
- Description of the Returned Value
-
toString
Enumerations to strings
-