public class ERGDoubleDataObserver extends ERGDataObserver
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
version |
buffer, file, fileChannel, fileSpec, mappedByteBufferchangeManager, flags, globalFlag, globalFlagValid, suspended| Constructor and Description |
|---|
ERGDoubleDataObserver(UBHInterface ubh,
int signal,
java.lang.String fileSpec)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createBuffer()
create the reading buffer.
|
int |
getDataSizeInByte()
get the size of one item in bytes.
|
java.lang.Class |
getNativeDatatype()
Get the data type of inner values.
|
protected double |
getNativeValueAt(int index) |
java.lang.Object |
getNativeValues()
Get the inner values.
|
java.lang.Object |
getNativeValues(int lower,
int upper)
Get a range of the inner values.
|
double |
getValueAt(int index)
Get a data value.
|
java.lang.String |
getVersion() |
void |
setValueAt(int index,
double value)
Set a value
|
finalize, getCount, initializeFile, main, release, releaseFile, seek, setFlagAtaddDataItemChangeListener, createScale, getFlagAt, getScale, isChangeManagerSuspended, isImplicit, removeDataItemChangeListener, setScale, suspendChangeManagerpublic static final java.lang.String version
public ERGDoubleDataObserver(UBHInterface ubh, int signal, java.lang.String fileSpec) throws java.io.FileNotFoundException, java.io.IOException
ubh - The universal binary header.signal - the signal number.fileSpec - the file specification.java.io.FileNotFoundExceptionjava.io.IOExceptionpublic java.lang.String getVersion()
getVersion in class ERGDataObserverpublic int getDataSizeInByte()
getDataSizeInByte in class ERGDataObserverpublic double getValueAt(int index)
throws java.lang.RuntimeException
index - The index of the value.java.lang.RuntimeExceptionprotected double getNativeValueAt(int index)
throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic void setValueAt(int index,
double value)
throws java.lang.RuntimeException
index - the index of the value to changed.value - the new value.java.lang.RuntimeExceptionprotected void createBuffer()
createBuffer in class ERGDataObserverpublic java.lang.Class getNativeDatatype()
public java.lang.Object getNativeValues()
public java.lang.Object getNativeValues(int lower,
int upper)
lower - the lower index of the range of interest.upper - the upper index of the range of interest.