Package hec.rss.model

Class WaterAccountYieldAnalysis

java.lang.Object
hec.rss.model.YieldAnalysis
hec.rss.model.WaterAccountYieldAnalysis
All Implemented Interfaces:
Cloneable

public class WaterAccountYieldAnalysis extends YieldAnalysis
The Class WaterAccountYieldAnalysis.
  • 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

      public WaterAccount getWaterAccount()
      Gets the water account.
      Returns:
      the water account
    • setWaterAccount

      public void setWaterAccount(WaterAccount wa)
      Sets the water account.
    • writeFile

      public boolean writeFile(BufferedWriter writer, RssAlt alt) throws IOException
      Write file.
      Overrides:
      writeFile in class YieldAnalysis
      Parameters:
      writer - the writer
      alt - the alt
      Returns:
      true, if successful
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • readFile

      public boolean readFile(BufferedReader reader) throws IOException
      Description copied from class: YieldAnalysis
      Read file.
      Overrides:
      readFile in class YieldAnalysis
      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

      public Object clone()
      Overrides:
      clone in class YieldAnalysis
    • 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