Package hec.rss.model

Class PDCDataSet

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, LockableObject, MessagePrinter, TsRecordContainer, Serializable, Cloneable, Comparable, Observer, mil.army.usace.hec.rmi.csinterface.CallBackInterface, rma.lang.Modifiable

public class PDCDataSet extends Manager
See Also:
  • Field Details

  • Constructor Details

    • PDCDataSet

      public PDCDataSet()
  • Method Details

    • copySrcToDest

      public static void copySrcToDest(PDCRecord srcRec, PDCRecord dstRec)
      Copy the data from srcRec to dstRec
      Parameters:
      srcRec - the source record
      dstRec - the destination record - Currently must be a PDCRecordProxy
    • init

      public void init()
      Specified by:
      init in class Manager
    • clear

      public void clear()
    • addAll

      public void addAll(List<PDCRecord> pdcRecords)
    • getAll

      public List<PDCRecord> getAll()
    • addAll

      public void addAll(PDCDataSet defaultInputGVData)
    • removeIfIsNull

      public void removeIfIsNull()
    • getRecord

      public PDCRecord getRecord(String name, String param)
    • getRecord

      public PDCRecord getRecord(String name, int varid)
    • getOrCreate

      public PDCRecord getOrCreate(String name, int varid, String paramName)
    • add

      public void add(PDCRecord rec)
    • writeFile

      public boolean writeFile(Identifier id)
      Overrides:
      writeFile in class Manager
    • writeFile

      public boolean writeFile(BufferedWriter out)
    • readFile

      public boolean readFile(Identifier id)
      Overrides:
      readFile in class Manager
    • readFile

      public boolean readFile(BufferedReader input)
    • getPDCRecord

      public PDCRecord getPDCRecord(String name, String param)
      get the PDCRecord with the specified name and parameter
      Parameters:
      name - the name of the PDCRecord
      param - the parameter of the PDCRecord
      Returns:
      the PDCRecord or null if it can't be found
    • getPDCRecord

      public PDCRecord getPDCRecord(int subDomainId, int consituentId)