TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoApi
Interface ITacoTangoDeviceDAO

All Known Implementing Classes:
TacoTangoDeviceDAODefaultImpl

public interface ITacoTangoDeviceDAO

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).

Version:
$Revision: 1.1 $
Author:
verdier

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
 

Method Detail

init

void init(TacoTangoDevice tacoDevice,
          java.lang.String devname,
          java.lang.String nethost)
          throws DevFailed
Constructor for a Taco Device Object.

Parameters:
devname - the device name
nethost - the $NETHOST (where Taco database is)
Throws:
DevFailed

command_inout

DeviceData command_inout(TacoTangoDevice tacoDevice,
                         java.lang.String command,
                         DeviceData argin)
                         throws DevFailed
Excute a command on a TACO device

Parameters:
command - Command name to be executed on the device
argin - Input command argument (Tango data)
Returns:
Output command argument (Tango data)
Throws:
DevFailed

commandListQuery

CommandInfo[] commandListQuery(TacoTangoDevice tacoDevice)
                               throws DevFailed
Throws:
DevFailed

commandQuery

CommandInfo commandQuery(TacoTangoDevice tacoDevice,
                         java.lang.String cmdname)
                         throws DevFailed
Throws:
DevFailed

set_rpc_protocol

void set_rpc_protocol(TacoTangoDevice tacoDevice,
                      int mode)
                      throws DevFailed
Execute the dev_rpc_protocol TACO command to change RPC protocol mode.

Parameters:
mode - RPC protocol mode to be seted (TangoApi.ApiDefs.D_TCP or ApiDefs.TacoTangoDevice.D_TCP).
Throws:
DevFailed

get_rpc_protocol

int get_rpc_protocol(TacoTangoDevice tacoDevice)
                     throws DevFailed
Return the dev_rpc_protocol use by TACO device

Returns:
RPC protocol used (TangoApi.ApiDefs.D_TCP or ApiDefs.TacoTangoDevice.D_TCP).
Throws:
DevFailed

get_rpc_timeout

int get_rpc_timeout(TacoTangoDevice tacoDevice)
                    throws DevFailed
Execute the dev_rpc_timeout TACO command to get RPC timeout.

Throws:
DevFailed

set_rpc_timeout

void set_rpc_timeout(TacoTangoDevice tacoDevice,
                     int millis)
                     throws DevFailed
Execute the dev_rpc_timeout TACO command to set RPC timeout.

Throws:
DevFailed

dev_inform

java.lang.String[] dev_inform(TacoTangoDevice tacoDevice)
                              throws DevFailed
Returns TACO device information.

Returns:
TACO device information as String array.
  • Device name.
  • Class name
  • Device type
  • Device server name
  • Host name
  • Nethost name
    Throws:
    DevFailed

  • get_property

    DbDatum[] get_property(TacoTangoDevice tacoDevice,
                           java.lang.String[] propnames)
                           throws DevFailed
    Throws:
    DevFailed

    set_source

    void set_source(TacoTangoDevice tacoDevice,
                    DevSource src)
                    throws DevFailed
    Set the device data source

    Parameters:
    src - new data source (CACHE_DEV, CACHE or DEV).
    Throws:
    DevFailed

    get_source

    DevSource get_source(TacoTangoDevice tacoDevice)
    returns the device data source

    Returns:
    data source (CACHE_DEV, CACHE or DEV).

    get_attribute_list

    java.lang.String[] get_attribute_list(TacoTangoDevice tacoDevice)
                                          throws DevFailed
    Throws:
    DevFailed

    get_attribute_config

    AttributeConfig[] get_attribute_config(TacoTangoDevice tacoDevice,
                                           java.lang.String[] attrnames)
                                           throws DevFailed
    Throws:
    DevFailed

    read_attribute

    DeviceAttribute[] read_attribute(TacoTangoDevice tacoDevice,
                                     java.lang.String[] attrnames)
                                     throws DevFailed
    Throws:
    DevFailed

    tangoType

    int tangoType(int taco_type)
    Taco --> Tango data convertion method

    Parameters:
    taco_type - Taco data
    Returns:
    the TANGO converted data

    infoToTango

    java.lang.String[] infoToTango(TacoTangoDevice tacoDevice,
                                   java.lang.String taco_info)
    Taco --> Tango data convertion method

    Parameters:
    taco_info - Taco data
    Returns:
    the TANGO converted data
    • Device name.
    • Class name
    • Device type
    • Device server name
    • Host name

    TANGO Java API
    ( TangORB-7.3.3.jar)