Package hec.rss.model

Class ReservoirYieldAnalysis

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

public class ReservoirYieldAnalysis extends YieldAnalysis
The Class ReservoirYieldAnalysis.
  • Constructor Details

    • ReservoirYieldAnalysis

      public ReservoirYieldAnalysis()
      Instantiates a new reservoir yield analysis.
  • Method Details

    • 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
      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 reservoir yield analysis use the demand variable limit
      Returns:
    • setUseDemandVarLimit

      public void setUseDemandVarLimit(boolean useDemandVarLimit)
      set the reservoir yield analysis to use the demand variable limit or not
      Parameters:
      useDemandVarLimit - true to use demand variable limit