|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.TangoApi.helpers.AttributeHelper
public class AttributeHelper
This class provide useful static methods to insert or extract data from DeviceAttribute
| Constructor Summary | |
|---|---|
AttributeHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
extract(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to an Object |
static java.lang.Object[] |
extractArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a list of Object |
static java.lang.Boolean |
extractToBoolean(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a Boolean. |
static boolean[] |
extractToBooleanArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a boolean Array. |
static byte[] |
extractToByteArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a byte Array. |
static DevState |
extractToDevState(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a DevState. |
static DevState[] |
extractToDevStateArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a DevState Array. |
static java.lang.Double |
extractToDouble(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a Double. |
static double[] |
extractToDoubleArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a double Array. |
static java.lang.Float |
extractToFloat(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a Float |
static float[] |
extractToFloatArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a float Array. |
static java.lang.Integer |
extractToInteger(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to an Integer |
static int[] |
extractToIntegerArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a int Array. |
static java.lang.Long |
extractToLong(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a Long |
static long[] |
extractToLongArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a long Array. |
static java.lang.Short |
extractToShort(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a Short |
static short[] |
extractToShortArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a short Array. |
static java.lang.String |
extractToString(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a String |
static java.lang.String[] |
extractToStringArray(DeviceAttribute deviceAttributeRead)
Extract data from DeviceAttribute to a String Array. |
static void |
fillDbDatumFromDeviceAttribute(DbDatum dbDatum,
DeviceAttribute deviceAttribute)
Fill DbDatum from value of deviceAttribute Doesn't work for case TangoConst.Tango_DEVVAR_CHARARRAY: case TangoConst.Tango_DEVVAR_ULONGARRAY: case TangoConst.Tango_DEV_LONG: case TangoConst.Tango_DEV_ULONG: |
static void |
fillDeviceAttributeFromDbDatum(DeviceAttribute deviceAttribute,
DbDatum dbDatum)
Fill deviceAttribute from value of DbDatum Doesn't work for case TangoConst.Tango_DEVVAR_CHARARRAY: case TangoConst.Tango_DEVVAR_ULONGARRAY: case TangoConst.Tango_DEV_LONG: case TangoConst.Tango_DEV_ULONG: |
static void |
insert(java.lang.Object value,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from an object |
static void |
insert(java.lang.Object value,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from an Object |
static void |
insertFromArray(java.lang.Object[] values,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from an Object Array |
static void |
insertFromBoolean(java.lang.Boolean booleanValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Boolean. |
static void |
insertFromBooleanArray(boolean[] booleanValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a boolean Array. |
static void |
insertFromDevState(DevState devStateValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a DevState. |
static void |
insertFromDouble(java.lang.Double doubleValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Double. |
static void |
insertFromDoubleArray(double[] doubleValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a double Array. |
static void |
insertFromFloat(java.lang.Float floatValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Float. |
static void |
insertFromFloatArray(float[] floatValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a float Array. |
static void |
insertFromInteger(java.lang.Integer integerValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Integer. |
static void |
insertFromIntegerArray(int[] intValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a int Array. |
static void |
insertFromLong(java.lang.Long longValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Long. |
static void |
insertFromLongArray(long[] longValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a long Array. |
static void |
insertFromShort(java.lang.Short shortValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a Short object. |
static void |
insertFromShortArray(short[] shortValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a short Array. |
static void |
insertFromString(java.lang.String stringValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a String. |
static void |
insertFromStringArray(java.lang.String[] stringValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
Insert data in DeviceAttribute from a String Array. |
static void |
insertFromWAttribute(WAttribute wAttributeValue,
DeviceAttribute deviceAttributeWritten)
Insert data in DeviceAttribute from a WAttribute. |
static void |
set_value(java.lang.Object[] valueArray,
Attribute attribute,
int dimX,
int dimY)
Set value with an object on Attribute |
static void |
set_value(java.lang.Object value,
Attribute attribute)
Set value with an object on Attribute |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeHelper()
| Method Detail |
|---|
public static void insert(java.lang.Object value,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
value - the value to write on DeviceAttribute, possibles Class Short,
String, Long, Float, Boolean, Integer, Double, DevState,
WAttribute or Vector.deviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void set_value(java.lang.Object value,
Attribute attribute)
throws DevFailed
value - the value to set on Attribute of JServer, possibles Class :
Short, String, Long, Float, Boolean, Integer, Double,
DevState.attribute - the attribute to set
DevFailed
public static void set_value(java.lang.Object[] valueArray,
Attribute attribute,
int dimX,
int dimY)
throws DevFailed
valueArray - the value to set on Attribute of JServer, possibles Class :
Short, String, Long, Float, Boolean, Integer, Double,
DevState.attribute - the attribute to setdimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insert(java.lang.Object value,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
value - the value to write on DeviceAttribute, possibles Class :
Short, String, Long, Float, Boolean, Integer, Double, DevState
or Vector.deviceAttributeWritten - the DeviceAttribute attribute to writedimX - the custom X dimension of the attribute to write use only if
it is a VectordimY - the custom Y dimension of the attribute to write use only if
it is a Vector
DevFailed
public static java.lang.Object extract(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute to read
DevFailed
public static java.lang.Object[] extractArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute to read
DevFailed
public static void insertFromShort(java.lang.Short shortValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
shortValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static java.lang.Short extractToShort(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.String extractToString(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.Integer extractToInteger(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.Long extractToLong(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.Float extractToFloat(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.Boolean extractToBoolean(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.Double extractToDouble(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static DevState extractToDevState(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static short[] extractToShortArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static java.lang.String[] extractToStringArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static int[] extractToIntegerArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static long[] extractToLongArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static float[] extractToFloatArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static boolean[] extractToBooleanArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static byte[] extractToByteArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static double[] extractToDoubleArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static DevState[] extractToDevStateArray(DeviceAttribute deviceAttributeRead)
throws DevFailed
deviceAttributeRead - the DeviceAttribute attribute to read
DevFailed
public static void insertFromShortArray(short[] shortValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
shortValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromStringArray(java.lang.String[] stringValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
stringValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromIntegerArray(int[] intValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
intValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromLongArray(long[] longValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
longValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromFloatArray(float[] floatValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
floatValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromBooleanArray(boolean[] booleanValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
booleanValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromDoubleArray(double[] doubleValues,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
doubleValues - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static void insertFromString(java.lang.String stringValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
stringValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromInteger(java.lang.Integer integerValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
integerValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromLong(java.lang.Long longValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
longValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromFloat(java.lang.Float floatValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
floatValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromBoolean(java.lang.Boolean booleanValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
booleanValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromDouble(java.lang.Double doubleValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
doubleValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromWAttribute(WAttribute wAttributeValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
wAttributeValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromDevState(DevState devStateValue,
DeviceAttribute deviceAttributeWritten)
throws DevFailed
devStateValue - the value to insert on DeviceAttributedeviceAttributeWritten - the DeviceAttribute attribute to write
DevFailed
public static void insertFromArray(java.lang.Object[] values,
DeviceAttribute deviceAttributeWritten,
int dimX,
int dimY)
throws DevFailed
values - the value to insert on DeviceAttribute possibles classe Short,
String, Long, Float, Boolean, Integer, Double.deviceAttributeWritten - the DeviceAttribute attribute to writedimX - the x dimension of the attributedimY - the y dimension of the attribute
DevFailed
public static final void fillDbDatumFromDeviceAttribute(DbDatum dbDatum,
DeviceAttribute deviceAttribute)
throws DevFailed
dbDatum - the DbDatum to filldeviceAttribute - the DeviceAttribute that contains value
DevFailed
public static final void fillDeviceAttributeFromDbDatum(DeviceAttribute deviceAttribute,
DbDatum dbDatum)
throws DevFailed
deviceAttribute - the DeviceAttribute to filldbDatum - the DbDatum that contains value
DevFailed
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||