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 intprotected intprotected booleanprotected doubleArrayContainerprotected DSSArrayContainerprotected Stringprotected Stringprotected HecTimeprotected intprotected Stringcontrols type of data that gets interpolated to the dataArray, may be INST-VAL or PER-AVER or null.protected booleanprotected intprotected Stringprotected intprotected HecTimeprotected intArrayContainerprotected Stringprotected intprotected Stringprotected Stringprotected Stringunit type string read from DSS path headerprotected intprotected mil.army.usace.hec.metadata.VerticalDatumContainerstatic final booleanstatic final booleanFields 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 TypeMethodDescriptiondoubleaverage(int step, int period) Calculates the period average for the values in the data starting atstepand 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.booleancopyInto(AbstractTSRecord newTsRec) Copy data from this RssTSRecordImpl into the given RssTSRecordImpl.booleanforceVerticalDatum(String datum) intRerturns the date in HEC Julian DayintdoublegetCumulativeTotal(int step, int period) get the cumulative total starting atstepand going backperiodsteps.doublegetCumulativeTotal(RunTimeStep rts, int period) Get the cumulative total starting atrtsand going backperiodsteps.doubledoublegetCurrentOffset(String unit) doublereturn the value for the current runtime stepdouble[]getDataArrayFor(int step, int period) Returns the values for the data starting atstepand either going backperiodsteps 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.intdouble[]getInterpolatedTSArray(HecTime startTime, HecTime endTime, int intervalTime) Interpolate time series data for a regular size time interval "intervalTime" in minutesdoublegetLaggedValue(RunTimeStep rts, int lagAmount) get the value at current runtime step minus the lag amountdoubledoublegetNAVD88Offset(String unit) doubledoublegetNGVD29Offset(String unit) intdoublegetPeriodAverage(int step, int period) Get the Period Average starting atRunTimeStepand going backperiodsteps.doublegetPeriodAverage(int step, int period, int lag) Get the Period Average starting atRunTimeStepand going backperiodsteps.doublegetPeriodAverage(RunTimeStep rts, int period) Get the Period Average starting atRunTimeStepand going backperiodsteps.doublegetPeriodAverage(RunTimeStep rts, int period, int lag) Get the Period Average starting atRunTimeStepand going backperiodsteps.doubleget the value previous to the current runtime stepabstract StringgetRelativePath(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.intReturns the time step in minutes;double[]Get the data array for the time series record.doublegetTSValueAt(HecTime time) Deprecated.getUnits()get the units type.doublegetValue(int step) get the value at stepdoubleReturn the time series value at the specified time, do linear interpolation as necessary.intmil.army.usace.hec.metadata.VerticalDatumContainerbooleanReturn whether this object includes vertical datum informationbooleaninitialize(int beginDate, int beginTime, int timeStepMin, int numSteps, String timeWindow) booleaninitialize(RunTimeWindow rtw) booleanbooleanbooleanbooleanbooleandoublemax(int step, int period) Finds the maximum value in the data starting atstepand going backperiod, if the value is negative or forwardperiod, if the value is positive.doublemin(int step, int period) Finds the minimum value in the data set starting atstepand going backperiod, if the value is negative or forwardperiod, if the value is positive.static String[]parseDssPath(String dsspath) booleanreadData(BufferedReader input) Read write methods for storing TSRecords to an ASCII filebooleanreadDataFromRas(BufferedReader input) Reads time series record parameters from an existing opened BufferedReader according to RAS v.2.2 flow file formatbooleanTODO complete this method - currently it does just what initialize doesvoidreset()voidsetCompressData(boolean comp) voidsetCurrentValue(int step, double value) set the value at stepvoidsetCurrentValue(RunTimeStep rts, double value) set the value at the current run time stepvoidsetDSSFilename(String name) voidsetDSSPathname(String name) voidsetDSSPathname(String[] parts) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetInputDataPos(int inputPos) voidsetInterpUnitsType(String type) voidsetParamName(String name) voidsetTimeWindow(HecTime start, HecTime end) voidsetTimeWindowString(String timestr) voidvoidsetUnitsType(String dataType) set the units type.voidsetVariableId(int varid) voidsetVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Sets the Vertical Datum ContainervoidsetVerticalDatumInfo(String xmlStr) voidvoidshiftLeft(RunTimeWindow rtw) doublestandardDeviation(int step, int period) Calculate the standard deviation of the time series values starting atstepand either going backperiodsteps if the value is negative or forward if the value is positive.doublesum(int step, int period) Calculates the sum for the values in the data starting atstepand going backperiod, if the value is negative or forwardperiod, if the value is positive.booleanbooleantoNAVD88()booleantoNGVD29()booleantoVerticalDatum(String datum) booleanwriteData(BufferedWriter out) booleanMethods 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
setInterpUnitsTypein interfaceTSRecord
-
getInterpUnitsType
- Specified by:
getInterpUnitsTypein interfaceTSRecord
-
shiftLeft
-
shiftLeft
-
setVariableId
public void setVariableId(int varid) - Specified by:
setVariableIdin interfaceTSRecord
-
getVariableId
public int getVariableId()- Specified by:
getVariableIdin interfaceTSRecord
-
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. -
getSummaryArray
public double[] getSummaryArray()returns an array containing the average, min, max, and count of valid data in time series- Specified by:
getSummaryArrayin interfaceTSRecord
-
getNumSteps
public int getNumSteps()- Specified by:
getNumStepsin interfaceTSRecord
-
setTimeWindowString
- Specified by:
setTimeWindowStringin interfaceTSRecord
-
getTimeWindowString
- Specified by:
getTimeWindowStringin interfaceTSRecord
-
setTimeWindow
- Specified by:
setTimeWindowin interfaceTSRecord
-
setUnits
-
getUnits
-
setUnitsType
set the units type. one of DssDataType.INST-VAL,DssDataType.INST-CUM, DssDataType.PER-AVER, DssDataType.PER-CUM- Specified by:
setUnitsTypein interfaceTSRecord- Parameters:
dataType- - the data type- See Also:
-
getBeginDate
public int getBeginDate()Rerturns the date in HEC Julian Day- Specified by:
getBeginDatein interfaceTSRecord- Returns:
- int
-
getBeginTime
public int getBeginTime()- Specified by:
getBeginTimein interfaceTSRecord
-
getTimeStepMinutes
public int getTimeStepMinutes()Returns the time step in minutes;- Specified by:
getTimeStepMinutesin 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:
getUnitsTypein interfaceTSRecord- Returns:
- unitsType - the data type
- See Also:
-
getTimeArray
public int[] getTimeArray()- Specified by:
getTimeArrayin interfaceTSRecord
-
getDataArrayFor
public double[] getDataArrayFor(int step, int period) Returns the values for the data starting atstepand either going backperiodsteps if the value is negative or forward if the value is positive.- Specified by:
getDataArrayForin 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:
getTSArrayin interfaceTSRecord- Returns:
- double array containing all data values for record
-
getTSContainer
- Specified by:
getTSContainerin interfaceTSRecord
-
reset
public void reset() -
initialize
- Specified by:
initializein interfaceTSRecord
-
reinitialize
TODO complete this method - currently it does just what initialize does- Specified by:
reinitializein interfaceTSRecord
-
initialize
public boolean initialize(int beginDate, int beginTime, int timeStepMin, int numSteps, String timeWindow) - Specified by:
initializein interfaceTSRecord
-
getParamName
- Specified by:
getParamNamein interfaceTSRecord
-
setParamName
- Specified by:
setParamNamein interfaceTSRecord
-
getDSSPathname
- Specified by:
getDSSPathnamein interfaceTSRecord
-
setDSSPathname
- Specified by:
setDSSPathnamein interfaceTSRecord
-
setDSSPathname
- Specified by:
setDSSPathnamein interfaceTSRecord
-
getDSSFilename
- Specified by:
getDSSFilenamein interfaceTSRecord
-
setDSSFilename
- Specified by:
setDSSFilenamein interfaceTSRecord
-
setInputDataPos
public void setInputDataPos(int inputPos) - Specified by:
setInputDataPosin interfaceTSRecord
-
getInputDataPos
public int getInputDataPos()- Specified by:
getInputDataPosin interfaceTSRecord
-
isObservedData
public boolean isObservedData()- Specified by:
isObservedDatain interfaceTSRecord
-
isDefaultData
public boolean isDefaultData()- Specified by:
isDefaultDatain interfaceTSRecord
-
readData
Description copied from interface:TSRecordRead 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:
readDataFromRasin interfaceTSRecord
-
writeDataToRas
- Specified by:
writeDataToRasin 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:
getTSValueAtin 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:
getInterpolatedTSArrayin interfaceTSRecord
-
parseDssPath
-
getCurrentValue
return the value for the current runtime step- Specified by:
getCurrentValuein 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:
setCurrentValuein 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:
setCurrentValuein 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:
getLaggedValuein 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:
getPreviousValuein interfaceTSRecord- Parameters:
rts- the RunTimeStep- Returns:
- the value one step back (rts.step-1)
-
getPeriodAverage
Get the Period Average starting atRunTimeStepand going backperiodsteps. 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 atRunTimeStepand going backperiodsteps. 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 atRunTimeStepand going backperiodsteps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getPeriodAveragein 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 atRunTimeStepand going backperiodsteps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getPeriodAveragein 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 atrtsand going backperiodsteps. Assumes that data is constant prior to and following the time series array limits.- Specified by:
getCumulativeTotalin 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 atstepand going backperiodsteps.- Specified by:
getCumulativeTotalin 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:
getTimeSeriesContainerin interfaceTSRecord- Returns:
- The TSRecord's TimeSeriesContainer
-
max
public double max(int step, int period) Finds the maximum value in the data starting atstepand 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 atstepand 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 atstepand 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 atstepand 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 atstepand either going backperiodsteps if the value is negative or forward if the value is positive.- Specified by:
standardDeviationin 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:
getTimeSeriesContainerForin 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:
getVerticalDatumContainerin 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:
getNativeVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentVerticalDatum
- Specified by:
getCurrentVerticalDatumin 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:
isCurrentVerticalDatumEstimatedin 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:
toNativeVerticalDatumin 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:
toNGVD29in 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:
toNAVD88in 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:
toVerticalDatumin 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:
forceVerticalDatumin 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:
getCurrentOffsetin 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:
getCurrentOffsetin 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:
getNGVD29Offsetin 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:
getNGVD29Offsetin 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:
getNAVD88Offsetin 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:
getNAVD88Offsetin 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:
isNGVD29OffsetEstimatedin 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:
isNAVD88OffsetEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getVerticalDatumInfo
- Specified by:
getVerticalDatumInfoin 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:
setVerticalDatumInfoin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
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 classNamedType- 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 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:
setCompressDatain interfaceTSRecord
-