public final class BitCurve extends Object
A log curve consists of measurement data of a specific type.
Constructor and Description |
---|
BitCurve(String name,
String quantity,
String unit,
Class<?> valueType)
Create a new BIT curve.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object value)
Add the specified value at the end of this curve.
|
String |
getDescription()
Return description of this curve.
|
String |
getName()
Return name of this curve.
|
int |
getNValues()
Return number of values in this curve.
|
String |
getQuantity()
Return quantity of this curve.
|
Object[] |
getRange()
Return the range (i.e. the min and max value) of this curve.
|
Statistics |
getStatistics()
Return curve statistics.
|
String |
getUnit()
Return unit of measurement for the values of this curve.
|
Object |
getValue(int index)
Return value at the specified index.
|
Class<?> |
getValueType()
Return type of the values of this curve.
|
String |
toString() |
public BitCurve(String name, String quantity, String unit, Class<?> valueType)
name
- Curve name. Non-null.quantity
- Quantity for the values. Null if N/A or unknown.unit
- Curve unit. Null indicating N/A, unknown or unitless.valueType
- Data type of the values of the curve. Non-null.IllegalArgumentException
- If name or valueType is null.public String getName()
public String getDescription()
public String getQuantity()
public String getUnit()
public Class<?> getValueType()
public void addValue(Object value)
value
- Value to add.IllegalArgumentException
- If value is of wrong type.public int getNValues()
public Object getValue(int index)
index
- Index to get value from. [0,>.IllegalArgumentException
- If index is out of bounds.public Object[] getRange()
public Statistics getStatistics()
Copyright © 2024 Petroware AS - https://petroware.no