|
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.TacoTangoDeviceDAODefaultImpl
public class TacoTangoDeviceDAODefaultImpl
Class Description:
This class is a wrapper for TACO device.
It is an interface between TANGO DeviceProxy and TACO device.
It replace the fr.esrf.TacoApi.TacoDevice class using JNI library abd use true
java classes found in Taco.jar (ESRF specific).
| Constructor Summary | |
|---|---|
TacoTangoDeviceDAODefaultImpl()
|
|
| Method Summary | |
|---|---|
DeviceData |
command_inout(TacoTangoDevice tacoDevice,
java.lang.String command,
DeviceData argin)
Excute a command on a TACO device |
CommandInfo[] |
commandListQuery(TacoTangoDevice tacoDevice)
|
CommandInfo |
commandQuery(TacoTangoDevice tacoDevice,
java.lang.String cmdname)
|
java.lang.String[] |
dev_inform(TacoTangoDevice tacoDevice)
Returns TACO device information. |
AttributeConfig[] |
get_attribute_config(TacoTangoDevice tacoDevice,
java.lang.String[] attrnames)
|
java.lang.String[] |
get_attribute_list(TacoTangoDevice tacoDevice)
|
DbDatum[] |
get_property(TacoTangoDevice tacoDevice,
java.lang.String[] propnames)
|
int |
get_rpc_protocol(TacoTangoDevice tacoDevice)
Return the dev_rpc_protocol use by TACO device |
int |
get_rpc_timeout(TacoTangoDevice tacoDevice)
Execute the dev_rpc_timeout TACO command to get RPC timeout. |
DevSource |
get_source(TacoTangoDevice tacoDevice)
returns the device data source |
java.lang.String[] |
infoToTango(TacoTangoDevice tacoDevice,
java.lang.String taco_info)
Taco --> Tango data convertion method |
void |
init(TacoTangoDevice tacoDevice,
java.lang.String devname,
java.lang.String nethost)
Constructor for a Taco Device Object. |
DeviceAttribute[] |
read_attribute(TacoTangoDevice tacoDevice,
java.lang.String[] attrnames)
|
void |
set_rpc_protocol(TacoTangoDevice tacoDevice,
int mode)
Execute the dev_rpc_protocol TACO command to change RPC protocol mode. |
void |
set_rpc_timeout(TacoTangoDevice tacoDevice,
int millis)
Execute the dev_rpc_timeout TACO command to set RPC timeout. |
void |
set_source(TacoTangoDevice tacoDevice,
DevSource src)
Set the device data source |
int |
tangoType(int taco_type)
Taco --> Tango data convertion method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TacoTangoDeviceDAODefaultImpl()
| Method Detail |
|---|
public void init(TacoTangoDevice tacoDevice,
java.lang.String devname,
java.lang.String nethost)
throws DevFailed
ITacoTangoDeviceDAO
init in interface ITacoTangoDeviceDAOdevname - the device namenethost - the $NETHOST (where Taco database is)
DevFailed
public DeviceData command_inout(TacoTangoDevice tacoDevice,
java.lang.String command,
DeviceData argin)
throws DevFailed
ITacoTangoDeviceDAO
command_inout in interface ITacoTangoDeviceDAOcommand - Command name to be executed on the deviceargin - Input command argument (Tango data)
DevFailed
public CommandInfo[] commandListQuery(TacoTangoDevice tacoDevice)
throws DevFailed
commandListQuery in interface ITacoTangoDeviceDAODevFailed
public CommandInfo commandQuery(TacoTangoDevice tacoDevice,
java.lang.String cmdname)
throws DevFailed
commandQuery in interface ITacoTangoDeviceDAODevFailed
public void set_rpc_protocol(TacoTangoDevice tacoDevice,
int mode)
throws DevFailed
ITacoTangoDeviceDAO
set_rpc_protocol in interface ITacoTangoDeviceDAOmode - RPC protocol mode to be seted
(TangoApi.ApiDefs.D_TCP or ApiDefs.TacoTangoDevice.D_TCP).
DevFailed
public int get_rpc_protocol(TacoTangoDevice tacoDevice)
throws DevFailed
ITacoTangoDeviceDAO
get_rpc_protocol in interface ITacoTangoDeviceDAODevFailed
public int get_rpc_timeout(TacoTangoDevice tacoDevice)
throws DevFailed
ITacoTangoDeviceDAO
get_rpc_timeout in interface ITacoTangoDeviceDAODevFailed
public void set_rpc_timeout(TacoTangoDevice tacoDevice,
int millis)
throws DevFailed
ITacoTangoDeviceDAO
set_rpc_timeout in interface ITacoTangoDeviceDAODevFailed
public java.lang.String[] dev_inform(TacoTangoDevice tacoDevice)
throws DevFailed
ITacoTangoDeviceDAO
dev_inform in interface ITacoTangoDeviceDAODevFailed
public DbDatum[] get_property(TacoTangoDevice tacoDevice,
java.lang.String[] propnames)
throws DevFailed
get_property in interface ITacoTangoDeviceDAODevFailed
public void set_source(TacoTangoDevice tacoDevice,
DevSource src)
throws DevFailed
ITacoTangoDeviceDAO
set_source in interface ITacoTangoDeviceDAOsrc - new data source (CACHE_DEV, CACHE or DEV).
DevFailedpublic DevSource get_source(TacoTangoDevice tacoDevice)
ITacoTangoDeviceDAO
get_source in interface ITacoTangoDeviceDAO
public java.lang.String[] get_attribute_list(TacoTangoDevice tacoDevice)
throws DevFailed
get_attribute_list in interface ITacoTangoDeviceDAODevFailed
public AttributeConfig[] get_attribute_config(TacoTangoDevice tacoDevice,
java.lang.String[] attrnames)
throws DevFailed
get_attribute_config in interface ITacoTangoDeviceDAODevFailed
public DeviceAttribute[] read_attribute(TacoTangoDevice tacoDevice,
java.lang.String[] attrnames)
throws DevFailed
read_attribute in interface ITacoTangoDeviceDAODevFailedpublic int tangoType(int taco_type)
ITacoTangoDeviceDAO
tangoType in interface ITacoTangoDeviceDAOtaco_type - Taco data
public java.lang.String[] infoToTango(TacoTangoDevice tacoDevice,
java.lang.String taco_info)
ITacoTangoDeviceDAO
infoToTango in interface ITacoTangoDeviceDAOtaco_info - Taco data
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||