public final class LisDataFormatSpecificationRecord extends LisRecord
See LIS 79 Documentation Section 4.1.6.
The data format specification records holds some meta-data about the curve content as well as the full curve specification. These are captured in Entry and Datum instances respectively.
Threading:
This class is immutable.
Modifier and Type | Class and Description |
---|---|
static class |
LisDataFormatSpecificationRecord.Datum
Identify a datum, i.e.
|
static class |
LisDataFormatSpecificationRecord.Entry
Defines one entry, i.e.
|
LisRecord.Type
Constructor and Description |
---|
LisDataFormatSpecificationRecord(List<LisDataFormatSpecificationRecord.Entry> entries,
List<LisDataFormatSpecificationRecord.Datum> datums)
Create a new data format specification record.
|
Modifier and Type | Method and Description |
---|---|
int |
getDataFrameSize()
Get frame size.
|
LisDataFormatSpecificationRecord.Datum |
getDatum(String mnemonic)
Return datum for the specified mnemonic.
|
List<LisDataFormatSpecificationRecord.Datum> |
getDatums()
Return the datums of this record.
|
int |
getDepthRepresentationCode()
Get representation code of depth data.
|
String |
getDepthUnit()
Return depth unit.
|
List<LisDataFormatSpecificationRecord.Entry> |
getEntries()
Return the meta-data entries of this record.
|
double |
getFrameSpacing()
Get frame spacing (step value).
|
Object |
getNoValue()
Get no-value.
|
int |
getRowSize()
Return the exact size (in bytes) of a file representation
of one row for the data of the LIS file.
|
int |
getSize()
Return size (in bytes) of this record.
|
int |
getUpDownFlag()
Get up/down flag.
|
boolean |
isDepthRecordingMode()
Check if this record is in "depth recording mode".
|
String |
toString() |
getAttributes, getType
public LisDataFormatSpecificationRecord(List<LisDataFormatSpecificationRecord.Entry> entries, List<LisDataFormatSpecificationRecord.Datum> datums)
entries
- The entries that makes up the record. Non-null.datums
- The datums that makes up the record. Non-null.IllegalArgumentException
- If entries or datums is null.public List<LisDataFormatSpecificationRecord.Entry> getEntries()
public boolean isDepthRecordingMode()
public String getDepthUnit()
public int getDepthRepresentationCode()
public int getDataFrameSize()
public double getFrameSpacing()
public int getUpDownFlag()
public Object getNoValue()
public int getRowSize()
public List<LisDataFormatSpecificationRecord.Datum> getDatums()
public LisDataFormatSpecificationRecord.Datum getDatum(String mnemonic)
NOTE: If there are more than one curve with the same mnemonic, the first one encountered is returned by this method. This will surely cause problems for the client code, so mnemonics should be kept unique.
mnemonic
- Mnemonic to get datum of. Non-null.IllegalArgumentException
- If mnemonic is null.public int getSize()
Copyright © 2024 Petroware AS - https://petroware.no