Class DataReference

java.lang.Object
hec.heclib.dss.DataReference
All Implemented Interfaces:
IDataReference, Serializable, Cloneable

public class DataReference extends Object implements IDataReference, Cloneable, Serializable
See Also:
  • Field Details

    • pathname

      protected String pathname
    • filename

      protected String filename
    • startTime

      protected HecTime startTime
    • endTime

      protected HecTime endTime
    • condensedReference

      protected CondensedReference condensedReference
    • _waterYearSet

      protected boolean _waterYearSet
    • _showFilename

      public static boolean _showFilename
  • Constructor Details

  • Method Details

    • setTimeWindow

      public void setTimeWindow(String timeWindow)
    • setTimeWindow

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

      public void setWaterYear(HecTime waterYearStartDate)
    • isWaterYear

      public boolean isWaterYear()
    • hasTimeWindow

      public boolean hasTimeWindow()
    • getTimeWindow

      public boolean getTimeWindow(HecTime start, HecTime end)
    • getTimeWindow

      public boolean getTimeWindow(Object dataManager, HecTime start, HecTime end)
    • getDSSPathname

      public DSSPathname getDSSPathname()
      Specified by:
      getDSSPathname in interface IDataReference
    • clone

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

      public void setHost(String strHost)
    • setPort

      public void setPort(Integer iPort)
    • getHost

      public String getHost()
    • getPort

      public Integer getPort()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNominalPathname

      public String getNominalPathname()
    • getNominalPathname

      public String getNominalPathname(boolean showFilename)
    • pathname

      public String pathname()
    • pathname

      public String pathname(int element)
    • removePathname

      public boolean removePathname(int element)
    • setFilename

      public void setFilename(String file)
    • setPath

      public void setPath(String path)
    • getFilename

      public String getFilename()
      Specified by:
      getFilename in interface IDataReference
    • getPathname

      public String getPathname()
      Specified by:
      getPathname in interface IDataReference
    • getPath

      public String getPath()
    • getPathnameList

      public Vector getPathnameList()
    • getExpandedWaterYearSet

      public DataReferenceSet getExpandedWaterYearSet()
    • setWaterYearTimes

      protected void setWaterYearTimes(String datePart, HecTime wyStartTime)
      Uses the year of the (single) pathname to set the start time and end time spanning one water year For example, if this is hourly data for June 1985, and the WY start is 01 Oct, this will set the startTime to 01 Oct 1984, 0001 and endTime to 31 Sep 1985, 2400
    • size

      public int size()
    • getGmtOffset

      public int getGmtOffset()
    • setGmtOffset

      public void setGmtOffset(int offset)
    • generateCondensedPathnameList

      public void generateCondensedPathnameList(HecDataManager dataManager, boolean checkPathnames)
    • isaCollection

      public boolean isaCollection()
    • getCollection

      public Vector<CondensedReference> getCollection()
    • getDataReferenceCollection

      public Vector<DataReference> getDataReferenceCollection()