Class DataReferenceSet

All Implemented Interfaces:
Transferable, Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class DataReferenceSet extends Vector implements Transferable, Cloneable
See Also:
  • Field Details

    • dssPathnameFlavor

      public static DataFlavor dssPathnameFlavor
  • Constructor Details

    • DataReferenceSet

      public DataReferenceSet()
    • DataReferenceSet

      public DataReferenceSet(Vector pathnames, String dssFilename)
    • DataReferenceSet

      public DataReferenceSet(Vector pathnames)
  • Method Details

    • get

      public DataReference get(int idx)
      Specified by:
      get in interface List
      Overrides:
      get in class Vector
    • elementAt

      public DataReference elementAt(int idx)
      Overrides:
      elementAt in class Vector
    • getPathnameSet

      public Vector getPathnameSet()
      Gets the PathnameSet attribute of the DataReferenceSet object
      Returns:
      vector of all pathnames, with time series expanded (all pathnames for the time series sequence)
    • getPathnameSet

      public Vector getPathnameSet(boolean expand)
      Gets the PathnameSet attribute of the DataReferenceSet object
      Returns:
      vector of all pathnames, if expand = true with time series expanded (all pathnames for the time series sequence), if expand = false, then just the nominal pathname for a time series sequence.
    • getFilesAndPathnames

      public int getFilesAndPathnames(Vector filenames, Vector paths)
      Parameters:
      filenames - Vector
      paths - Vector returns a vector of file names and a vector of vectors of corresponding pathnames For each file name, the same element in paths is a vector of the pathnames that go with that file. No file names are duplicated.
    • expand

      public DataReferenceSet expand()
      Expands all DataRefence to have a single pathname for each one
    • expand

      public DataReferenceSet expand(boolean regardlessIfTimeSet)
      Expands all DataRefence to have a single pathname for each one, except if regardlessIfTimeSet = false and that set has a time window set for it.
    • numberPathnames

      public int numberPathnames()
    • setWaterYear

      public void setWaterYear(HecTime waterYearStartDate)
    • hasWaterYear

      public boolean hasWaterYear()
    • hasCollections

      public boolean hasCollections()
    • expandCollections

      public DataReferenceSet expandCollections()
    • expandWaterYear

      public DataReferenceSet expandWaterYear()
    • removePathname

      public boolean removePathname(int element)
    • setTimeWindowString

      public void setTimeWindowString(String timeWindow)
    • setTimeWindow

      public void setTimeWindow(HecTime start, HecTime end)
    • clone

      public Object clone()
      Overrides:
      clone in class Vector
    • getTimeWindow

      public String getTimeWindow()
    • containsString

      public boolean containsString(String string)
    • indexOfString

      public int indexOfString(String string)
    • getTransferDataFlavors

      public DataFlavor[] getTransferDataFlavors()
      Specified by:
      getTransferDataFlavors in interface Transferable
    • isDataFlavorSupported

      public boolean isDataFlavorSupported(DataFlavor flavor)
      Specified by:
      isDataFlavorSupported in interface Transferable
    • getTransferData

      public Object getTransferData(DataFlavor flavor)
      Specified by:
      getTransferData in interface Transferable