Package hec.heclib.dss
Class HecTimeSeriesBase
java.lang.Object
hec.heclib.dss.HecDSSFileAccess
hec.heclib.dss.HecDssCatalog
hec.heclib.dss.HecDSSDataAttributes
hec.heclib.dss.HecDataManager
hec.heclib.dss.HecTimeSeriesBase
- All Implemented Interfaces:
HecDssListener,Cloneable,EventListener
- Direct Known Subclasses:
HecTimeSeries
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.heclib.dss.HecDssCatalog
HecDssCatalog.WriteCatalogFileRunnable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected intprotected booleanFields inherited from class hec.heclib.dss.HecDataManager
_recordData, logFileName, messageUnitFields inherited from class hec.heclib.dss.HecDSSDataAttributes
_arrayEndTime, _arraySize, _arrayStartTime, _checkedNumber, _dataLengthInts, _dataType, _defaultEndTime, _defaultStartTime, _desiredArraySize, _dirty, _dssPathname, _endTime, _localUnitSystem, _recordExists, _recordType, _slashPosition, _startTime, _timeSeries, _timeWindowSet, _typeX, _unitsX, ALBERS, ALBERS_GRID, ALBERS_GRID_WITH_TIME, DOUBLE_ARRAY, ENGLISH_UNITS, ERROR, FILE, FLOAT_ARRAY, HRAP, HRAP_GRID, HRAP_GRID_WITH_TIME, IMAGE, INT_ARRAY, IRREGULAR_TIME_PATTERN, IRREGULAR_TIME_SERIES, IRREGULAR_TIME_SERIES_DOUBLES, LOCATION_LEVEL, PAIRED, PAIRED_DOUBLES, REGULAR_TIME_PATTERN, REGULAR_TIME_SERIES, REGULAR_TIME_SERIES_DOUBLES, SI_UNITS, SINGLE_VALUE, SPECIFIED_GRID, SPECIFIED_GRID_TYPE, SPECIFIED_GRID_WITH_TIME, TEXT, UNDEFINED_GRID, UNDEFINED_GRID_TYPE, UNDEFINED_GRID_WITH_TIME, UNDEFINED_UNITS, UNKNOWNFields inherited from class hec.heclib.dss.HecDssCatalog
_catalogName, _forceNewCatalog, _listenerList, _observerThreads, _useCollectionGroups, crcValues, dataTypeEnd, dataTypeStart, endDates, lastWriteTimeFile, lastWriteTimeRecord, listIsCollection, listIsComplete, listIsSorted, maxNumberToRetrieve, pathnameAddresses, pathnameHash, pathnameList, pathnameWithWild, startDates, statusRead, statusWantedFields inherited from class hec.heclib.dss.HecDSSFileAccess
_defaultDirectory, _defaultDSSFileName, _fileData, _maxNumberReopensForError, _numberReopensForError, _severeErrorIndex, _severeErrorMessages, _severeErrorRaised, ABBREVIATED_CATALOG, CONDENSED_CATALOG, FULL_CATALOG, MESS_LEVEL_CRITICAL, MESS_LEVEL_GENERAL, MESS_LEVEL_INTERNAL_DIAG_1, MESS_LEVEL_INTERNAL_DIAG_2, MESS_LEVEL_NONE, MESS_LEVEL_TERSE, MESS_LEVEL_USER_DIAG, MESS_METHOD_ALIAS, MESS_METHOD_CATALOG, MESS_METHOD_CHECK, MESS_METHOD_COPY, MESS_METHOD_FILE_CHECK, MESS_METHOD_GENERAL, MESS_METHOD_GET, MESS_METHOD_GLOBAL, MESS_METHOD_JNI, MESS_METHOD_LOCKING, MESS_METHOD_OPEN, MESS_METHOD_PERM, MESS_METHOD_PUT, MESS_METHOD_READ, MESS_METHOD_TS_READ, MESS_METHOD_TS_WRITE, MESS_METHOD_UTILITY, MESS_METHOD_WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAppropriateEPart(int[] times) static StringgetAppropriateIrregularBlock(int[] times) static StringgetAppropriateRegularEPart(int[] times) intgetDefaultUnitsType(stringContainer units, stringContainer type) static StringgetDpartFromTime(HecTime startTime, String ePart) Returns the correct D (date) part of a DSS pathname, given the E part (interval) and a time in the block For example, if your data starts on 22Mar2008 and the E part is "1YEAR", then this will return 01JAN2008static StringgetEPartFromInterval(int interval) static intgetIntervalFromEPart(String ePart) static Vectorstatic intgetMostCommonInterval(int[] times) protected intstatic booleangetTimeWindowFromPath(HecDataManager dataManager, DSSPathname path, HecTime startTime, HecTime endTime) intinterval()static booleanisRegular(int[] times) intintstatic intsetDefaultEPart(String ePart) intsetDefaultInterval(int defaultInterval) intsetDefaultPathnameParts(String pathnameParts) intintsetInterval(int interval) intsetPathname(String pathname) intsetPathnameParts(String pathnameParts) voidsetPrecision(int precision) voidsetStartTime(HecTime startTime) voidvoidvoidstatus()type()units()static intzgintlFromEPart(String ePart) Methods inherited from class hec.heclib.dss.HecDataManager
addAlias, addAlias, addAlias, addAliasList, aliasGetPrimary, aliasGetPrimary, aliasList, aliasList, aliasRemove, aliasRemove, aliasRemoveList, clear, closeLogFile, closeMessageFile, convertUnitSystem, copyContainerToRecordData, copyRecordDataToContainer, displayLogFile, done, flushMessageFile, generateLogFileName, getLogFileName, getRecordInfo, getRecordInfo, getRecordInfo, getTSRecordInfo, numberArray, release, release, setLogFile, setMessageFile, setProgramName, windMessageFile, Xarray, Yarray, Yarray, zlocationRetrieve, zlocationStoreMethods inherited from class hec.heclib.dss.HecDSSDataAttributes
aPart, arrayEndTime, arrayStartTime, bPart, clearDefaultParts, convertDoubleUnits, convertUnits, cPart, createArrayObject, createObject, createPairedDataObject, createTextObject, createTimeSeriesObject, defaultAPart, defaultBPart, defaultCPart, defaultDPart, defaultEPart, defaultFPart, dirty, dPart, endTime, ePart, fPart, getLastWriteTime, getLastWriteTime, getLastWriteTimeMillis, getLastWriteTimeMillis, getRecordBasics, isGridRecord, isTimeWindowSet, localUnitSystem, pathname, pathnameDataType, readRawBytes, readRawBytes, readRawRecord, readRawShorts, readRawShorts, recordExists, recordsUpdated, recordType, recordType, recordTypes, setAPart, setBPart, setCPart, setDefaultAPart, setDefaultBPart, setDefaultCPart, setDefaultDPart, setDefaultFPart, setDefaultTimeWindow, setDefaultTimeWindow, setDPart, setDSSFileName, setEndTime, setFPart, setLocalUnitSystem, setTimeWindow, setTimeWindow, startTime, writeRawRecordMethods inherited from class hec.heclib.dss.HecDssCatalog
addHecDssListener, addHecDssListener, addHecDssListener, addHecDssListener, addHecDssListener, addHecDssListener, addHecDssListener, buildCondensedList, buildSortedCatalog, callCatalog, callCatalog, callCatalog, callCatalogOriginal, catalogFile, cleanCatalogPart, clearList, clone, compareCondensedPaths, createNewCatalog, expandPathname, fireHecDssEvent, getCatalog, getCatalog, getCatalog, getCatalogName, getCatalogSortAddresses, getCondensedCatalog, getCondensedCatalog, getEndDates, getEPartLoc, getMaximumPartLengths, getMaximumPartLengths, getPathnameList, getPathnameList, getPathnameList6, getPathnameList7, getPathnameListAndDates, getPathnameListType, getPathnames, getSortedPathnameList, getStartDates, getStatusRead, getUseCollectionGroups, hecDssEventPerformed, isCatalogValid, isPathnamePartsString, numberCatalogedRecords, pathNamePartsToRegex, processSearchParts, readCatalog, removeHecDssListener, searchDSSCatalog, searchDSSCatalog, searchDSSPaths, searchDSSPaths, setCatalogSortAddresses, setForceNewCatalog, setMaxNumberToRetrieve, setPathnameList, setPathnameList, setPathWithWildChars, setStatusWanted, setTypeWanted, setUseCollectionGroups, sort, sortCatalog, startObserverThread, whatChanged, whatChanged, whatChangedCompare, whatChangedSetStart, whatChangedSetStart, whatChangedSetStart, wildCharsToRegex, writeCatalogMethods inherited from class hec.heclib.dss.HecDSSFileAccess
allSevereErrorMessages, appendNameToDirectory, catchSevereErrors, checkAccessReset, checkAllPathnames, checkForError, checkForSevereError, checkForSevereError, checkForSevereFileError, checkLinks, checkPathnameBins, checkSystemError, cleanDSSFileName, clearError, clearSevereError, clearSevereError, clearStatus, close, close, closeAll, closeAllFiles, closeAndClear, closeDSSFile, debugLook, debugLook7, debugModify, defaultDirectory, defaultDSSFileName, doesDSSFileExist, DSSFileName, fileAccessible, fileOpened, fileStatus, flushMessages, forceMultiUserAccess, getCollectionList, getCollectionSequenceList, getCollectionSize, getDssFileVersion, getDssFileVersion, getFileInfo, getFileLastWriteTime, getFileLastWriteTimeMillis, getIrregBeginningDate, getLastError, getMessageLevel, getNumberRecords, getProcessStatus, getTimeSeriesExtents, getTSRecordInfo, isFileRemote, lastSevereErrorMessage, nextTimeSeriesPathname, numberRecords, open, open, processStatus, requestSecondAccess, setDefaultDirectory, setDefaultDSSFileName, setDss, setDSSFileName, setDSSFileName, setDSSFileName, setInterrupt, setMessageLevel, setSpaceReclaimation, setSpaceReclaimationPerm, setUnit, writeAccess, zgetMessageLevel, zinqir, zinqir, zinquire, zmessage, zquery, zquery, zset, zsetFile, zsetMessageLevel
-
Field Details
-
_defaultInterval
protected static int _defaultInterval -
_retrieveAllTimes
protected boolean _retrieveAllTimes -
_interval
protected int _interval
-
-
Constructor Details
-
HecTimeSeriesBase
public HecTimeSeriesBase() -
HecTimeSeriesBase
-
-
Method Details
-
setDefaultInterval
public int setDefaultInterval(int defaultInterval) -
precision
public int precision() -
setPrecision
public void setPrecision(int precision) -
setDefaultEPart
-
getIntervalFromEPart
-
zgintlFromEPart
-
getEPartFromInterval
-
getListOfEParts
-
getAppropriateIrregularBlock
-
getAppropriateRegularEPart
-
getAppropriateEPart
-
isRegular
public static boolean isRegular(int[] times) -
getMostCommonInterval
public static int getMostCommonInterval(int[] times) -
getDpartFromTime
Returns the correct D (date) part of a DSS pathname, given the E part (interval) and a time in the block For example, if your data starts on 22Mar2008 and the E part is "1YEAR", then this will return 01JAN2008- Parameters:
startTime- HecTimeePart- String- Returns:
- dPart String
-
setDefaultPathnameParts
- Overrides:
setDefaultPathnamePartsin classHecDSSDataAttributes
-
setInterval
public int setInterval(int interval) -
interval
public int interval() -
setEPart
- Overrides:
setEPartin classHecDSSDataAttributes
-
setPathname
- Overrides:
setPathnamein classHecDSSDataAttributes
-
getTimeWindowFromPath
public static boolean getTimeWindowFromPath(HecDataManager dataManager, DSSPathname path, HecTime startTime, HecTime endTime) -
getNumberValuesForArraySize
protected int getNumberValuesForArraySize() -
setPathnameParts
- Overrides:
setPathnamePartsin classHecDSSDataAttributes
-
setUnits
-
setType
-
units
-
type
-
status
public void status()- Overrides:
statusin classHecDataManager
-
getDefaultUnitsType
-
numberValues
public int numberValues() -
setStartTime
- Overrides:
setStartTimein classHecDSSDataAttributes
-