Package hec.rss.model
Class WaterAccountYieldAnalysis
java.lang.Object
hec.rss.model.YieldAnalysis
hec.rss.model.WaterAccountYieldAnalysis
- All Implemented Interfaces:
Cloneable
The Class WaterAccountYieldAnalysis.
-
Field Summary
Fields inherited from class hec.rss.model.YieldAnalysis
STORAGE_EPSILON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intset the demand variable limitdoubleGets the tolerance.Gets the water account.intGets the water account index.booleanreadFile(BufferedReader reader) Read file.voidsetDemandVarLimit(int demandVarLimit) get the demand variable limitvoidvoidsetTolerence(double i) Sets the tolerance.voidsetUseDemandVarLimit(boolean useDemandVarLimit) set the water account to use the demand variable limit or notvoidSets the water account.voidsetWaterAccountIndex(int waterAccountIndex) Sets the water account.booleanshould the water account use the demand variable limitbooleanwriteFile(BufferedWriter writer, RssAlt alt) Write file.Methods inherited from class hec.rss.model.YieldAnalysis
calcAvgStartingRuleDemand, getMaxHeuristicIterations, getMaxIterations, getOpRuleLimitTS, getOpRuleResultTS, getResPoolStorTS, getResZoneElevTS, getResZoneStorTS, getSimulationTimeArray, getUseBisectionAfterIts, getWAMaxStorTS, getWARuleLimitTS, getWARuleResultTS, getWASimulationTimeArray, getWAStorTS, getWaterAccount, getYieldAnalysisData, getYieldAnalysisRuleRefs, getYieldAnalysisRuleRefs, initializeCompute, initializeOutputArrays, initializeRuleRefs, loadData, loadWaterAccountData, makeDecisionUseBisection, setMaxHeuristicIterations, setMaxIterations, setNextBisectionScaleBracketed, setNextBisectionScaleNotBracketed, setNextHeuristicsScaleWA, setNumLagSteps, setNumRoutingSteps, setNumRoutingSteps, setNumRoutingSteps, setRuleRefs, setUseBisectionOnly, setUseHydropowerRules, setYieldAnalysisRuleDemandScale, setYieldAnalysisRuleUseDemandScale, testRule, testStorage, testWaterAccountRule, testWaterAccountStorage, updateByDemandScale, useBisectionOnly, useHydropowerRules
-
Constructor Details
-
WaterAccountYieldAnalysis
public WaterAccountYieldAnalysis()Instantiates a new reservoir yield analysis.
-
-
Method Details
-
setTolerence
public void setTolerence(double i) Sets the tolerance.- Parameters:
i- the new tolerance
-
getTolerence
public double getTolerence()Gets the tolerance.- Returns:
- the tolerance
-
setLowerZoneStorage
public void setLowerZoneStorage() -
setWaterAccountIndex
public void setWaterAccountIndex(int waterAccountIndex) Sets the water account.- Parameters:
waterAccountIndex- the new water account index
-
getWaterAccountIndex
public int getWaterAccountIndex()Gets the water account index.- Returns:
- the water account index
-
getWaterAccount
Gets the water account.- Returns:
- the water account
-
setWaterAccount
Sets the water account. -
writeFile
Write file.- Overrides:
writeFilein classYieldAnalysis- Parameters:
writer- the writeralt- the alt- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
readFile
Description copied from class:YieldAnalysisRead file.- Overrides:
readFilein classYieldAnalysis- Parameters:
reader- the reader- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
setDemandVarLimit
public void setDemandVarLimit(int demandVarLimit) get the demand variable limit- Parameters:
demandVarLimit-
-
getDemandVarLimit
public int getDemandVarLimit()set the demand variable limit- Returns:
-
clone
- Overrides:
clonein classYieldAnalysis
-
useDemandVarLimit
public boolean useDemandVarLimit()should the water account use the demand variable limit- Returns:
-
setUseDemandVarLimit
public void setUseDemandVarLimit(boolean useDemandVarLimit) set the water account to use the demand variable limit or not- Parameters:
useDemandVarLimit- true to use demand variable limit
-