Package hec.rss.model
Class DssOutputData
java.lang.Object
hec.rss.model.DssOutputData
- All Implemented Interfaces:
AltInputReportInfc,Cloneable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all selected elements and vids.clone()getAlt()Gets the alt.voidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.voidread(BufferedReader reader) Reads the data and fills class.voidsetNoWriteRecord(String elementType, int elementID, int vid) Sets the no write record.voidsetNoWriteRecord(String elementType, int elementID, String columnName) Sets the no write record.voidsetWriteAllDSSOutput(boolean set) Sets the write all dss output flag.voidsetwriteAllInputData(boolean set) Sets the write all interpolated input dss flag.voidwrite(BufferedWriter writer) Write data to buffered reader.booleanwriteAll()Write all flag.booleanWrite all input flag.booleanwriteRecord(TSRecordProxy record) Looks at the passed TSRecordProxy and determines if it has been selected to not write to the dss file.booleanwriteRecord(TSRecord record) Looks at the passed TSRecordProxy and determines if it has been selected to not write to the dss file.booleanwriteRecord(String elementType, int elementID, int vid) Returns true if OK to write record.
-
Constructor Details
-
DssOutputData
Instantiates a new dss output data.- Parameters:
alt- the RssAlt owner
-
-
Method Details
-
getAlt
Gets the alt.- Returns:
- the alt
-
setNoWriteRecord
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, reachelementID- the element idvid- 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
Sets the no write record.- Parameters:
elementType- the element type string. ie. reservoir, junction, reachelementID- the element idcolumnName- the column name - see DSSOutputGroups
-
writeRecord
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
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
Returns true if OK to write record.- Parameters:
elementType- the String element type. ie. reservoir, reachelementID- the element idvid- the vid- Returns:
- true, if successful
-
read
Reads the data and fills class.- Parameters:
reader- the reader- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write data to buffered reader.- Parameters:
writer- the writer- Throws:
IOException- Signals that an I/O exception has occurred.
-
clone
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-