|
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.AttributeProxy
public class AttributeProxy
Class Description: This class manage device connection for Tango attribute access.
| Field Summary |
|---|
| Fields inherited from interface fr.esrf.TangoApi.ApiDefs |
|---|
ALL_ASYNCH, ATT_R, ATT_W, CALLBACK, CMD, D_TCP, D_UDP, FROM_ATTR, FROM_CMD, FROM_DBASE, FROM_IOR, LOGGING_DEBUG, LOGGING_ERROR, LOGGING_FATAL, LOGGING_INFO, LOGGING_OFF, LOGGING_WARN, MISC, NO_TIMEOUT, POLLING, protocol_name, PULL_CALLBACK, PUSH_CALLBACK, TACO, TANGO |
| Constructor Summary | |
|---|---|
AttributeProxy(java.lang.String attname)
AttributeProxy constructor. |
|
| Method Summary | |
|---|---|
void |
delete_property(java.lang.String propname)
Delete a property for this object. |
void |
delete_property(java.lang.String[] propnames)
Delete a list of properties for this object. |
java.lang.String |
fullName()
Return full attribute name |
int |
get_idl_version()
|
AttributeInfoEx |
get_info_ex()
Get the attribute extended info. |
AttributeInfo |
get_info()
Get the attribute info. |
int |
get_polling_period()
Returns the polling period (in ms) for specified attribute. |
DbAttribute |
get_property()
Query the database for a device attribute property for this device. |
DeviceProxy |
getDeviceProxy()
|
DeviceDataHistory[] |
history()
Return the full history for attribute polled. |
DeviceDataHistory[] |
history(int nb)
Return the history for attribute polled. |
static void |
main(java.lang.String[] args)
Just a main method to check API methods. |
java.lang.String |
name()
Return attribute name |
long |
ping()
Ping the device proxy of this attribute. |
void |
poll(int period)
Add a attribute to be polled for the device. |
void |
put_property(DbDatum property)
Insert or update an attribute properties for this device. |
void |
put_property(DbDatum[] properties)
Insert or update an attribute properties for this device. |
int |
read_asynch()
Asynchronous read_attribute. |
void |
read_asynch(CallBack cb)
Asynchronous read_attribute using callback for reply. |
DeviceAttribute[] |
read_reply(int id)
Read Asynchronous read_attribute reply. |
DeviceAttribute[] |
read_reply(int id,
int timeout)
Read Asynchronous read_attribute reply. |
DeviceAttribute |
read()
Read the attribute value for the specified device. |
void |
set_info(AttributeInfo[] attr)
Update the attributes info for the specified device. |
void |
set_info(AttributeInfoEx[] attr)
Update the attributes extended info for the specified device. |
void |
set_timeout_millis(int millis)
|
DevState |
state()
Check state of the device proxy of this attribute. |
java.lang.String |
status()
Check status of the device proxy of this attribute. |
void |
stop_poll()
Remove attribute of polled object list |
int |
subscribe_event(int event,
CallBack callback,
java.lang.String[] filters)
Subscribe to an event. |
int |
write_asynch(DeviceAttribute attr)
Asynchronous write_attribute. |
int |
write_asynch(DeviceAttribute attr,
boolean forget)
Asynchronous write_attribute. |
void |
write_asynch(DeviceAttribute attr,
CallBack cb)
Asynchronous write_attribute using callback for reply. |
DeviceAttribute |
write_read_attribute(DeviceAttribute devattr)
Write and then read the attribute values, for the specified device. |
DeviceAttribute[] |
write_read_attribute(DeviceAttribute[] devattr)
Write and then read the attribute values, for the specified device. |
void |
write_reply(int id)
check for Asynchronous write_attribute reply. |
void |
write_reply(int id,
int timeout)
check for Asynchronous write_attribute reply. |
void |
write(DeviceAttribute devattr)
Write the attribute value for the specified device. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeProxy(java.lang.String attname)
throws DevFailed
attname - name of the attribute or its alias.
DevFailed| Method Detail |
|---|
public void set_timeout_millis(int millis)
throws DevFailed
DevFailedpublic DeviceProxy getDeviceProxy()
public int get_idl_version()
throws DevFailed
DevFailedpublic java.lang.String fullName()
public java.lang.String name()
public long ping()
throws DevFailed
DevFailed
public DevState state()
throws DevFailed
DevFailed
public java.lang.String status()
throws DevFailed
DevFailed
public DbAttribute get_property()
throws DevFailed
DevFailed
public void put_property(DbDatum property)
throws DevFailed
property - attribute property (names and values).
DevFailed
public void put_property(DbDatum[] properties)
throws DevFailed
properties - attribute properties (names and values).
DevFailed
public void delete_property(java.lang.String propname)
throws DevFailed
propname - Property name.
DevFailed
public void delete_property(java.lang.String[] propnames)
throws DevFailed
propnames - Property names.
DevFailed
public AttributeInfo get_info()
throws DevFailed
DevFailed
public AttributeInfoEx get_info_ex()
throws DevFailed
DevFailed
public void set_info(AttributeInfo[] attr)
throws DevFailed
attr - the attributes info.
DevFailed
public void set_info(AttributeInfoEx[] attr)
throws DevFailed
attr - the attributes info.
DevFailed
public DeviceAttribute read()
throws DevFailed
DevFailed
public void write(DeviceAttribute devattr)
throws DevFailed
devattr - attribute name and value.
DevFailed
public DeviceAttribute write_read_attribute(DeviceAttribute devattr)
throws DevFailed
devattr - attribute names and values.
DevFailed
public DeviceAttribute[] write_read_attribute(DeviceAttribute[] devattr)
throws DevFailed
devattr - attribute names and values.
DevFailed
public DeviceDataHistory[] history(int nb)
throws DevFailed
nb - nb data to read.
DevFailed
public DeviceDataHistory[] history()
throws DevFailed
DevFailed
public void poll(int period)
throws DevFailed
period - polling period.
DevFailed
public int get_polling_period()
throws DevFailed
DevFailed
public void stop_poll()
throws DevFailed
DevFailed
public int read_asynch()
throws DevFailed
DevFailed
public void read_asynch(CallBack cb)
throws DevFailed
cb - a CallBack object instance.
DevFailed
public DeviceAttribute[] read_reply(int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by read_attribute_asynch).timeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public DeviceAttribute[] read_reply(int id)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public int write_asynch(DeviceAttribute attr)
throws DevFailed
attr - Attribute value (name, writing value...)
DevFailed
public int write_asynch(DeviceAttribute attr,
boolean forget)
throws DevFailed
attr - Attribute value (name, writing value...)forget - forget the response if true
DevFailed
public void write_asynch(DeviceAttribute attr,
CallBack cb)
throws DevFailed
attr - Attribute values (name, writing value...)cb - a CallBack object instance.
DevFailed
public void write_reply(int id)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public void write_reply(int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by write_attribute_asynch).timeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public int subscribe_event(int event,
CallBack callback,
java.lang.String[] filters)
throws DevFailed
event - event name.callback - event callback.
DevFailedpublic static void main(java.lang.String[] args)
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||