public final class DataExchange
extends java.lang.Object
This is the data exchange class which holds different static methods for
reading or writing different TINE and primitive types (here it is
integer, float and double) via TINE and CDI calls.
It distinguishes between a normal TINE call to CDI by the method
IEData.isCDI()
.
Modifier and Type | Class and Description |
---|---|
static class |
DataExchange.ERecv
The following enumeration is for controlling the transaction through CDI.
|
static class |
DataExchange.ESend
The following enumeration is for controlling the transaction through CDI.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ |
static int |
MAX_DELAY_TIME
Is the max.
|
Constructor and Description |
---|
DataExchange() |
Modifier and Type | Method and Description |
---|---|
static double |
fireEventRecvDBL(IEData data_,
DataExchange.ERecv receive_)
Fires an event to TINE, which will read (receive) the current data
double value of the corresponding data element.
|
static float |
fireEventRecvFLT(IEData data_,
DataExchange.ERecv receive_)
Fires an event to TINE, which will read (receive) the current
float value of the corresponding data element.
|
static int |
fireEventRecvINT(IEData data_,
DataExchange.ERecv receive_)
Fires an event over TINE, which will read (receive) the current data
integer value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) nothing to the server.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
double... values_)
Fires an event to TINE, which will write (send) the current data
double values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
float... values_)
Fires an event to TINE, which will write (send) the current data
float values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
de.desy.tine.types.FLTINT... values_)
Fires an event to TINE, which will write (send) the current TINE data
FLTINT values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
int... values_)
Fires an event to TINE, which will write (send) the current data
integer values via the TINE Client library.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
de.desy.tine.types.INTINT... values_)
Fires an event to TINE, which will write (send) the current TINE data
INTINT values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
de.desy.tine.types.NAME16II... values_)
Fires an event to TINE, which will write (send) the current data
NAME16II values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
de.desy.tine.types.NAME32I... values_)
Fires an event to TINE, which will write (send) the current data
NAME32I values of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
DataExchange.ESend send_,
short... values_)
Fires an event to TINE, which will write (send) the current data
short values via the TINE Client library.
|
static void |
fireEventSend(IEData data_,
double value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
double value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
float value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
float value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
de.desy.tine.types.FLTINT value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current TINE data
FLTINT value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) NO value to the
server.
|
static void |
fireEventSend(IEData data_,
int value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
integer value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
de.desy.tine.types.INTINT value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current TINE data
INTINT value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
de.desy.tine.types.NAME16II value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
NAME16II value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
de.desy.tine.types.NAME32I value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
NAME32I value of the corresponding data element.
|
static void |
fireEventSend(IEData data_,
short value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
short value of the corresponding data element.
|
static void |
fireEventSendCDI(IEData data_,
int value_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) the current data
integer value of the corresponding data element.
|
static void |
fireEventSendWithDataType(IEData data_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) value to the server
which are stored in the
IEData parameters. |
static void |
fireEventSendWithNumber(IEData data_,
int delay_,
DataExchange.ESend send_)
Fires an event to TINE, which will write (send) NO value to the
server.
|
static int |
sendTineInt(java.lang.String tinePath_,
int value_)
Sends one integer value via TINE to the TINE path of the corresponding
device server.
|
public static final java.lang.String CLAZZ
public static final int MAX_DELAY_TIME
public static final int sendTineInt(java.lang.String tinePath_, int value_)
SEND.CLBR
!tinePath_
- Is the TINE path of the device server.value_
- Is the value you wanted to send.public static final void fireEventSend(IEData data_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) nothing to the server. The data element is only used to get the corresponding device name of the TINE call. This method has no delay time and will return immediately.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) NO value to the server. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. If the value
is zero or lower it will return immediately after sending the value. If
the delay time is beyond the value of MAX_DELAY_TIME
then it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSendWithNumber(IEData data_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) NO value to the server. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. If the value
is zero or lower it will return immediately after sending the value. If
the delay time is beyond the value of MAX_DELAY_TIME
then it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSendWithDataType(IEData data_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) value to the server
which are stored in the IEData
parameters. These send
data type is of the form TDataType
form the TINE framework.
This method will wait after sending the value via TINE. If the value
is zero or lower it will return immediately after sending the value. If
the delay time is beyond the value of MAX_DELAY_TIME
then it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, int value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data integer value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately. If the delay time is beyond
the value of MAX_DELAY_TIME
then it will wait
for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the integer value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, short value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data short value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately. If the delay time is beyond
the value of MAX_DELAY_TIME
then it will wait
for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the short value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, short... values_) throws TineException
Fires an event to TINE, which will write (send) the current data short values via the TINE Client library. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the short array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, int... values_) throws TineException
Fires an event to TINE, which will write (send) the current data integer values via the TINE Client library. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the integer array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSendCDI(IEData data_, int value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data
integer value of the corresponding data element. The sending
is done with enumeration of ESend
. These enumeration tells the
send method if it should use calibration or not. The data element is
only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the integer value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
which includes if
the data should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, de.desy.tine.types.INTINT value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current TINE data INTINT value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the TINE INTINT value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, de.desy.tine.types.INTINT... values_) throws TineException
Fires an event to TINE, which will write (send) the current TINE data INTINT values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the TINE INTINT array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, float value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data float value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately after sending the value. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the float value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, float... values_) throws TineException
Fires an event to TINE, which will write (send) the current data float values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the float array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, de.desy.tine.types.FLTINT value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current TINE data FLTINT value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately after sending the value. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the TINE FLTINT value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, de.desy.tine.types.FLTINT... values_) throws TineException
Fires an event to TINE, which will write (send) the current TINE data FLTINT values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the TINE FLTINT array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, double value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data double value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately after sending the value. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the double value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, double... values_) throws TineException
Fires an event to TINE, which will write (send) the current data double values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the double array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, de.desy.tine.types.NAME16II value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data NAME16II value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately after sending the value. If the
delay time is beyond the value of MAX_DELAY_TIME
then
it will wait for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the NAME16II value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, de.desy.tine.types.NAME16II... values_) throws TineException
Fires an event to TINE, which will write (send) the current data NAME16II values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the NAME16II array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, de.desy.tine.types.NAME32I value_, int delay_, DataExchange.ESend send_) throws TineException
Fires an event to TINE, which will write (send) the current data NAME32I value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
This method will wait after sending the value via TINE. A value of
zero or lower it will return immediately. If the delay time is beyond
the value of MAX_DELAY_TIME
then it will wait
for MAX_DELAY_TIME
milliseconds.
data_
- Is the current data element which will be send via TINE.value_
- Is the NAME32I value to be send.delay_
- The waiting time after the value is send.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final void fireEventSend(IEData data_, DataExchange.ESend send_, de.desy.tine.types.NAME32I... values_) throws TineException
Fires an event to TINE, which will write (send) the current data NAME32I values of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.send_
- This is an enumeration of ESend
. Its contents tells
this method if the data value should be calibrated or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.READ
is used.values_
- Is the NAME32I array value to be send.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final int fireEventRecvINT(IEData data_, DataExchange.ERecv receive_) throws TineException
Fires an event over TINE, which will read (receive) the current data integer value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.receive_
- This is the enumeration which tells this method if it
should use the calibration or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.WRITE
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final float fireEventRecvFLT(IEData data_, DataExchange.ERecv receive_) throws TineException
Fires an event to TINE, which will read (receive) the current float value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.receive_
- This is the enumeration which tells this method if it
should use the calibration or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.WRITE
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.public static final double fireEventRecvDBL(IEData data_, DataExchange.ERecv receive_) throws TineException
Fires an event to TINE, which will read (receive) the current data double value of the corresponding data element. The data element is only used to get the corresponding device name of the TINE call.
data_
- Is the current data element which will be send via TINE.receive_
- This is the enumeration which tells this method if it
should use the calibration or not. If this
argument is null
and you execute the data element on a CDI
server the element ETineProperty.WRITE
is used.TineException
- Is thrown if an error occurred and installing or
executing the synchronous TINE link failed.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft