public final class OsduWellLogCurve extends Object
In addition to meta-data, a log curve consist of measurement data of a specific type. The curve may have one or more dimensions.
This class is thread safe.
Constructor and Description |
---|
OsduWellLogCurve(OsduWellLogCurve curve,
boolean includeValues)
Create a new OSU well log curve instance as a copy of the specified one.
|
OsduWellLogCurve(String id,
int nDimensions,
Class<?> valueType,
String unit)
Create a OSU well log curve instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(int dimension,
Object value)
Add a value to this curve.
|
void |
addValue(Object value)
Add a value to this curve.
|
Boolean |
canBeInterpolated()
Return if this curve can be interpoated or not.
|
void |
clear()
Remove all values from this curve.
|
Double |
getBaseDepth()
Return base depth of this curve.
|
String |
getBusinessValue()
Return business value of this curve.
|
String |
getDepthUnit()
Return depth unit of this curve.
|
String |
getDescription()
Return description of this curve.
|
String |
getFamily()
Return family of this curve.
|
String |
getId()
Return the ID of this curve.
|
String |
getInterpreterName()
Return interpreter name of this curve.
|
String |
getMainFamily()
Return main family of this curve.
|
String |
getMnemonic()
Return mnemonic of this curve.
|
int |
getNDimensions()
Return the number of dimensions of this curve.
|
int |
getNValues()
Return the number of values in this curve.
|
String |
getQuality()
Return quality of this curve.
|
Object[] |
getRange()
Return the range (i.e. the min and max value) of this curve.
|
Statistics |
getStatistics()
Return curve statistics.
|
Date |
getTime()
Return time of this curve.
|
Double |
getTopDepth()
Return top depth of this curve.
|
String |
getType()
Return type of this curve.
|
String |
getUnit()
Return unit of measure of the data of this curve.
|
Object |
getValue(int index)
Return a specific value from this curve.
|
Object |
getValue(int dimension,
int index)
Return a specific value from the given dimension of this curve.
|
Class<?> |
getValueType()
Return the value type for the data of this curve,
typically Double.class, Integer.class, String.class, etc.
|
String |
getVersion()
Return version of this curve.
|
Boolean |
isProcessed()
Return is this curve is processed or not.
|
void |
setBaseDepth(Double baseDepth)
Set base depth of this curve.
|
void |
setBusinessValue(String businessValue)
Set business value of this curve.
|
void |
setDepthUnit(String depthUnit)
Set depth unit of this curve.
|
void |
setDescription(String description)
Set description of this curve.
|
void |
setFamily(String family)
Set family of this curve.
|
void |
setInterpolated(Boolean canBeInterpolated)
Set if this curve can be interpolated.
|
void |
setInterpreterName(String interpreterName)
Set interpreter name of this curve.
|
void |
setMainFamily(String mainFamily)
Set main family of this curve.
|
void |
setMnemonic(String mnemonic)
Set mnemonic of this curve.
|
void |
setProcessed(Boolean isProcessed)
Set if this curve is processed.
|
void |
setQuality(String quality)
Set quality of this curve.
|
void |
setTime(Date time)
Set time of this curve.
|
void |
setTopDepth(Double topDepth)
Set top depth of this curve.
|
void |
setType(String type)
Set type of this curve.
|
void |
setValue(int dimension,
int index,
Object value)
Set specific value
|
void |
setVersion(String version)
Set version of this curve.
|
String |
toString() |
public OsduWellLogCurve(String id, int nDimensions, Class<?> valueType, String unit)
id
- Curve ID.
For all practical purposes this is the curve name.nDimensions
- Dimension of curve. <0,>.valueType
- Value type of curve data.unit
- Unit of measure of curve data. Null if unitless, unknown or N/A.IllegalArgumentException
- If id or valueType is null or nDimensions <= 0.public OsduWellLogCurve(OsduWellLogCurve curve, boolean includeValues)
curve
- Curve to copy. Non-null.includeValues
- True to include curve values, false to not.IllegalArgumentException
- If curve is null.public String getId()
public int getNDimensions()
public Class<?> getValueType()
public String getUnit()
public Date getTime()
public void setTime(Date time)
time
- Time to set. Null if unknown or N/A.public String getVersion()
public void setVersion(String version)
version
- Version to set. Null if unknown or N/A.public String getQuality()
public void setQuality(String quality)
quality
- Quality to set. Null if unknown or N/A.public String getInterpreterName()
public void setInterpreterName(String interpreterName)
interpreterName
- Interpreter name to set. Null if unknown or N/A.public Boolean isProcessed()
public void setProcessed(Boolean isProcessed)
isProcessed
- True to specify if the curve is processed, false if not, null
if unknown or N/A.public Boolean canBeInterpolated()
public void setInterpolated(Boolean canBeInterpolated)
canBeInterpolated
- True to specify if the curve can be interpolated, false if not, null
if unknown or N/A.to set. Null if unknown or N/A.public Double getTopDepth()
public void setTopDepth(Double topDepth)
topDepth
- Top depth to set. Null if unknown or N/A.public Double getBaseDepth()
public void setBaseDepth(Double baseDepth)
baseDepth
- Base depth to set. Null if unknown or N/A.public String getDepthUnit()
public void setDepthUnit(String depthUnit)
depthUnit
- Depth unit to set. Null if unknown or N/A.public String getMnemonic()
public void setMnemonic(String mnemonic)
mnemonic
- Mnemonic to set. Null if unknown or N/A.public String getType()
public void setType(String type)
type
- Type to set. Null if unknown or N/A.public String getBusinessValue()
public void setBusinessValue(String businessValue)
businessValue
- Business value to set. Null if unknown or N/A.public String getMainFamily()
public void setMainFamily(String mainFamily)
mainFamily
- Main family to set. Null if unknown or N/A.public String getFamily()
public void setFamily(String family)
family
- Family to set. Null if unknown or N/A.public String getDescription()
public void setDescription(String description)
description
- Description to set. Null if none.public void addValue(int dimension, Object value)
dimension
- Dimension index. [0,nDimensions>.value
- Value to add. Null to indicate absent.IllegalArgumentException
- If dimension is out of bounds.public void addValue(Object value)
value
- Value to add. Null indicates absent.public void setValue(int dimension, int index, Object value)
dimension
- index
- value
- public int getNValues()
public Object getValue(int dimension, int index)
dimension
- Dimension index. [0,nDimensions>.index
- Position index. [0,nValues>.public Object getValue(int index)
index
- Position index. [0,nValues>.IllegalArgumentException
- If index is out of bounds.public Object[] getRange()
If the curve is multi-dimensional, the range is reported across all dimensions.
public Statistics getStatistics()
public void clear()
Copyright © 2024 Petroware AS - https://petroware.no