Package hec.rss.model
Class DownstreamOptions
java.lang.Object
hec.rss.model.DownstreamOptions
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
The Class DownstreamOptions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe Lag Flow Tolerancestatic final doubleThe lag Fraction Limit.static final intThe Lag Max Iterationsstatic final intThe Max number of time steps to lookaheadstatic final doubleMultiplier on estimated routing lagstatic final doubleThe PREDICTOR correction_ factor.static final intThe number of times corrections on the Predictor Corrector method is a multiple of this numberstatic final intdefault setting for flag triggering use of lagged space correction algorithmstatic final booleanThe Use Consider Rate of Change option, default to false (off)static final booleanThe Use Consider Multiplier on estimated routing lagstatic final booleanDeprecated.static final booleanDeprecated.static final intstatic final intstatic final intstatic final intstatic final intstatic doubleweight on optimization for max or min downstream constraintstatic doubleweight on optimization for routing model fitstatic doubleweight on optimization for inflow regularizationstatic doubleweight on optimization for constraining reach inflow > 0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clone this objectgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubleGets the lag flow tolerance.doubleGets the lag fraction limit.intGets the lag max iterations.intGets the max lookahead roc.doubledoubleGets the predictor correction factor.intGets the predictor max iterations.intbooleanGets the use consider roc.booleanbooleanGets the use lagged space adj.booleanGets the use PEST adj.booleanUse predictor.doubledoubledoubledoublevoidReset defaults.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLagFlowTolerance(double value) Sets the lag flow tolerance.voidsetLagFractionLimit(double value) Sets the lag fraction limit.voidsetLagMaxIterations(int value) Sets the lag max iterations.voidsetMaxLookaheadROC(int value) Sets the max lookahead roc.voidsetMultiplierRTW(double value) voidsetPredictorCorrectionFactor(double value) Sets the predictor correction factor.voidsetPredictorMaxIterations(int value) Sets the predictor max iterations.voidsetSpaceAdjType(int itype) voidsetUseConsiderROC(boolean value) Sets the use consider roc.voidsetUseConsiderRTW(boolean value) voidsetWeightLim(double d) voidsetWeightModel(double d) voidsetWeightReg(double d) voidsetWeightZeroIn(double d)
-
Field Details
-
SPACEADJ_UNDEF
public static final int SPACEADJ_UNDEF- See Also:
-
SPACEADJ_NONE
public static final int SPACEADJ_NONE- See Also:
-
SPACEADJ_LAGGED
public static final int SPACEADJ_LAGGED- See Also:
-
SPACEADJ_PREDCORR
public static final int SPACEADJ_PREDCORR- See Also:
-
SPACEADJ_PEST
public static final int SPACEADJ_PEST- See Also:
-
DEFAULT_SPACE_ADJ
public static final int DEFAULT_SPACE_ADJdefault setting for flag triggering use of lagged space correction algorithm- See Also:
-
DEFAULT_USE_LAGGED_SPACE_ADJ
Deprecated.default setting for flag triggering use of lagged space correction algorithm- See Also:
-
DEFAULT_LAG_MAX_ITERATIONS
public static final int DEFAULT_LAG_MAX_ITERATIONSThe Lag Max Iterations- See Also:
-
DEFAULT_LAG_FLOW_TOLERANCE
public static final double DEFAULT_LAG_FLOW_TOLERANCEThe Lag Flow Tolerance- See Also:
-
DEFAULT_LAG_FRACTION_LIMIT
public static final double DEFAULT_LAG_FRACTION_LIMITThe lag Fraction Limit.- See Also:
-
DEFAULT_USE_PREDICTOR
Deprecated.default Flag that switches Predictor Corrector logic on or off- See Also:
-
DEFAULT_PREDICTOR_MAX_ITERATIONS
public static final int DEFAULT_PREDICTOR_MAX_ITERATIONSThe number of times corrections on the Predictor Corrector method is a multiple of this number- See Also:
-
DEFAULT_PREDICTOR_CORRECTION_FACTOR
public static final double DEFAULT_PREDICTOR_CORRECTION_FACTORThe PREDICTOR correction_ factor. 0 invalid input: '<' Factor invalid input: '<' 1 controls how aggressive are the corrections made in the Predictor Corrector method. Value close to 1 implies more aggressive corrections, less iterations required, but more unstable. Value close to zero implies smaller corrections, solution is smoother and more stable, but require more iterations to converge- See Also:
-
DEFAULT_USE_CONSIDER_ROC
public static final boolean DEFAULT_USE_CONSIDER_ROCThe Use Consider Rate of Change option, default to false (off)- See Also:
-
DEFAULT_MAX_LOOKAHEAD_ROC
public static final int DEFAULT_MAX_LOOKAHEAD_ROCThe Max number of time steps to lookahead- See Also:
-
DEFAULT_USE_CONSIDER_RTW
public static final boolean DEFAULT_USE_CONSIDER_RTWThe Use Consider Multiplier on estimated routing lag- See Also:
-
DEFAULT_MULTIPLIER_RTW
public static final double DEFAULT_MULTIPLIER_RTWMultiplier on estimated routing lag- See Also:
-
WEIGHT_MODEL
public static double WEIGHT_MODELweight on optimization for routing model fit -
WEIGHT_REG
public static double WEIGHT_REGweight on optimization for inflow regularization -
WEIGHT_LIM
public static double WEIGHT_LIMweight on optimization for max or min downstream constraint -
WEIGHT_ZEROIN
public static double WEIGHT_ZEROINweight on optimization for constraining reach inflow > 0
-
-
Constructor Details
-
DownstreamOptions
public DownstreamOptions()Instantiates a new downstream options.
-
-
Method Details
-
resetDefaults
public void resetDefaults()Reset defaults. -
setWeightModel
public void setWeightModel(double d) -
getWeightModel
public double getWeightModel() -
setWeightReg
public void setWeightReg(double d) -
getWeightReg
public double getWeightReg() -
setWeightLim
public void setWeightLim(double d) -
getWeightLim
public double getWeightLim() -
setWeightZeroIn
public void setWeightZeroIn(double d) -
getWeightZeroIn
public double getWeightZeroIn() -
setSpaceAdjType
public void setSpaceAdjType(int itype) -
getSpaceAdjType
public int getSpaceAdjType() -
getUsePESTAdj
public boolean getUsePESTAdj()Gets the use PEST adj.- Returns:
- the use lagged space adj
-
getUseLaggedSpaceAdj
public boolean getUseLaggedSpaceAdj()Gets the use lagged space adj.- Returns:
- the use lagged space adj
-
setLagMaxIterations
public void setLagMaxIterations(int value) Sets the lag max iterations.- Parameters:
value- the new lag max iterations
-
getLagMaxIterations
public int getLagMaxIterations()Gets the lag max iterations.- Returns:
- the lag max iterations
-
setLagFlowTolerance
public void setLagFlowTolerance(double value) Sets the lag flow tolerance.- Parameters:
value- the new lag flow tolerance
-
getLagFlowTolerance
public double getLagFlowTolerance()Gets the lag flow tolerance.- Returns:
- the lag flow tolerance
-
setLagFractionLimit
public void setLagFractionLimit(double value) Sets the lag fraction limit.- Parameters:
value- the new lag fraction limit
-
getLagFractionLimit
public double getLagFractionLimit()Gets the lag fraction limit.- Returns:
- the lag fraction limit
-
getUsePredictor
public boolean getUsePredictor()Use predictor.- Returns:
- true, if successful
-
setPredictorMaxIterations
public void setPredictorMaxIterations(int value) Sets the predictor max iterations.- Parameters:
value- the new predictor max iterations
-
getPredictorMaxIterations
public int getPredictorMaxIterations()Gets the predictor max iterations.- Returns:
- the predictor max iterations
-
setPredictorCorrectionFactor
public void setPredictorCorrectionFactor(double value) Sets the predictor correction factor.- Parameters:
value- the new predictor correction factor
-
getPredictorCorrectionFactor
public double getPredictorCorrectionFactor()Gets the predictor correction factor.- Returns:
- the predictor correction factor
-
setUseConsiderROC
public void setUseConsiderROC(boolean value) Sets the use consider roc.- Parameters:
value- the new use consider roc
-
getUseConsiderROC
public boolean getUseConsiderROC()Gets the use consider roc.- Returns:
- the use consider roc
-
setMaxLookaheadROC
public void setMaxLookaheadROC(int value) Sets the max lookahead roc.- Parameters:
value- the new max lookahead roc
-
getMaxLookaheadROC
public int getMaxLookaheadROC()Gets the max lookahead roc.- Returns:
- the max lookahead roc
-
setUseConsiderRTW
public void setUseConsiderRTW(boolean value) -
getUseConsiderRTW
public boolean getUseConsiderRTW() -
setMultiplierRTW
public void setMultiplierRTW(double value) -
getMultiplierRTW
public double getMultiplierRTW() -
clone
clone this object -
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- 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
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-