public final class LasParameterRecord extends LasRecord
A LAS parameter record has the following structure on file:
NAME.UNIT VALUE,... : DESCRIPTION {FORMAT} | ASSOC1,ASSOC2...See LAS 3.0 Specification for details.
LasRecord.Type
Constructor and Description |
---|
LasParameterRecord(String name,
String unit,
String value,
String description)
Create a LAS parameter record.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Return the description of this parameter record.
|
String |
getName()
Return the name of this parameter record.
|
DateFormat |
getTimeFormat()
Return time format for the values of this parameter record.
|
String |
getUnit()
Return the unit of this parameter record.
|
String |
getValue()
Return the value of this parameter record.
|
Class<?> |
getValueType()
Return data type of values of this parameter record.
|
void |
setDescription(String description)
Set description of this parameter record.
|
void |
setName(String name)
Set name of this parameter record.
|
void |
setUnit(String unit)
Set unit of the value of this parameter record.
|
void |
setValue(double value)
Set numeric value of this parameter record.
|
void |
setValue(String value)
Set the value of this parameter record.
|
String |
toString() |
String |
toString(int[] position)
Return a string representation of this parameter record
according to the LAS format specification.
|
public LasParameterRecord(String name, String unit, String value, String description)
name
- Name of this parameter. Non-null.unit
- Unit of the value of this parameter.
Null if unitless or unknown.value
- Value of this parameter record. Null to indicate absent.description
- Description of this parameter record. Null if not provided.IllegalArgumentException
- If name is null.public String getName()
public void setName(String name)
name
- Name to set. Non-null.IllegalArgumentException
- If name is null.public String getUnit()
public void setUnit(String unit)
unit
- Unit to set. May be null indicating absent or unitless.public String getValue()
public void setValue(String value)
value
- Value of this parameter record.
May be null indicating absent.public void setValue(double value)
value
- Value of this parameter record.public String getDescription()
public void setDescription(String description)
description
- Description to set. May be null indicating
absent.public Class<?> getValueType()
public DateFormat getTimeFormat()
public String toString(int[] position)
position
- Positions of the fixed delimiters of the parameter
line. In case the position requirements cannot be met,
the entry will be written at the next possible index.Copyright © 2024 Petroware AS - https://petroware.no