Package hec.rss.model.globalvariable
Class AltTimeSeriesGlobalData
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractTSRecord
hec.clientapp.model.TSRecordImpl
hec.rss.model.globalvariable.AltTimeSeriesGlobalData
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,TSRecord,GlobalVariableData,Serializable,Cloneable,Comparable,Observer,mil.army.usace.hec.metadata.VerticalDatum,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields inherited from class hec.clientapp.model.TSRecordImpl
_tsDataSetFields inherited from class hec.model.AbstractTSRecord
_beginDate, _beginTime, _compressData, _dataArray, _dssArray, _dssFilename, _dssPathname, _endTime, _inputDataPos, _interpUnitsType, _isObservedData, _numSteps, _paramName, _size, _startTime, _timeArray, _timeIncrString, _timeStepMin, _timeWindow, _units, _unitsType, _varId, _vdc, INPUT, OUTPUTFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields inherited from interface hec.model.TSRecord
DEFAULT_INPUT, OBS_INPUT, SUMMARY_AVG, SUMMARY_CNT, SUMMARY_MAX, SUMMARY_MIN, SUMMARY_NUMID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object of the same class as this object.booleancopyInto(GlobalVariableData copyFromGv) copy into this GlobalVariableData the contents from copyFromGvbooleanIndicates whether some other object is "equal to" this one.protected booleanmethod for subclasses to override to finsih reading dataprotected booleanmethod for subclasses that need to do more than just the standard write datagetRelativePath(String pathName) getType()getValue()inthashCode()Returns a hash code value for the object.protected booleanChecks if is input data.booleanbooleanloadData()doesn't hold its data interally like the other GV's dovoidmarkForDelete(boolean markedForDelete) protected voidparseGVRecord(String type, String param) booleanreadData(BufferedReader input) Read write methods for storing TSRecords to an ASCII filebooleanreadDssData(String dssFile, String dssPath) voidsetCurrentValue(int step, double value) set the value at stepvoidsetGlobalVariable(GlobalVariable globalVariable) voidsetGVDataSet(GVDataSet gvDataSet) voidprotected voidbooleanwriteData(BufferedWriter out, String alternateDssFile) booleanwriteDssData(String alternateDssFile) Methods inherited from class hec.clientapp.model.TSRecordImpl
checkTSData, doInterpolations, isEvapData, isValidValue, isValidValue, loadRawTSData, loadRawTSData, loadTSData, loadTSData, loadTSData, loadTSData, setTSDataSet, shouldInterpEvapData, unloadTSData, writeInterpolatedInputData, writeTSData, writeTSData, writeTSData, writeTSDataAsMethods inherited from class hec.model.AbstractTSRecord
average, copyInto, forceVerticalDatum, getBeginDate, getBeginTime, getCumulativeTotal, getCumulativeTotal, getCurrentOffset, getCurrentOffset, getCurrentValue, getCurrentVerticalDatum, getDataArrayFor, getDSSFilename, getDSSPathname, getFieldObject, getInputDataPos, getInterpolatedTSArray, getInterpUnitsType, getLaggedValue, getNativeVerticalDatum, getNAVD88Offset, getNAVD88Offset, getNGVD29Offset, getNGVD29Offset, getNumSteps, getParamName, getPeriodAverage, getPeriodAverage, getPeriodAverage, getPeriodAverage, getPreviousValue, getSummaryArray, getTimeArray, getTimeSeriesContainer, getTimeSeriesContainerFor, getTimeStepMinutes, getTimeWindowString, getTSArray, getTSContainer, getTSValueAt, getUnits, getUnitsType, getValue, getValue, getVariableId, getVerticalDatumContainer, getVerticalDatumInfo, hasVerticalDatum, initialize, initialize, isCurrentVerticalDatumEstimated, isDefaultData, isNAVD88OffsetEstimated, isNGVD29OffsetEstimated, isObservedData, max, min, parseDssPath, readDataFromRas, reinitialize, reset, setCompressData, setCurrentValue, setDSSFilename, setDSSPathname, setDSSPathname, setFieldObject, setInputDataPos, setInterpUnitsType, setParamName, setTimeWindow, setTimeWindowString, setUnits, setUnitsType, setVariableId, setVerticalDatumContainer, setVerticalDatumInfo, shiftLeft, shiftLeft, standardDeviation, sum, toNativeVerticalDatum, toNAVD88, toNGVD29, toVerticalDatum, writeData, writeDataToRasMethods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.rss.model.globalvariable.GlobalVariableData
getDescription, getDSSFilename, getDSSPathname, getIndex, getName, setDescription, setDSSFilename, setDSSPathname, setIndex, setName
-
Constructor Details
-
AltTimeSeriesGlobalData
public AltTimeSeriesGlobalData() -
AltTimeSeriesGlobalData
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceGlobalVariableData
-
getValue
- Specified by:
getValuein interfaceGlobalVariableData
-
setGVDataSet
- Specified by:
setGVDataSetin interfaceGlobalVariableData
-
getGVDataSet
- Specified by:
getGVDataSetin interfaceGlobalVariableData
-
getDSSFilePath
-
readData
Description copied from interface:TSRecordRead write methods for storing TSRecords to an ASCII file- Specified by:
readDatain interfaceGlobalVariableData- Specified by:
readDatain interfaceTSRecord- Overrides:
readDatain classAbstractTSRecord- Parameters:
input- - buffered reader to read from- Returns:
- - true if successfully read
-
parseGVRecord
- Parameters:
type-param-
-
writeData
- Specified by:
writeDatain interfaceGlobalVariableData- Parameters:
out- - buffered writer to write to
-
writeAdditionalInfo
- Parameters:
out-- Throws:
IOException
-
finishWritingData
protected boolean finishWritingData()method for subclasses that need to do more than just the standard write data- Returns:
- true for success
-
finishdReadingData
protected boolean finishdReadingData()method for subclasses to override to finsih reading data- Returns:
- true for success
-
getRelativePath
- Overrides:
getRelativePathin classTSRecordImpl- Parameters:
pathName-- Returns:
-
getDataSet
- Overrides:
getDataSetin classTSRecordImpl
-
getAltName
- Overrides:
getAltNamein classTSRecordImpl
-
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called.- Specified by:
clonein interfaceGlobalVariableData- Overrides:
clonein classAbstractTSRecord
-
loadData
public boolean loadData()doesn't hold its data interally like the other GV's do- Specified by:
loadDatain interfaceGlobalVariableData- Returns:
- - true if successfully loaded
-
writeDssData
- Specified by:
writeDssDatain interfaceGlobalVariableData
-
setValue
- Specified by:
setValuein interfaceGlobalVariableData- Parameters:
value- - value of this variable
-
getGlobalVariableDataLocation
- Specified by:
getGlobalVariableDataLocationin interfaceGlobalVariableData
-
setGlobalVariable
- Specified by:
setGlobalVariablein interfaceGlobalVariableData- Parameters:
globalVariable- - the network global variable associated with this data
-
readDssData
- Specified by:
readDssDatain interfaceGlobalVariableData
-
isInputData
protected boolean isInputData()Description copied from class:TSRecordImplChecks if is input data.- Overrides:
isInputDatain classTSRecordImpl- Returns:
- true, if is input data
-
copyInto
Description copied from interface:GlobalVariableDatacopy into this GlobalVariableData the contents from copyFromGv- Specified by:
copyIntoin interfaceGlobalVariableData- Parameters:
copyFromGv-
-
markForDelete
public void markForDelete(boolean markedForDelete) - Specified by:
markForDeletein interfaceGlobalVariableData
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceGlobalVariableData
-
setCurrentValue
public void setCurrentValue(int step, double value) Description copied from class:AbstractTSRecordset the value at step- Specified by:
setCurrentValuein interfaceTSRecord- Overrides:
setCurrentValuein classAbstractTSRecord- Parameters:
step- the index into the data arrayvalue- the value to set
-
equals
Indicates whether some other object is "equal to" this one. same class type and same name -
hashCode
public int hashCode()Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.
-