public final class SpwlaCurve extends Object
Constructor and Description |
---|
SpwlaCurve(String name,
String testName,
String unit,
int multiplier,
String description,
Class<?> valueType,
String dataSource)
Create a new SPWLA curve instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(int index,
Object value)
Add value at a specified index.
|
void |
addValue(Object value)
Add a value to this curve.
|
String |
getDataSource()
Return data source of this curve.
|
String |
getDescription()
Return description of this curve.
|
String |
getName()
Return name of this curve.
|
int |
getNDimensions()
Return number of dimensions of this curve.
|
int |
getNValues()
Return the number of values in this curve.
|
Object[] |
getRange()
Return range (i.e. min and max) of this curve.
|
String |
getTestName()
Return name of the test that has been performed.
|
String |
getUnit()
Return unit of this curve.
|
Object |
getValue(int index)
Return curve value of the specified index.
|
Class<?> |
getValueType()
Return data type of the values of this curve.
|
String |
toString() |
public SpwlaCurve(String name, String testName, String unit, int multiplier, String description, Class<?> valueType, String dataSource)
name
- Curve name. Non-null.testName
- Curve test name. Null if N/A or unknown.unit
- Data unit. May be null if unknown/unitless.multiplier
- Multiplier to apply to values. Non-0.description
- Curve description. May be null.valueType
- Data type of the values. Non-null.dataSource
- Source of data. Null if N/A or unknown.IllegalArgumentException
- If name or valueType is null or if multiplier is 0.public String getName()
public String getTestName()
public String getUnit()
public String getDescription()
public int getNDimensions()
public Class<?> getValueType()
public String getDataSource()
public void addValue(Object value)
value
- Value to add. Null if no-value.public void addValue(int index, Object value)
index
- Index to add into. [0,n>.value
- Value to add. Null if no-value.public int getNValues()
public Object getValue(int index)
index
- Index to return value from. [0,nValues-1].IllegalArgumentException
- If index is out of bounds.public Object[] getRange()
Copyright © 2024 Petroware AS - https://petroware.no