Package hec.rss.model

Class DssOutputData

java.lang.Object
hec.rss.model.DssOutputData
All Implemented Interfaces:
AltInputReportInfc, Cloneable

public class DssOutputData extends Object implements Cloneable, AltInputReportInfc
Author Shannon Larson Hold a reference to all ressim dss output data that will NOT be written to the simulation.dss file. Data is referenced by Element Type, Element ID, and VID (Variable Identification)
  • Constructor Details

    • DssOutputData

      public DssOutputData(RssAlt alt)
      Instantiates a new dss output data.
      Parameters:
      alt - the RssAlt owner
  • Method Details

    • getAlt

      public RssAlt getAlt()
      Gets the alt.
      Returns:
      the alt
    • setNoWriteRecord

      public void setNoWriteRecord(String elementType, int elementID, int vid)
      Sets the no write record. If a record is in this list, do not write it to the DSS file on disk.
      Parameters:
      elementType - the element type string. ie. reservoir, junction, reach
      elementID - the element id
      vid - the vid
    • writeAll

      public boolean writeAll()
      Write all flag. If set, all data will write to the dss file regardless of what is in the HashMaps
      Returns:
      true, if successful
    • setWriteAllDSSOutput

      public void setWriteAllDSSOutput(boolean set)
      Sets the write all dss output flag. If set, all data will write to the dss file regardless of what is in the HashMaps
      Parameters:
      set - the new write all dss output
    • writeAllInputData

      public boolean writeAllInputData()
      Write all input flag. If set, all interpolated input data will write to the dss file
      Returns:
      true, if successful
    • setwriteAllInputData

      public void setwriteAllInputData(boolean set)
      Sets the write all interpolated input dss flag. If set, all interpolated input data will write to the dss file
      Parameters:
      set - the new write all interpolated input dss output
    • setNoWriteRecord

      public void setNoWriteRecord(String elementType, int elementID, String columnName)
      Sets the no write record.
      Parameters:
      elementType - the element type string. ie. reservoir, junction, reach
      elementID - the element id
      columnName - the column name - see DSSOutputGroups
    • writeRecord

      public boolean writeRecord(TSRecord record)
      Looks at the passed TSRecordProxy and determines if it has been selected to not write to the dss file. Return true if it is ok to write the record
      Parameters:
      TSRecord - the record
      Returns:
      true, if ok to write record
    • writeRecord

      public boolean writeRecord(TSRecordProxy record)
      Looks at the passed TSRecordProxy and determines if it has been selected to not write to the dss file. Return true if it is ok to write the record
      Parameters:
      TSRecordProxy - the record
      Returns:
      true, if ok to write record
    • clear

      public void clear()
      Clear all selected elements and vids.
    • writeRecord

      public boolean writeRecord(String elementType, int elementID, int vid)
      Returns true if OK to write record.
      Parameters:
      elementType - the String element type. ie. reservoir, reach
      elementID - the element id
      vid - the vid
      Returns:
      true, if successful
    • read

      public void read(BufferedReader reader) throws IOException
      Reads the data and fills class.
      Parameters:
      reader - the reader
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • write

      public void write(BufferedWriter writer) throws IOException
      Write data to buffered reader.
      Parameters:
      writer - the writer
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • outputReport

      public void outputReport(AlternativeInputReport report, org.jdom.Element elem)
      Description copied from interface: AltInputReportInfc
      Alternative Input Report Interface for data.
      Specified by:
      outputReport in interface AltInputReportInfc