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 boolean
protected boolean
protected CondensedReference
protected HecTime
protected String
protected String
protected 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()
void
generateCondensedPathnameList
(HecDataManager dataManager, boolean checkPathnames) int
getHost()
getNominalPathname
(boolean showFilename) getPath()
getPort()
boolean
getTimeWindow
(HecTime start, HecTime end) boolean
getTimeWindow
(Object dataManager, HecTime start, HecTime end) boolean
boolean
boolean
pathname()
pathname
(int element) boolean
removePathname
(int element) void
setFilename
(String file) void
setGmtOffset
(int offset) void
void
void
void
setTimeWindow
(HecTime start, HecTime end) void
setTimeWindow
(String timeWindow) void
setWaterYear
(HecTime waterYearStartDate) 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, 2400int
size()
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:
getDSSPathname
in interfaceIDataReference
-
clone
-
setHost
-
setPort
-
getHost
-
getPort
-
toString
-
getNominalPathname
-
getNominalPathname
-
pathname
-
pathname
-
removePathname
public boolean removePathname(int element) -
setFilename
-
setPath
-
getFilename
- Specified by:
getFilename
in interfaceIDataReference
-
getPathname
- Specified by:
getPathname
in 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
-