Package hec.rss.model
Class AdjustableParameter
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.AdjustableParameter
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,RssReturnStatusConstants,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- Direct Known Subclasses:
PumpAdjustableParameter,ReversiblePumpAdjustableParameter
- See Also:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields inherited from interface hec.rss.model.RssReturnStatusConstants
RTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clone methoddoublegetControlledValue(RunTimeStep runtime) asks for parameter value for Controller objectdoublegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doublegetMaxByIROC(RunTimeStep rts) returns the Maximum limit based on increasing rate of change, or UNDEF_DOUBLE if no IROC is setdoublevoidgetMaxRateOfDecrease(hec.data.ParamDouble pd) doublevoidgetMaxRateOfIncrease(hec.data.ParamDouble pd) doubledoublegetMinByDROC(RunTimeStep rts) returns the Minimum limit based on decreasing rate of change, or UNDEF_DOUBLE if no DROC is setdoubledoubledoublegetValue(RunTimeStep rts) new approach has opcontroller assigning values before this is calledbooleantest whether initialized parameter values have been changedintinitCurrentLimits(RunTimeStep rts, int iteration) queries controlled element for current capacityvoidvoidrecalcCurrentLimits(RunTimeStep rts, double[] xt, double[] et, int tcnt) voidrecalcCurrentLimitsInst(RunTimeStep rts, double elev) voidvoidsetController(Controller con) voidsetCurrentValue(double val) voidresets the parameters to default valuesbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetMaxRateOfDecrease(double val) voidsetMaxRateOfDecrease(hec.data.ParamDouble pd) voidsetMaxRateOfIncrease(double val) voidsetMaxRateOfIncrease(hec.data.ParamDouble pd) voidsetMaxValue(double val) voidsetMinValue(double val) voidvoidsetValue(double val) doublesetValue(double val, RunTimeStep rts, int numsteps) sets the current value limited by physical constraints (dt is time step in seconds)doublesetValueConstrained(double val, double dtHours) voidvoiddoubletestValue(double val, RunTimeStep rts) tests the given value limited by physical constraints (dt is time step in seconds) this is used by the OpController when developing release decisionsMethods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
AdjustableParameter
public AdjustableParameter() -
AdjustableParameter
-
-
Method Details
-
setValueTSContainer
-
clone
clone method -
setFunction
-
setConstraints
-
sumConstraints
-
initialize
public void initialize() -
getFunction
-
getCurrentValue
public double getCurrentValue() -
setCurrentValue
public void setCurrentValue(double val) -
setValueConstrained
public double setValueConstrained(double val, double dtHours) -
setValue
public void setValue(double val) -
testValue
tests the given value limited by physical constraints (dt is time step in seconds) this is used by the OpController when developing release decisions- Returns:
- final value after limiting by constraints
-
getMaxByIROC
returns the Maximum limit based on increasing rate of change, or UNDEF_DOUBLE if no IROC is set -
getMinByDROC
returns the Minimum limit based on decreasing rate of change, or UNDEF_DOUBLE if no DROC is set -
setValue
sets the current value limited by physical constraints (dt is time step in seconds)- Returns:
- final value after limiting by constraints
-
getControlledValue
asks for parameter value for Controller object -
getValue
new approach has opcontroller assigning values before this is called -
getPreviousValue
-
setController
-
setOpController
-
setMinValue
public void setMinValue(double val) -
setMaxValue
public void setMaxValue(double val) -
setMaxRateOfIncrease
public void setMaxRateOfIncrease(double val) -
setMaxRateOfIncrease
public void setMaxRateOfIncrease(hec.data.ParamDouble pd) -
setMaxRateOfDecrease
public void setMaxRateOfDecrease(double val) -
setMaxRateOfDecrease
public void setMaxRateOfDecrease(hec.data.ParamDouble pd) -
getMinValue
public double getMinValue() -
getMaxValue
public double getMaxValue() -
getMaxRateOfIncrease
public double getMaxRateOfIncrease() -
getMaxRateOfIncrease
public void getMaxRateOfIncrease(hec.data.ParamDouble pd) -
getMaxRateOfDecrease
public double getMaxRateOfDecrease() -
getMaxRateOfDecrease
public void getMaxRateOfDecrease(hec.data.ParamDouble pd) -
setDefaultParameters
public void setDefaultParameters()resets the parameters to default values -
hasDefaultParameters
public boolean hasDefaultParameters()test whether initialized parameter values have been changed -
initCurrentLimits
queries controlled element for current capacity -
recalcCurrentLimitsInst
-
recalcCurrentLimits
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- 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- Overrides:
setFieldObjectin classNamedType- 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
-