public class ERGIntDataObserver extends ERGDataObserver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
buffer, file, fileChannel, fileSpec, mappedByteBuffer
changeManager, flags, globalFlag, globalFlagValid, suspended
Constructor and Description |
---|
ERGIntDataObserver(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.
|
int |
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, setFlagAt
addDataItemChangeListener, createScale, getFlagAt, getScale, isChangeManagerSuspended, isImplicit, removeDataItemChangeListener, setScale, suspendChangeManager
public static final java.lang.String version
public ERGIntDataObserver(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.FileNotFoundException
java.io.IOException
public java.lang.String getVersion()
getVersion
in class ERGDataObserver
public int getDataSizeInByte()
getDataSizeInByte
in class ERGDataObserver
public double getValueAt(int index)
index
- The index of the value.public int getNativeValueAt(int index)
public void setValueAt(int index, double value) throws java.lang.RuntimeException
index
- the index of the value to changed.value
- the new value.java.lang.RuntimeException
protected void createBuffer()
createBuffer
in class ERGDataObserver
public 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.