public final class EtpLogSet extends Object
Constructor and Description |
---|
EtpLogSet(String name)
Create a new empty log set.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(EtpLogSetListener listener)
Add change listener to this log set.
|
void |
copy(EtpLogSet logSet)
Copy all curves from the specified log set.
|
Class<?> |
getActualDataType(int curveNo)
Index curves have Long data types by definition.
|
Object[] |
getActualRange(int curveNo)
Return range of the specified curve.
|
Object |
getActualValue(int curveNo,
int index) |
String |
getCurveName(int curveNo)
Return name of the specified curve.
|
Class<?> |
getDataType(int curveNo)
Return data type of the specified curve.
|
String |
getDescription(int curveNo)
Return description of the specified curve.
|
String |
getName()
Return name of this log set.
|
int |
getNCurves()
Return number of curves in this log set.
|
int |
getNValues()
Return number of values in this log set.
|
String |
getQuantity(int curveNo)
Return quantity of the specified curve.
|
Long |
getStartIndex() |
String |
getUnit(int curveNo)
Return unit of the specified curve.
|
Object |
getValue(int curveNo,
int index)
Return value of the specified curve and index.
|
void |
removeListener(EtpLogSetListener listener)
Remove change listener from this log set.
|
String |
toString() |
public EtpLogSet(String name)
name
- Log set name. Non-null.public void copy(EtpLogSet logSet)
Threading: Locking for both involved log sets are done inside this method.
logSet
- Log set to copy. Non-null.IllegalArgumentException
- If logSet is null.public void addListener(EtpLogSetListener listener)
listener
- Listener to add. Non-null.IllegalArgumentException
- If listener is null.public void removeListener(EtpLogSetListener listener)
listener
- Listener to remove. Non-null.IllegalArgumentException
- If listener is null.public String getName()
public Long getStartIndex()
public int getNCurves()
public int getNValues()
public Object getValue(int curveNo, int index)
curveNo
- Curve to find value of.index
- Index of value to return.public Object getActualValue(int curveNo, int index)
public String getCurveName(int curveNo)
curveNo
- Curve number of curve to get name of.public Class<?> getDataType(int curveNo)
curveNo
- Curve number of curve to get data type of.public Class<?> getActualDataType(int curveNo)
curveNo
- Curve number of curve to get actual data type of.public String getQuantity(int curveNo)
curveNo
- Curve number of curve to get quantity of.public String getUnit(int curveNo)
curveNo
- Curve number of curve to get unit of.public String getDescription(int curveNo)
curveNo
- Curve number of curve to get description of.public Object[] getActualRange(int curveNo)
Threading: The log set need not be externally locked for this operation as it potentially require write, and it is consequently write locked in this method.
curveNo
- Curve to find range of. [0,>.Copyright © 2023 Petroware AS - https://petroware.no