|
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.TangoDs.Attribute
public class Attribute
This class represents a Tango attribute.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Attribute(java.util.Vector prop_list,
Attr tmp_attr,
java.lang.String dev_name)
Create a new Attribute object. |
|
| Method Summary | |
|---|---|
boolean |
check_alarm()
Check if the attribute read value is below/above the larm level. |
int |
get_assoc_ind()
Get index of the associated writable attribute |
java.lang.String |
get_assoc_name()
Get name of the associated writable attribute |
AttrDataFormat |
get_data_format()
Get attribute data format |
int |
get_data_size()
Get attribute data format |
int |
get_data_type()
Get attribute data type |
TimeVal |
get_date()
|
java.lang.String |
get_name()
Get attribute name |
void |
get_properties(AttributeConfig conf)
Get attribute properties. |
AttrQuality |
get_quality()
Get attribute data quality |
TimeVal |
get_when()
Get attribute date |
AttrWriteType |
get_writable()
Get the attribute write type |
boolean |
is_alarmed()
Check if the attribute has an alarm value defined. |
boolean |
is_max_alarm()
Check if the attribute is in maximum alarm condition . |
boolean |
is_min_alarm()
Check if the attribute is in minimum alarm condition . |
boolean |
is_writ_associated()
Check if the attribute has an associated writable attribute. |
void |
set_assoc_ind(int val)
Set index of the associated writable attribute |
void |
set_date(TimeVal date)
|
void |
set_quality(AttrQuality qua)
Set attribute data quality |
void |
set_value(boolean p_data)
Set internal attribute value (for boolean attribute data type). |
void |
set_value(boolean[] p_data,
int x)
Set internal attribute value (for boolean attribute data type). |
void |
set_value(boolean[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevBoolean attribute data type). |
void |
set_value(DevEncoded p_data)
Set internal attribute value (for DevEncoded attribute data type). |
void |
set_value(DevEncoded[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevEncoded attribute data type). |
void |
set_value(DevState p_data)
Set internal attribute value (for DevState attribute data type). |
void |
set_value(DevState[] p_data,
int x)
Set internal attribute value (for DevState attribute data type). |
void |
set_value(DevState[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevState attribute data type). |
void |
set_value(double p_data)
Set internal attribute value (for double attribute data type). |
void |
set_value(double[] p_data,
int x)
Set internal attribute value (for double attribute data type). |
void |
set_value(double[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevDouble attribute data type). |
void |
set_value(float[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevFloat attribute data type). |
void |
set_value(int p_data)
Set internal attribute value (for int attribute data type). |
void |
set_value(int[] p_data,
int x)
Set internal attribute value (for int attribute data type). |
void |
set_value(int[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevLong attribute data type). |
void |
set_value(long p_data)
Set internal attribute value (for int attribute data type). |
void |
set_value(long[] p_data,
int x)
Set internal attribute value (for int attribute data type). |
void |
set_value(long[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevLong64 attribute data type). |
void |
set_value(short p_data)
Set internal attribute value (for short attribute data type). |
void |
set_value(short[] p_data,
int x)
Set internal attribute value (for short attribute data type). |
void |
set_value(short[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevShort attribute data type). |
void |
set_value(java.lang.String p_data)
Set internal attribute value (for String attribute data type). |
void |
set_value(java.lang.String[] p_data,
int x)
Set internal attribute value (for String attribute data type). |
void |
set_value(java.lang.String[] p_data,
int x,
int y)
Set internal attribute value (for Tango_DevString attribute data type). |
java.lang.String |
toString()
Returns a string representation of this attribute. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attribute(java.util.Vector prop_list,
Attr tmp_attr,
java.lang.String dev_name)
throws DevFailed
prop_list - The attribute properties list. Each property is an object
of the AttrProperty classtmp_attr - The temporary attribute objectdev_name - The device name
DevFailed - If the command sent to the database failed.
Click here to read
DevFailed exception specification| Method Detail |
|---|
public boolean is_writ_associated()
public boolean is_alarmed()
public void get_properties(AttributeConfig conf)
conf - A AttributeConfig object.
public void set_value(DevState[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(DevEncoded[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(boolean[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(short[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(int[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(long[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(float[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(double[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(java.lang.String[] p_data,
int x,
int y)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimensiony - The attribuute y dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(DevState p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(DevEncoded p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(boolean p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(short p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(int p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(long p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(double p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(java.lang.String p_data)
throws DevFailed
p_data - The attribute read value
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(DevState[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(boolean[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(short[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(int[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(long[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(double[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public void set_value(java.lang.String[] p_data,
int x)
throws DevFailed
p_data - The attribute read valuex - The attribute x dimension
DevFailed - If the attribute data type is not coherent.
Click here to read
DevFailed exception specification
public boolean check_alarm()
throws DevFailed
DevFailed - If no alarm level is defined.
Click here to read
DevFailed exception specificationpublic java.lang.String toString()
toString in class java.lang.Objectpublic AttrWriteType get_writable()
public java.lang.String get_name()
public java.lang.String get_assoc_name()
public int get_data_type()
public boolean is_min_alarm()
public boolean is_max_alarm()
public AttrDataFormat get_data_format()
public int get_assoc_ind()
public void set_assoc_ind(int val)
val - The new index in the main attribute vector of the associated writable
attributepublic int get_data_size()
public AttrQuality get_quality()
public void set_quality(AttrQuality qua)
qua - The new attribute data qualitypublic TimeVal get_when()
public TimeVal get_date()
public void set_date(TimeVal date)
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||