Package hec.rss.model.globalvariable
Class TimeSeriesGlobalVariable
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractTSRecord
hec.clientapp.model.TSRecordImpl
hec.clientapp.model.TSRecordProxy
hec.rss.model.globalvariable.TimeSeriesGlobalVariable
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,TSRecord,GlobalVariable,Serializable,Cloneable,Comparable,Observer,mil.army.usace.hec.metadata.VerticalDatum,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields inherited from class hec.clientapp.model.TSRecordProxy
_tsRecordFields 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.voidcalled at the end of the compute to do any compute related cleanup that's necessary;gets a description of the type of the global variableget the DSS File for the Global Variableget the DSS Path for the Global VariablegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intgetIndex()Return the index of the NamedType as an int.booleanget the GlobalVariable's NetworkGet the TimeSeriesContainer for the GlobalVariable.getTimeSeriesContainerFor(int step, int period) Creates a TimeSeriesContainer filled with data from the GlobalVariable starting at "step" and going forward, if period is positive, or backwards, if period is negative.getType()check to see if the GlobalVariable has a valid valuebooleanbooleanisInput()voidoutputReport(AlternativeInputReport report, org.jdom.Element myElem) add the Time Series Global Variables information to the alternative reportvoidsetCurrentValue(int step, double value) set the value at stepbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetGlobalVariableData(GlobalVariableData altGvData) voidsetIndex(int index) voidsetInput(boolean isInput) voidsetIsDataLocation(boolean isDataLocation) voidsetParameter(String parameter) voidsetParameterType(String parameterType) voidsetTimeStepType(TimeStepType timeStepType) Methods inherited from class hec.clientapp.model.TSRecordProxy
getDefaultPath, getFactor, getFullName, getParent, getTimeArray, getTimeSeriesDescription, getTSArray, getTSContainer, initialize, isDataFeedAlive, readData, reset, setDataFeedAlive, setDefaultPath, setFactor, setFullName, setName, setParent, setTimeSeriesDescription, setTSDataSet, toString, unloadMethods inherited from class hec.clientapp.model.TSRecordImpl
checkTSData, doInterpolations, getAltName, getDataSet, getRelativePath, isEvapData, isInputData, 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, getInputDataPos, getInterpolatedTSArray, getInterpUnitsType, getLaggedValue, getNativeVerticalDatum, getNAVD88Offset, getNAVD88Offset, getNGVD29Offset, getNGVD29Offset, getNumSteps, getParamName, getPeriodAverage, getPeriodAverage, getPeriodAverage, getPeriodAverage, getPreviousValue, getSummaryArray, getTimeStepMinutes, getTimeWindowString, getTSValueAt, getUnits, getUnitsType, getValue, getValue, getVariableId, getVerticalDatumContainer, getVerticalDatumInfo, hasVerticalDatum, initialize, initialize, isCurrentVerticalDatumEstimated, isDefaultData, isNAVD88OffsetEstimated, isNGVD29OffsetEstimated, isObservedData, max, min, parseDssPath, readDataFromRas, reinitialize, setCompressData, setCurrentValue, setDSSFilename, setDSSPathname, setDSSPathname, 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, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.rss.model.globalvariable.GlobalVariable
getDescription, getName, setDescription, setName
-
Constructor Details
-
TimeSeriesGlobalVariable
public TimeSeriesGlobalVariable() -
TimeSeriesGlobalVariable
-
-
Method Details
-
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 interfaceGlobalVariable- Overrides:
clonein classTSRecordProxy
-
getType
- Specified by:
getTypein interfaceGlobalVariable
-
getParameter
-
setParameter
-
getTimeStepType
-
setTimeStepType
-
getParameterType
-
setParameterType
-
setIndex
public void setIndex(int index) -
getIndex
public int getIndex()Description copied from class:NamedTypeReturn the index of the NamedType as an int. -
isInput
public boolean isInput()- Specified by:
isInputin interfaceGlobalVariable- Specified by:
isInputin interfaceTSRecord- Overrides:
isInputin classTSRecordProxy- Returns:
-
setInput
public void setInput(boolean isInput) - Specified by:
setInputin interfaceGlobalVariable- Specified by:
setInputin interfaceTSRecord- Overrides:
setInputin classTSRecordProxy
-
getUsageType
- Returns:
-
initializeGv
public boolean initializeGv()- Specified by:
initializeGvin interfaceGlobalVariable
-
getDescriptiveText
Description copied from interface:GlobalVariablegets a description of the type of the global variable- Specified by:
getDescriptiveTextin interfaceGlobalVariable- Returns:
- descriptive text
-
setGlobalVariableData
- Specified by:
setGlobalVariableDatain interfaceGlobalVariable
-
finalizeCompute
public void finalizeCompute()Description copied from interface:GlobalVariablecalled at the end of the compute to do any compute related cleanup that's necessary;- Specified by:
finalizeComputein interfaceGlobalVariable
-
getNetwork
get the GlobalVariable's Network- Specified by:
getNetworkin interfaceGlobalVariable- Returns:
- the GlobalVariable's network
-
getTSRecord
- Overrides:
getTSRecordin classTSRecordProxy
-
getDSSFilename
get the DSS File for the Global Variable- Specified by:
getDSSFilenamein interfaceTSRecord- Overrides:
getDSSFilenamein classAbstractTSRecord- Returns:
- the DSS File or null
-
getDSSPathname
get the DSS Path for the Global Variable- Specified by:
getDSSPathnamein interfaceTSRecord- Overrides:
getDSSPathnamein classAbstractTSRecord- Returns:
- the DSS Path or null
-
getTimeSeriesContainer
Get the TimeSeriesContainer for the GlobalVariable. The TimeSeriesContainer will have no quality.- Specified by:
getTimeSeriesContainerin interfaceTSRecord- Overrides:
getTimeSeriesContainerin classAbstractTSRecord- Returns:
- The GlobalVariable's TimeSeriesContainer or null if the GlobalVariable failed to load its data or its initialization failed
-
getTimeSeriesContainerFor
Creates a TimeSeriesContainer filled with data from the GlobalVariable starting at "step" and going forward, if period is positive, or backwards, if period is negative.- Specified by:
getTimeSeriesContainerForin interfaceTSRecord- Overrides:
getTimeSeriesContainerForin classAbstractTSRecord- Parameters:
step- , the starting stepperiod- , the number of steps to go back when a negative number or forward if a positive numberint- step, the starting stepint- period, the number of steps to go back when a negative number or forward if a positive number
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classTSRecordProxy- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classTSRecordProxy- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
hasValidValue
Description copied from interface:GlobalVariablecheck to see if the GlobalVariable has a valid value- Specified by:
hasValidValuein interfaceGlobalVariable- Returns:
- null if valid, message string if its not.
-
setIsDataLocation
public void setIsDataLocation(boolean isDataLocation) - Specified by:
setIsDataLocationin interfaceGlobalVariable
-
getIsDataLocation
public boolean getIsDataLocation()- Specified by:
getIsDataLocationin interfaceGlobalVariable
-
outputReport
add the Time Series Global Variables information to the alternative report- Specified by:
outputReportin interfaceGlobalVariable- Parameters:
report- the alternative reportmyElem- the element to add the information to
-
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
-