Package hec.heclib.dss
Class DataReference
java.lang.Object
hec.heclib.dss.DataReference
- All Implemented Interfaces:
IDataReference,Serializable,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanprotected booleanprotected CondensedReferenceprotected HecTimeprotected Stringprotected Stringprotected HecTime -
Constructor Summary
ConstructorsConstructorDescriptionDataReference(DSSIdentifier dssId) DataReference(String path, String file) DataReference(String path, String file, CondensedReference condensed) DataReference(String path, String file, String timeWindow) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidgenerateCondensedPathnameList(HecDataManager dataManager, boolean checkPathnames) intgetHost()getNominalPathname(boolean showFilename) getPath()getPort()booleangetTimeWindow(HecTime start, HecTime end) booleangetTimeWindow(Object dataManager, HecTime start, HecTime end) booleanbooleanbooleanpathname()pathname(int element) booleanremovePathname(int element) voidsetFilename(String file) voidsetGmtOffset(int offset) voidvoidvoidvoidsetTimeWindow(HecTime start, HecTime end) voidsetTimeWindow(String timeWindow) voidsetWaterYear(HecTime waterYearStartDate) protected voidsetWaterYearTimes(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, 2400intsize()toString()
-
Field Details
-
pathname
-
filename
-
startTime
-
endTime
-
condensedReference
-
_waterYearSet
protected boolean _waterYearSet -
_showFilename
public static boolean _showFilename
-
-
Constructor Details
-
DataReference
-
DataReference
-
DataReference
-
DataReference
-
-
Method Details
-
setTimeWindow
-
setTimeWindow
-
setWaterYear
-
isWaterYear
public boolean isWaterYear() -
hasTimeWindow
public boolean hasTimeWindow() -
getTimeWindow
-
getTimeWindow
-
getDSSPathname
- Specified by:
getDSSPathnamein interfaceIDataReference
-
clone
-
setHost
-
setPort
-
getHost
-
getPort
-
toString
-
getNominalPathname
-
getNominalPathname
-
pathname
-
pathname
-
removePathname
public boolean removePathname(int element) -
setFilename
-
setPath
-
getFilename
- Specified by:
getFilenamein interfaceIDataReference
-
getPathname
- Specified by:
getPathnamein interfaceIDataReference
-
getPath
-
getPathnameList
-
getExpandedWaterYearSet
-
setWaterYearTimes
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
-
isaCollection
public boolean isaCollection() -
getCollection
-
getDataReferenceCollection
-