Package hec.model
Class AbstractTSRecord
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractTSRecord
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,TSRecord
,Serializable
,Cloneable
,Comparable
,Observer
,mil.army.usace.hec.metadata.VerticalDatum
,Modifiable
public abstract class AbstractTSRecord
extends NamedType
implements TSRecord, mil.army.usace.hec.metadata.VerticalDatum
Title:
Description:
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected boolean
protected doubleArrayContainer
protected DSSArrayContainer
protected String
protected String
protected HecTime
protected int
protected String
controls type of data that gets interpolated to the dataArray, may be INST-VAL or PER-AVER or null.protected boolean
protected int
protected String
protected int
protected HecTime
protected intArrayContainer
protected String
protected int
protected String
protected String
protected String
unit type string read from DSS path headerprotected int
protected mil.army.usace.hec.metadata.VerticalDatumContainer
static final boolean
static final boolean
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
Fields 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 TypeMethodDescriptiondouble
average
(int step, int period) Calculates the period average for the values in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive.clone()
Creates a new object of the same class as this object.boolean
copyInto
(AbstractTSRecord newTsRec) Copy data from this RssTSRecordImpl into the given RssTSRecordImpl.boolean
forceVerticalDatum
(String datum) int
Rerturns the date in HEC Julian Dayint
double
getCumulativeTotal
(int step, int period) get the cumulative total starting atstep
and going backperiod
steps.double
getCumulativeTotal
(RunTimeStep rts, int period) Get the cumulative total starting atrts
and going backperiod
steps.double
double
getCurrentOffset
(String unit) double
return the value for the current runtime stepdouble[]
getDataArrayFor
(int step, int period) Returns the values for the data starting atstep
and either going backperiod
steps if the value is negative or forward if the value is positive.getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
double[]
getInterpolatedTSArray
(HecTime startTime, HecTime endTime, int intervalTime) Interpolate time series data for a regular size time interval "intervalTime" in minutesdouble
getLaggedValue
(RunTimeStep rts, int lagAmount) get the value at current runtime step minus the lag amountdouble
double
getNAVD88Offset
(String unit) double
double
getNGVD29Offset
(String unit) int
double
getPeriodAverage
(int step, int period) Get the Period Average starting atRunTimeStep
and going backperiod
steps.double
getPeriodAverage
(int step, int period, int lag) Get the Period Average starting atRunTimeStep
and going backperiod
steps.double
getPeriodAverage
(RunTimeStep rts, int period) Get the Period Average starting atRunTimeStep
and going backperiod
steps.double
getPeriodAverage
(RunTimeStep rts, int period, int lag) Get the Period Average starting atRunTimeStep
and going backperiod
steps.double
get the value previous to the current runtime stepabstract String
getRelativePath
(String pathName) double[]
returns an array containing the average, min, max, and count of valid data in time seriesint[]
Get the TimeSeriesContainer for the TSRecord.getTimeSeriesContainerFor
(int step, int period) Creates a TimeSeriesContainer filled with data from the TSRecord starting at "step" and going forward, if period is positive, or backwards, if period is negative.int
Returns the time step in minutes;double[]
Get the data array for the time series record.double
getTSValueAt
(HecTime time) Deprecated.getUnits()
get the units type.double
getValue
(int step) get the value at stepdouble
Return the time series value at the specified time, do linear interpolation as necessary.int
mil.army.usace.hec.metadata.VerticalDatumContainer
boolean
Return whether this object includes vertical datum informationboolean
initialize
(int beginDate, int beginTime, int timeStepMin, int numSteps, String timeWindow) boolean
initialize
(RunTimeWindow rtw) boolean
boolean
boolean
boolean
boolean
double
max
(int step, int period) Finds the maximum value in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive.double
min
(int step, int period) Finds the minimum value in the data set starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive.static String[]
parseDssPath
(String dsspath) boolean
readData
(BufferedReader input) Read write methods for storing TSRecords to an ASCII fileboolean
readDataFromRas
(BufferedReader input) Reads time series record parameters from an existing opened BufferedReader according to RAS v.2.2 flow file formatboolean
TODO complete this method - currently it does just what initialize doesvoid
reset()
void
setCompressData
(boolean comp) void
setCurrentValue
(int step, double value) set the value at stepvoid
setCurrentValue
(RunTimeStep rts, double value) set the value at the current run time stepvoid
setDSSFilename
(String name) void
setDSSPathname
(String name) void
setDSSPathname
(String[] parts) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setInputDataPos
(int inputPos) void
setInterpUnitsType
(String type) void
setParamName
(String name) void
setTimeWindow
(HecTime start, HecTime end) void
setTimeWindowString
(String timestr) void
void
setUnitsType
(String dataType) set the units type.void
setVariableId
(int varid) void
setVerticalDatumContainer
(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Sets the Vertical Datum Containervoid
setVerticalDatumInfo
(String xmlStr) void
void
shiftLeft
(RunTimeWindow rtw) double
standardDeviation
(int step, int period) Calculate the standard deviation of the time series values starting atstep
and either going backperiod
steps if the value is negative or forward if the value is positive.double
sum
(int step, int period) Calculates the sum for the values in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive.boolean
boolean
toNAVD88()
boolean
toNGVD29()
boolean
toVerticalDatum
(String datum) boolean
writeData
(BufferedWriter out) boolean
Methods 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, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.model.TSRecord
checkTSData, getFactor, getIndex, getName, isInput, isValidValue, loadRawTSData, loadTSData, loadTSData, setIndex, setInput, setName, writeTSData, writeTSDataAs
-
Field Details
-
INPUT
public static final boolean INPUT- See Also:
-
OUTPUT
public static final boolean OUTPUT- See Also:
-
_varId
protected int _varId -
_paramName
-
_dssFilename
-
_dssPathname
-
_units
-
_inputDataPos
protected int _inputDataPos -
_isObservedData
protected transient boolean _isObservedData -
_unitsType
unit type string read from DSS path header -
_interpUnitsType
controls type of data that gets interpolated to the dataArray, may be INST-VAL or PER-AVER or null. if null no then use _unitsType -
_beginDate
protected transient int _beginDate -
_beginTime
protected transient int _beginTime -
_timeStepMin
protected transient int _timeStepMin -
_numSteps
protected transient int _numSteps -
_timeWindow
-
_timeIncrString
-
_startTime
-
_endTime
-
_size
protected transient int _size -
_dssArray
-
_timeArray
-
_dataArray
-
_vdc
protected transient mil.army.usace.hec.metadata.VerticalDatumContainer _vdc -
_compressData
protected boolean _compressData
-
-
Constructor Details
-
AbstractTSRecord
public AbstractTSRecord() -
AbstractTSRecord
public AbstractTSRecord(int idx) -
AbstractTSRecord
copy constructor
-
-
Method Details
-
copyInto
Copy data from this RssTSRecordImpl into the given RssTSRecordImpl. A deep copy is made of data specific to this time series records. A shallow copy is made for references to global data model objects such as TSDataSet.- Parameters:
newTsRec
- the object that will receive the copied data- Returns:
- true if the copy was successful
-
setInterpUnitsType
- Specified by:
setInterpUnitsType
in interfaceTSRecord
-
getInterpUnitsType
- Specified by:
getInterpUnitsType
in interfaceTSRecord
-
shiftLeft
-
shiftLeft
-
setVariableId
public void setVariableId(int varid) - Specified by:
setVariableId
in interfaceTSRecord
-
getVariableId
public int getVariableId()- Specified by:
getVariableId
in interfaceTSRecord
-
clone
Description copied from class:NamedType
Creates 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. -
getSummaryArray
public double[] getSummaryArray()returns an array containing the average, min, max, and count of valid data in time series- Specified by:
getSummaryArray
in interfaceTSRecord
-
getNumSteps
public int getNumSteps()- Specified by:
getNumSteps
in interfaceTSRecord
-
setTimeWindowString
- Specified by:
setTimeWindowString
in interfaceTSRecord
-
getTimeWindowString
- Specified by:
getTimeWindowString
in interfaceTSRecord
-
setTimeWindow
- Specified by:
setTimeWindow
in interfaceTSRecord
-
setUnits
-
getUnits
-
setUnitsType
set the units type. one of DssDataType.INST-VAL,DssDataType.INST-CUM, DssDataType.PER-AVER, DssDataType.PER-CUM- Specified by:
setUnitsType
in interfaceTSRecord
- Parameters:
dataType
- - the data type- See Also:
-
getBeginDate
public int getBeginDate()Rerturns the date in HEC Julian Day- Specified by:
getBeginDate
in interfaceTSRecord
- Returns:
- int
-
getBeginTime
public int getBeginTime()- Specified by:
getBeginTime
in interfaceTSRecord
-
getTimeStepMinutes
public int getTimeStepMinutes()Returns the time step in minutes;- Specified by:
getTimeStepMinutes
in interfaceTSRecord
- Returns:
- int
-
getUnitsType
get the units type. one of DssDataType.INST-VAL,DssDataType.INST-CUM, DssDataType.PER-AVER, DssDataType.PER-CUM or not set, which returns an empty String- Specified by:
getUnitsType
in interfaceTSRecord
- Returns:
- unitsType - the data type
- See Also:
-
getTimeArray
public int[] getTimeArray()- Specified by:
getTimeArray
in interfaceTSRecord
-
getDataArrayFor
public double[] getDataArrayFor(int step, int period) Returns the values for the data starting atstep
and either going backperiod
steps if the value is negative or forward if the value is positive.- Specified by:
getDataArrayFor
in interfaceTSRecord
- Parameters:
step
- the starting stepperiod
- the number of steps to go back if a negative number or forward is a positive number- Returns:
- double[] of the values for the given time span or null
-
getTSArray
public double[] getTSArray()Get the data array for the time series record.- Specified by:
getTSArray
in interfaceTSRecord
- Returns:
- double array containing all data values for record
-
getTSContainer
- Specified by:
getTSContainer
in interfaceTSRecord
-
reset
public void reset() -
initialize
- Specified by:
initialize
in interfaceTSRecord
-
reinitialize
TODO complete this method - currently it does just what initialize does- Specified by:
reinitialize
in interfaceTSRecord
-
initialize
public boolean initialize(int beginDate, int beginTime, int timeStepMin, int numSteps, String timeWindow) - Specified by:
initialize
in interfaceTSRecord
-
getParamName
- Specified by:
getParamName
in interfaceTSRecord
-
setParamName
- Specified by:
setParamName
in interfaceTSRecord
-
getDSSPathname
- Specified by:
getDSSPathname
in interfaceTSRecord
-
setDSSPathname
- Specified by:
setDSSPathname
in interfaceTSRecord
-
setDSSPathname
- Specified by:
setDSSPathname
in interfaceTSRecord
-
getDSSFilename
- Specified by:
getDSSFilename
in interfaceTSRecord
-
setDSSFilename
- Specified by:
setDSSFilename
in interfaceTSRecord
-
setInputDataPos
public void setInputDataPos(int inputPos) - Specified by:
setInputDataPos
in interfaceTSRecord
-
getInputDataPos
public int getInputDataPos()- Specified by:
getInputDataPos
in interfaceTSRecord
-
isObservedData
public boolean isObservedData()- Specified by:
isObservedData
in interfaceTSRecord
-
isDefaultData
public boolean isDefaultData()- Specified by:
isDefaultData
in interfaceTSRecord
-
readData
Description copied from interface:TSRecord
Read write methods for storing TSRecords to an ASCII file -
getRelativePath
-
writeData
-
readDataFromRas
Reads time series record parameters from an existing opened BufferedReader according to RAS v.2.2 flow file format- Specified by:
readDataFromRas
in interfaceTSRecord
-
writeDataToRas
- Specified by:
writeDataToRas
in interfaceTSRecord
-
getValue
Return the time series value at the specified time, do linear interpolation as necessary. Should add cubic interpolation later. It seems the time array is in minutes, check with Bill to see if this is right. Need to add error messages. If time is outside the time window the return value will be RMAConst.UNDEF_DOUBLE -
getTSValueAt
Deprecated.Return the time series value at the specified time, do linear interpolation as necessary. Should add cubic interpolation later. It seems the time array is in minutes, check with Bill to see if this is right. Need to add error messages.- Specified by:
getTSValueAt
in interfaceTSRecord
- Parameters:
time
- time of data- Returns:
- double value of data at specified time
-
getInterpolatedTSArray
Interpolate time series data for a regular size time interval "intervalTime" in minutes- Specified by:
getInterpolatedTSArray
in interfaceTSRecord
-
parseDssPath
-
getCurrentValue
return the value for the current runtime step- Specified by:
getCurrentValue
in interfaceTSRecord
- Parameters:
rts
- the RunTimeStep- Returns:
- the value at RunTimeStep.step
-
getValue
public double getValue(int step) get the value at step -
setCurrentValue
set the value at the current run time step- Specified by:
setCurrentValue
in interfaceTSRecord
- Parameters:
rts
- the index into the data arrayvalue
- the value to set
-
setCurrentValue
public void setCurrentValue(int step, double value) set the value at step- Specified by:
setCurrentValue
in interfaceTSRecord
- Parameters:
step
- the index into the data arrayvalue
- the value to set
-
getLaggedValue
get the value at current runtime step minus the lag amount- Specified by:
getLaggedValue
in interfaceTSRecord
- Parameters:
rts
- the RunTimeWindowlagAmount
- the lag amount- Returns:
- the value at rts.step-lagAmount
-
getPreviousValue
get the value previous to the current runtime step- Specified by:
getPreviousValue
in interfaceTSRecord
- Parameters:
rts
- the RunTimeStep- Returns:
- the value one step back (rts.step-1)
-
getPeriodAverage
Get the Period Average starting atRunTimeStep
and going backperiod
steps. Assumes that data is constant prior to and following the time series array limits.- Parameters:
rts
- the RunTimeStepperiod
- the period to go backlag
- the number of steps back to start the average period- Returns:
- the period average of rts.step - period
-
getPeriodAverage
public double getPeriodAverage(int step, int period, int lag) Get the Period Average starting atRunTimeStep
and going backperiod
steps. Assumes that data is constant prior to and following the time series array limits.- Parameters:
step
- the starting stepperiod
- the period to go backlag
- the number of steps back to start the average period- Returns:
- the period average of rts.step - period
-
getPeriodAverage
Get the Period Average starting atRunTimeStep
and going backperiod
steps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getPeriodAverage
in interfaceTSRecord
- Parameters:
rts
- the RunTimeStepperiod
- the period to go back- Returns:
- the period average of rts.step - period
-
getPeriodAverage
public double getPeriodAverage(int step, int period) Get the Period Average starting atRunTimeStep
and going backperiod
steps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getPeriodAverage
in interfaceTSRecord
- Parameters:
step
- the starting stepperiod
- the number of steps to go back.- Returns:
- the period average of step - period
-
getCumulativeTotal
Get the cumulative total starting atrts
and going backperiod
steps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getCumulativeTotal
in interfaceTSRecord
- Parameters:
rts
- the RunTimeStepperiod
- the number of steps to go back- Returns:
- the cumulative total of rts.step - period
-
getCumulativeTotal
public double getCumulativeTotal(int step, int period) get the cumulative total starting atstep
and going backperiod
steps.- Specified by:
getCumulativeTotal
in interfaceTSRecord
- Parameters:
step
- the starting stepperiod
- the number of steps to go back- Returns:
- the cumulative total of step - period
-
getTimeSeriesContainer
Get the TimeSeriesContainer for the TSRecord. The TimeSeriesContainer and the TSRecord share the same underlying data model so changes in the data or times in one are reflected in the other. The TimeSeriesContainer will have no quality.- Specified by:
getTimeSeriesContainer
in interfaceTSRecord
- Returns:
- The TSRecord's TimeSeriesContainer
-
max
public double max(int step, int period) Finds the maximum value in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive. -
min
public double min(int step, int period) Finds the minimum value in the data set starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive. -
average
public double average(int step, int period) Calculates the period average for the values in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive. Does not include undefined or missing values. -
sum
public double sum(int step, int period) Calculates the sum for the values in the data starting atstep
and going backperiod
, if the value is negative or forwardperiod
, if the value is positive. Does not include undefined or missing values. -
standardDeviation
public double standardDeviation(int step, int period) Calculate the standard deviation of the time series values starting atstep
and either going backperiod
steps if the value is negative or forward if the value is positive.- Specified by:
standardDeviation
in interfaceTSRecord
- Parameters:
step
- , the starting stepperiod
- , the number of steps to go back if a negative number or forward is a positive number- Returns:
- double the sample standard deviation or Const.UNDEFINED_DOUBLE
-
getTimeSeriesContainerFor
Creates a TimeSeriesContainer filled with data from the TSRecord starting at "step" and going forward, if period is positive, or backwards, if period is negative.- Specified by:
getTimeSeriesContainerFor
in interfaceTSRecord
- Parameters:
step
- , the starting stepperiod
- , the number of steps to go back when a negative number or forward if a positive number
-
hasVerticalDatum
public boolean hasVerticalDatum()Return whether this object includes vertical datum information -
getVerticalDatumContainer
public mil.army.usace.hec.metadata.VerticalDatumContainer getVerticalDatumContainer()- Specified by:
getVerticalDatumContainer
in interfacemil.army.usace.hec.metadata.VerticalDatum
-
setVerticalDatumContainer
public void setVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Sets the Vertical Datum Container- Parameters:
vdc
- |
-
getNativeVerticalDatum
- Specified by:
getNativeVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentVerticalDatum
- Specified by:
getCurrentVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isCurrentVerticalDatumEstimated
public boolean isCurrentVerticalDatumEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isCurrentVerticalDatumEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNativeVerticalDatum
public boolean toNativeVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNativeVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNGVD29
public boolean toNGVD29() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNGVD29
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNAVD88
public boolean toNAVD88() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNAVD88
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toVerticalDatum
public boolean toVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
toVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
forceVerticalDatum
public boolean forceVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
forceVerticalDatum
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getCurrentOffset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getCurrentOffset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNGVD29Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNGVD29Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNAVD88Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNAVD88Offset
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNGVD29OffsetEstimated
public boolean isNGVD29OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNGVD29OffsetEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNAVD88OffsetEstimated
public boolean isNAVD88OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNAVD88OffsetEstimated
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getVerticalDatumInfo
- Specified by:
getVerticalDatumInfo
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
setVerticalDatumInfo
public void setVerticalDatumInfo(String xmlStr) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
setVerticalDatumInfo
in interfacemil.army.usace.hec.metadata.VerticalDatum
- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classNamedType
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in classNamedType
- 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
-
setCompressData
public void setCompressData(boolean comp) - Specified by:
setCompressData
in interfaceTSRecord
-