final class EpicsGenericObject extends Object implements org.lcsim.event.GenericObject
EpicsData.read(org.lcsim.event.EventHeader)
to create the data object from input event data.Modifier and Type | Field and Description |
---|---|
private int[] |
headerData
The header information.
|
private String[] |
keys
The names of the EPICS variables.
|
private double[] |
values
The values of the EPICS variables.
|
Constructor and Description |
---|
EpicsGenericObject() |
Modifier and Type | Method and Description |
---|---|
double |
getDoubleVal(int index)
Get a double value of an EPICS variable.
|
float |
getFloatVal(int index)
Dummy implementation.
|
int |
getIntVal(int index)
Get an int value which is used to store the EPICS header information.
|
String |
getKey(int index)
Get a key by index.
|
(package private) String[] |
getKeys()
Get the keys which are the EPICS variable names.
|
int |
getNDouble()
Get the number of doubles which matches the number of EPICS variables.
|
int |
getNFloat()
Dummy implementation.
|
int |
getNInt()
Get the number of int values which is the length of the data header.
|
boolean |
isFixedSize()
Returns
false to indicate this object does not have a fixed size. |
(package private) void |
setHeaderData(int[] headerData)
Set the header data.
|
(package private) void |
setKey(int index,
String key)
Set a key string by index.
|
(package private) void |
setKeys(String[] keys)
Set the keys.
|
(package private) void |
setValue(int index,
double value)
Set a value by index.
|
(package private) void |
setValues(double[] values)
Set the values array.
|
private int[] headerData
private String[] keys
private double[] values
public double getDoubleVal(int index)
getDoubleVal
in interface org.lcsim.event.GenericObject
index
- the index of the variablepublic float getFloatVal(int index)
getFloatVal
in interface org.lcsim.event.GenericObject
index
- the array indexpublic int getIntVal(int index)
getIntVal
in interface org.lcsim.event.GenericObject
index
- the array indexindex
public String getKey(int index)
index
- the indexString[] getKeys()
public int getNDouble()
getNDouble
in interface org.lcsim.event.GenericObject
public int getNFloat()
getNFloat
in interface org.lcsim.event.GenericObject
public int getNInt()
getNInt
in interface org.lcsim.event.GenericObject
public boolean isFixedSize()
false
to indicate this object does not have a fixed size.isFixedSize
in interface org.lcsim.event.GenericObject
void setHeaderData(int[] headerData)
data
- the header data arrayvoid setKey(int index, String key)
index
- the indexkey
- the key string which is an EPICS variablevoid setKeys(String[] keys)
keys
- the keys arrayvoid setValue(int index, double value)
index
- the indexvalue
- the valuevoid setValues(double[] values)
values
- the values arrayCopyright © 2019. All rights reserved.