public class TSDataSet extends Manager implements TSRecordCreator, ITSDataSet
| Modifier and Type | Field and Description |
|---|---|
static int |
INST
Description of the Field
|
static int |
PER_AVG
Description of the Field
|
static int |
PER_CUM
Description of the Field
|
static java.lang.String |
SUMMARY_DELIM
Description of the Field
|
LASTMODIFIED_STRING_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
TSDataSet()
Constructor for the TSDataSet object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appendTSRecords(ITSDataSet tsdataset)
appends all unique records from the given TSDataSet into this TSDataSet
Uniqueness is defined by having a unique NAME/PARAMETER/DSS PATHNAME
|
boolean |
checkFilteredTSRecords(java.util.Vector tsproxyFilterList)
load only the records from a filter set
|
boolean |
checkTSRecords(java.util.Vector tsrecVec)
read in the data for the record and check completeness of the data
|
void |
clearTSRecordList()
Description of the Method
|
void |
compressData(boolean comp) |
TSRecord |
createTSRecord()
Creates a new TSRecord that is not added to this data set.
|
TSRecord |
createTSRecord(java.lang.String name,
int varid,
java.lang.String param)
Description of the Method
|
TSRecord |
createTSRecord(java.lang.String name,
java.lang.String param)
Description of the Method
|
java.lang.String |
getAltName() |
java.util.Vector |
getFilteredTSRecords(java.util.Vector list)
Gets the filteredTSRecords attribute of the TSDataSet object
|
java.lang.String |
getParentClassName()
Gets the parentClassName attribute of the TSDataSet object
|
java.lang.String |
getParentPath()
Gets the parentPath attribute of the TSDataSet object
|
TSRecord |
getTSRecord(java.lang.String name,
int varid)
Gets the tSRecord attribute of the TSDataSet object
|
TSRecord |
getTSRecord(java.lang.String name,
java.lang.String param)
Gets the tSRecord attribute of the TSDataSet object
|
TSRecord |
getTSRecordByPathParts(java.lang.String bPart,
java.lang.String cPart)
Gets the tSRecordByPathParts attribute of the TSDataSet object
|
int |
getTSRecordCount()
Gets the tSRecordCount attribute of the TSDataSet object
|
java.util.Vector |
getTSRecords()
Gets the tSRecords attribute of the TSDataSet object
|
java.util.Hashtable |
getTSRecordSummaryTable(java.lang.String typestr)
returns a table of ts record summary arrays keyed by
"typestr:name:paramName"
|
int |
getType()
Gets the type attribute of the TSDataSet object
|
void |
init()
Description of the Method
|
boolean |
initialize(int beginDate,
int beginTime,
int timeStepMin,
int numSteps,
java.lang.String timeWindow)
Description of the Method
|
boolean |
initialize(RunTimeWindow rtw)
set up time series records for
|
boolean |
loadFilteredTSRecords(java.util.Vector tsproxyFilterList)
load only the records from a filter set
|
TSRecord |
loadTSRecord(java.lang.String name,
int varId,
java.lang.String timewinstr)
Description of the Method
|
TSRecord |
loadTSRecord(java.lang.String name,
java.lang.String param,
java.lang.String timewinstr)
Description of the Method
|
boolean |
loadTSRecords()
load all time series records in this set
|
boolean |
loadTSRecords(java.util.Vector tsrecVec)
Description of the Method
|
boolean |
readData(java.io.BufferedReader input)
Reads time series records from an existing opened BufferedReader
|
boolean |
readDataFromRas(java.io.BufferedReader input)
Reads time series records from an existing opened BufferedReader
according to RAS v.2.2 flow file format
|
boolean |
readFile(Identifier id)
Description of the Method
|
boolean |
readFile(java.lang.String path)
Description of the Method
|
boolean |
reinitialize(RunTimeWindow rtw)
reset time series records for new time window
|
boolean |
reLoadFile()
Description of the Method
|
boolean |
reLoadFile(Identifier id)
Gets called when the mangers file is modified.
|
void |
setAltName(java.lang.String name) |
void |
setCompressData(boolean comp) |
void |
setDescription(java.lang.String s)
Set the NamedType's description to the argument String.
|
void |
setDSSFileManagerWrapper(hec.server.RemoteWrapper dssFileManagerWrapper)
Sets the dSSFileManagerWrapper attribute of the TSDataSet object
|
void |
setName(java.lang.String s)
Set the NamedTypes's name to the argument String.
|
void |
setParentPath(java.lang.String path,
java.lang.String classname)
Sets the parentPath attribute of the TSDataSet object
|
boolean |
setType(int t)
Sets the type attribute of the TSDataSet object
|
void |
shiftDataSet(HecTime newStartTime)
Shifts all data in a data set by a given amount.
|
void |
shiftDataSet(RunTimeWindow rtw)
Shifts all data in a data set by a given amount.
|
void |
unloadTSRecord()
Description of the Method
|
void |
updateTSRecordVector(TSManager manager)
Ensures that there are records for each required proxy in the manager.
|
boolean |
writeData(java.io.BufferedWriter out)
Writes time series records to an existing opened BufferedWriter
|
boolean |
writeDataToRas(java.io.BufferedWriter out)
Writes time series records to an existing opened BufferedWriter according
to RAS v.2.2 flow file format
|
boolean |
writeFile(Identifier id)
Writes time series records to ascii file given in identifier.
|
boolean |
writeTSRecords()
Description of the Method
|
addModifiableListener, backupFile, copyFile, deleteFile, deleting, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFieldObject, getFileManager, getFilename, getGmtOffset, getIdentifier, getInputITSDataSet, getInputTSDataSet, getLastModifiedTime, getLastModifiedTimeString, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getUnitSystem, getUserInterface, getWorkspace, getWorkspacePath, hasLock, isCanceled, isForecastManager, loadComplete, loadSaveAsFile, makeAbsolutePath, makeAbsolutePath, makeAbsolutePathFromWatershed, makeRelativePath, makeRelativePathFromWatershed, modifiyForSaveAs, newFile, newTSRecordProxy, newTSRecordProxy, notify, openFile, printErrorMessage, printLogMessage, printMessage, printSeparator, printStatus, printTableRow, printWarningMessage, refreshData, reLoadChildManagers, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setFieldObject, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspace, toString, unloadingclone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, rename, set, setIgnoreModifiedEvents, setIndex, setValid, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, isModified, saveManager, setModifiedpublic static final int INST
public static final int PER_AVG
public static final int PER_CUM
public static final java.lang.String SUMMARY_DELIM
public TSRecord createTSRecord()
createTSRecord in interface ITSDataSetcreateTSRecord in interface TSRecordCreatorpublic void setAltName(java.lang.String name)
public java.lang.String getAltName()
public int getTSRecordCount()
getTSRecordCount in interface ITSDataSetpublic void setCompressData(boolean comp)
public java.util.Hashtable getTSRecordSummaryTable(java.lang.String typestr)
getTSRecordSummaryTable in interface ITSDataSettypestr - Description of the Parameterpublic void setParentPath(java.lang.String path,
java.lang.String classname)
setParentPath in interface ITSDataSetpath - The new parentPath valueclassname - The new parentPath valuepublic java.lang.String getParentPath()
getParentPath in interface ITSDataSetpublic java.lang.String getParentClassName()
getParentClassName in interface ITSDataSetpublic void shiftDataSet(HecTime newStartTime)
shiftDataSet in interface ITSDataSetnewStartTime - public void shiftDataSet(RunTimeWindow rtw)
shiftDataSet in interface ITSDataSetrtw - Description of the Parameterpublic int getType()
getType in interface ITSDataSetpublic boolean setType(int t)
setType in interface ITSDataSett - The new type valuepublic boolean appendTSRecords(ITSDataSet tsdataset)
appendTSRecords in interface ITSDataSettsdataset - Description of the Parameterpublic void compressData(boolean comp)
public void init()
init in interface ITSDataSetinit in class Managerpublic java.util.Vector getTSRecords()
getTSRecords in interface ITSDataSetpublic java.util.Vector getFilteredTSRecords(java.util.Vector list)
getFilteredTSRecords in interface ITSDataSetlist - Description of the Parameterpublic void updateTSRecordVector(TSManager manager)
updateTSRecordVector in interface ITSDataSetmanager - Description of the Parameterpublic boolean writeTSRecords()
writeTSRecords in interface ITSDataSetpublic boolean loadFilteredTSRecords(java.util.Vector tsproxyFilterList)
loadFilteredTSRecords in interface ITSDataSettsproxyFilterList - Description of the Parameterpublic boolean loadTSRecords()
loadTSRecords in interface ITSDataSetpublic boolean loadTSRecords(java.util.Vector tsrecVec)
loadTSRecords in interface ITSDataSettsrecVec - Description of the Parameterpublic TSRecord loadTSRecord(java.lang.String name, int varId, java.lang.String timewinstr)
loadTSRecord in interface ITSDataSetname - Description of the ParametervarId - Description of the Parametertimewinstr - Description of the Parameterpublic TSRecord loadTSRecord(java.lang.String name, java.lang.String param, java.lang.String timewinstr)
loadTSRecord in interface ITSDataSetname - Description of the Parameterparam - Description of the Parametertimewinstr - Description of the Parameterpublic void unloadTSRecord()
public boolean checkFilteredTSRecords(java.util.Vector tsproxyFilterList)
checkFilteredTSRecords in interface ITSDataSettsproxyFilterList - Description of the Parameterpublic boolean checkTSRecords(java.util.Vector tsrecVec)
checkTSRecords in interface ITSDataSettsrecVec - Description of the Parameterpublic boolean initialize(int beginDate,
int beginTime,
int timeStepMin,
int numSteps,
java.lang.String timeWindow)
initialize in interface ITSDataSetbeginDate - Description of the ParameterbeginTime - Description of the ParametertimeStepMin - Description of the ParameternumSteps - Description of the ParametertimeWindow - Description of the Parameterpublic boolean initialize(RunTimeWindow rtw)
initialize in interface ITSDataSetrtw - Description of the Parameterpublic boolean reinitialize(RunTimeWindow rtw)
reinitialize in interface ITSDataSetrtw - Description of the Parameterpublic TSRecord getTSRecord(java.lang.String name, int varid)
getTSRecord in interface ITSDataSetname - Description of the Parametervarid - Description of the Parameterpublic TSRecord getTSRecord(java.lang.String name, java.lang.String param)
getTSRecord in interface ITSDataSetname - Description of the Parameterparam - Description of the Parameterpublic TSRecord getTSRecordByPathParts(java.lang.String bPart, java.lang.String cPart)
getTSRecordByPathParts in interface ITSDataSetbPart - Description of the ParametercPart - Description of the Parameterpublic TSRecord createTSRecord(java.lang.String name, int varid, java.lang.String param)
createTSRecord in interface ITSDataSetname - Description of the Parametervarid - Description of the Parameterparam - Description of the Parameterpublic TSRecord createTSRecord(java.lang.String name, java.lang.String param)
createTSRecord in interface ITSDataSetname - Description of the Parameterparam - Description of the Parameterpublic void clearTSRecordList()
clearTSRecordList in interface ITSDataSetpublic void setDSSFileManagerWrapper(hec.server.RemoteWrapper dssFileManagerWrapper)
dssFileManagerWrapper - The new dSSFileManagerWrapper valuepublic boolean reLoadFile(Identifier id)
reLoadFile in class Managerid - Description of the Parameterpublic boolean reLoadFile()
reLoadFile in class Managerpublic boolean readFile(java.lang.String path)
path - Description of the Parameterpublic boolean readFile(Identifier id)
public boolean writeFile(Identifier id)
public boolean writeData(java.io.BufferedWriter out)
writeData in interface ITSDataSetout - Description of the Parameterpublic boolean readData(java.io.BufferedReader input)
readData in interface ITSDataSetinput - Description of the Parameterpublic boolean readDataFromRas(java.io.BufferedReader input)
input - Description of the Parameterpublic boolean writeDataToRas(java.io.BufferedWriter out)
out - Description of the Parameterpublic void setDescription(java.lang.String s)
setDescription in interface ITSDataSetsetDescription in class NamedTypes - Stringpublic void setName(java.lang.String s)
setName in interface ITSDataSetsetName in class NamedTypes - String