TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoDs
Class DeviceImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by fr.esrf.Tango.Device_2POA
          extended by fr.esrf.TangoDs.DeviceImpl
All Implemented Interfaces:
Device_2Operations, DeviceOperations, TangoConst, org.omg.CORBA.portable.InvokeHandler
Direct Known Subclasses:
DServer

public abstract class DeviceImpl
extends Device_2POA
implements TangoConst

Base class for all TANGO device


Field Summary
 
Fields inherited from interface fr.esrf.TangoDs.TangoConst
ACCESS_READ, ACCESS_SERVICE, ACCESS_WRITE, ARCHIVE_EVENT, ATT_CONF_EVENT, Attr_AdmName, Attr_Description, Attr_Name, Attr_State, Attr_Status, Attr_Unknown, ATTRIBUTE, BY_CLASS, BY_DEVICE, BY_PROCESS, CHANGE_EVENT, COMMAND, CONTROL_SYSTEM, DATA_READY_EVENT, DEFAULT_LOCK_VALIDITY, eventNames, LOGGING_CONSOLE_TARGET, LOGGING_CONSOLE_TARGET_ID, LOGGING_DEBUG, LOGGING_DEF_RFT, LOGGING_DEVICE_TARGET, LOGGING_DEVICE_TARGET_ID, LOGGING_ERROR, LOGGING_FATAL, LOGGING_FILE_TARGET, LOGGING_FILE_TARGET_ID, LOGGING_INFO, LOGGING_LEVELS, LOGGING_MAX_RFT, LOGGING_MIN_RFT, LOGGING_OFF, LOGGING_SEPARATOR, LOGGING_UNKNOWN_TARGET_ID, LOGGING_WARN, NO_SYNC, NOT_STATELESS, NotANumber, Op_BlackBox, Op_Command, Op_Command_2, Op_Command_inout, Op_Command_inout_2, Op_Command_inout_history_2, Op_Command_list, Op_Command_list_2, Op_Get_Attr_Config, Op_Get_Attr_Config_2, Op_Info, Op_Ping, Op_Read_Attr, Op_Read_Attr_2, Op_Read_Attr_history_2, Op_Set_Attr_Config, Op_Unknown, Op_Write_Attr, PERIODIC_EVENT, QUALITY_EVENT, Req_Attribute, Req_Operation, Req_Unknown, SERVICE_PROP_NAME, STATELESS, Tango_AllAttr, Tango_AllAttr_3, Tango_AlrmValueNotSpec, Tango_AssocWritNotSpec, Tango_AttrDataFormatName, Tango_CLNT_TIMEOUT, Tango_CmdArgTypeName, Tango_CONST_DEV_STRING, Tango_DbObjName, Tango_DEFAULT_POLL_OLD_FACTOR, Tango_DEFAULT_TIMEOUT, Tango_DEFAULT_TIMEOUT_SEC, Tango_DefaultBlackBoxDepth, Tango_DefaultDocUrl, Tango_DefaultPollRingDepth, Tango_DefaultWritableProp, Tango_DELTA_T, Tango_DescNotSet, Tango_DescNotSpec, Tango_DEV_BOOLEAN, Tango_DEV_CHAR, Tango_DEV_DOUBLE, Tango_DEV_ENCODED, Tango_DEV_FLOAT, Tango_DEV_INT, Tango_DEV_LONG, Tango_DEV_LONG64, Tango_DEV_SHORT, Tango_DEV_STATE, Tango_DEV_STRING, Tango_DEV_UCHAR, Tango_DEV_ULONG, Tango_DEV_ULONG64, Tango_DEV_USHORT, Tango_DEV_VOID, Tango_DevStateName, Tango_DEVVAR_CHARARRAY, Tango_DEVVAR_DOUBLEARRAY, Tango_DEVVAR_DOUBLESTRINGARRAY, Tango_DEVVAR_FLOATARRAY, Tango_DEVVAR_LONG64ARRAY, Tango_DEVVAR_LONGARRAY, Tango_DEVVAR_LONGSTRINGARRAY, Tango_DEVVAR_SHORTARRAY, Tango_DEVVAR_STRINGARRAY, Tango_DEVVAR_ULONG64ARRAY, Tango_DEVVAR_ULONGARRAY, Tango_DEVVAR_USHORTARRAY, Tango_DevVersion, Tango_DISCARD_THRESHOLD, Tango_DispUnitNotSpec, Tango_DSDeviceDomain, Tango_EXPERT_ATTR, Tango_EXPERT_CMD, Tango_FormatNotSpec, Tango_InitialOutput, Tango_LabelNotSpec, TANGO_LOG_PATH, Tango_MAX_TRANSFER_SIZE, Tango_MaxServerNameLength, Tango_MIN_POLL_PERIOD, Tango_OPERATOR_ATTR, Tango_OPERATOR_CMD, Tango_POLL_ADD_OBJ, Tango_POLL_ATTR, Tango_POLL_CMD, Tango_POLL_REM_DEV, Tango_POLL_REM_OBJ, Tango_POLL_START, Tango_POLL_STOP, Tango_POLL_UPD_PERIOD, Tango_PollAttribute, Tango_PollCommand, Tango_QualityName, Tango_REL_1, Tango_REL_2, Tango_ResNotDefined, Tango_StdUnitNotSpec, Tango_SysProperty, Tango_TG_IMP_MINOR_DEVFAILED, Tango_TG_IMP_MINOR_NON_DEVFAILED, Tango_TG_IMP_MINOR_TO, Tango_TgLibVers, Tango_UnitNotSpec, USER_EVENT
 
Constructor Summary
DeviceImpl(DeviceClass cl, java.lang.String d_name)
          Constructs a newly allocated DeviceImpl object from its name.
DeviceImpl(DeviceClass cl, java.lang.String d_name, java.lang.String desc)
          Constructs a newly allocated DeviceImpl object from its name and its description.
DeviceImpl(DeviceClass cl, java.lang.String d_name, java.lang.String de, DevState st, java.lang.String sta)
          Constructs a newly allocated DeviceImpl object from all its creation parameters.
 
Method Summary
 org.omg.PortableServer.POA _default_POA()
          Return device POA Return a reference to the device POA.
 void add_attribute(Attr new_attr)
          Add a new attribute to the device attribute list.
 java.lang.String adm_name()
          Get administration device name.
 void always_executed_hook()
          Hook method.
 java.lang.String[] black_box(int n)
          Get device black box.
 org.omg.CORBA.Any command_inout_2(java.lang.String in_cmd, org.omg.CORBA.Any in_data, DevSource source)
           
 DevCmdHistory[] command_inout_history_2(java.lang.String command, int n)
           
 org.omg.CORBA.Any command_inout(java.lang.String in_cmd, org.omg.CORBA.Any in_any)
          Execute a command.
 DevCmdInfo_2[] command_list_query_2()
          Get device command list.
 DevCmdInfo[] command_list_query()
          Get device command list.
 DevCmdInfo_2 command_query_2(java.lang.String command)
          Get device command list.
 DevCmdInfo command_query(java.lang.String command)
          Get command info.
abstract  void delete_device()
          This method is called during device Init an the DevRestart command.
 java.lang.String description()
          Get device description.
 DevState dev_state()
          Get device state.
 java.lang.String dev_status()
          Get device status.
 AttributeConfig_2[] get_attribute_config_2(java.lang.String[] names)
           
 AttributeConfig[] get_attribute_config(java.lang.String[] names)
          Get attribute(s) configuration.
 DbDevice get_db_device()
          Get the reference to the associated DbDevice object Return the DbDevice object reference
 DeviceClass get_device_class()
          Get device class object reference.
 org.apache.log4j.Logger get_logger()
          Returns the device's logger
 java.lang.String get_name()
          Get device name.
 byte[] get_obj_id()
          Get the associated CORBA object identifier
 DevState get_state()
          Get device state.
 java.lang.String get_status()
          Get device status.
 DevInfo info()
          Get device info.
abstract  void init_device()
          Intialise a device.
 void init_logger()
          Initialize the logging for this device
 java.lang.String name()
          Get device name.
 void ping()
          Ping the device to check if it is still alive.
 void read_attr_hardware(java.util.Vector attr_list)
          Read the hardware to return attribute value(s).
 void read_attr(Attribute attr)
          Set the attribute read value.
 DevAttrHistory[] read_attribute_history_2(java.lang.String name, int n)
           
 AttributeValue[] read_attributes_2(java.lang.String[] names, DevSource source)
          Read attribute(s) value.
 AttributeValue[] read_attributes(java.lang.String[] names)
          Read attribute(s) value.
 void remove_attribute(java.lang.String attname)
          Remove an attribute on the device attribute list.
 void set_attribute_config(AttributeConfig[] new_conf)
          Set attribute(s) configuration.
 void set_device_attr(MultiAttribute new_multi_attr)
          Set device state.
 void set_obj_id(byte[] id)
          Set the associated CORBA object identifier
 void set_poll_ring_depth(int size)
           
 void set_polled_attr(java.lang.String[] s)
           
 void set_polled_cmd(java.lang.String[] s)
           
 void set_state(DevState new_state)
          Set device state.
 void set_status(java.lang.String new_status)
          Set device status.
 void start_logging()
          Restore logging level to its backup value
 DevState state()
          Get device state.
 java.lang.String status()
          Get device status.
 void stop_logging()
          Backup current logging level then set it to OFF
 void write_attr_hardware(java.util.Vector attr_list)
          Write the hardware for attributes.
 void write_attributes(AttributeValue[] values)
          Write attribute(s).
 
Methods inherited from class fr.esrf.Tango.Device_2POA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceImpl

public DeviceImpl(DeviceClass cl,
                  java.lang.String d_name,
                  java.lang.String de,
                  DevState st,
                  java.lang.String sta)
           throws DevFailed
Constructs a newly allocated DeviceImpl object from all its creation parameters. The device is constructed from its name, its description, an original state and status

Parameters:
cl - Reference to the device class object
d_name - The device name
de - The device description field
st - The device creation state
sta - The device creation status
Throws:
DevFailed - Re-throw of the exception thrown during the creation of the multi-attribute object. Click here to read DevFailed exception specification

DeviceImpl

public DeviceImpl(DeviceClass cl,
                  java.lang.String d_name)
           throws DevFailed
Constructs a newly allocated DeviceImpl object from its name. The device description field is set to A Tango device. The device state is set to unknown and the device status is set to Not Initialised

Parameters:
cl - Reference to the device class object
d_name - The device name
Throws:
DevFailed - Re-throw of the exception thrown during the creation of the multi-attribute object. Click here to read DevFailed exception specification

DeviceImpl

public DeviceImpl(DeviceClass cl,
                  java.lang.String d_name,
                  java.lang.String desc)
           throws DevFailed
Constructs a newly allocated DeviceImpl object from its name and its description. The device state is set to unknown and the device status is set to Not Initialised

Parameters:
cl - Reference to the device class object
d_name - The device name
desc - The device description
Throws:
DevFailed - Re-throw of the exception thrown during the creation of the multi-attribute object. Click here to read DevFailed exception specification
Method Detail

command_inout

public org.omg.CORBA.Any command_inout(java.lang.String in_cmd,
                                       org.omg.CORBA.Any in_any)
                                throws DevFailed
Execute a command. It's the master method executed when a "command_inout" CORBA operation is requested by a client. It updates the device black-box, call the TANGO command handler and returned the output Any

Specified by:
command_inout in interface DeviceOperations
Parameters:
in_cmd - The command name
in_any - The command input data packed in a CORBA Any
Returns:
The command output data packed in a CORBA Any object
Throws:
DevFailed - Re-throw of the exception thrown by the command_handler method. Click here to read DevFailed exception specification

command_inout_2

public org.omg.CORBA.Any command_inout_2(java.lang.String in_cmd,
                                         org.omg.CORBA.Any in_data,
                                         DevSource source)
                                  throws DevFailed,
                                         org.omg.CORBA.SystemException
Specified by:
command_inout_2 in interface Device_2Operations
Throws:
DevFailed
org.omg.CORBA.SystemException

command_inout_history_2

public DevCmdHistory[] command_inout_history_2(java.lang.String command,
                                               int n)
                                        throws DevFailed,
                                               org.omg.CORBA.SystemException
Specified by:
command_inout_history_2 in interface Device_2Operations
Throws:
DevFailed
org.omg.CORBA.SystemException

name

public java.lang.String name()
Get device name. It's the master method executed when the device name is requested via a CORBA attribute. It updates the device black-box and return the device name

Specified by:
name in interface DeviceOperations
Returns:
The device name

adm_name

public java.lang.String adm_name()
Get administration device name. It's the master method executed when the administration device name is requested via a CORBA attribute. It updates the device black-box and return the administration device name

Specified by:
adm_name in interface DeviceOperations
Returns:
The administration device name

description

public java.lang.String description()
Get device description. It's the master method executed when the device description is requested via a CORBA attribute. It updates the device black-box and return the device description field

Specified by:
description in interface DeviceOperations
Returns:
The device description

state

public DevState state()
Get device state. It's the master method executed when the device state is requested via a CORBA attribute. It updates the device black-box and return the device state. This method calls the dev_state device method but catch all the execption and does not re-throw them because exception can't be thrown to a client for CORBA attribute

Specified by:
state in interface DeviceOperations
Returns:
The device state

status

public java.lang.String status()
Get device status. It's the master method executed when the device status is requested via a CORBA attribute. It updates the device black-box and return the device state. This method calls the dev_status device method but catch all the execption and does not re-throw them because exception can't be thrown to a client for CORBA attribute

Specified by:
status in interface DeviceOperations
Returns:
The device status

black_box

public java.lang.String[] black_box(int n)
                             throws DevFailed
Get device black box. It's the master method executed when the device black box is requested. It reads the device black box, update it and return black-box data to the client

Specified by:
black_box in interface DeviceOperations
Parameters:
n - The number of actions description which must be returned to the client. The number of returned element is limited to the number of elements stored in the black-box or to the complete black-box depth if it is full.
Returns:
The device black box with one String for each action requested on the device
Throws:
DevFailed - If it is not possible to read the device black box. Click here to read DevFailed exception specification

command_list_query

public DevCmdInfo[] command_list_query()
Get device command list. Invoked when the client request the command_list_query CORBA operation. It updates the device black box and returns an array of DevCmdInfo object with one object for each command.

Specified by:
command_list_query in interface DeviceOperations
Returns:
The device command list. One DevCmdInfo is initialised for each device command

command_list_query_2

public DevCmdInfo_2[] command_list_query_2()
Get device command list. Invoked when the client request the command_list_query CORBA operation. It updates the device black box and returns an array of DevCmdInfo object with one object for each command.

Specified by:
command_list_query_2 in interface Device_2Operations
Returns:
The device command list. One DevCmdInfo is initialised for each device command

command_query_2

public DevCmdInfo_2 command_query_2(java.lang.String command)
                             throws DevFailed,
                                    org.omg.CORBA.SystemException
Get device command list. Invoked when the client request the command_list_query CORBA operation. It updates the device black box and returns an array of DevCmdInfo object with one object for specified command.

Specified by:
command_query_2 in interface Device_2Operations
Parameters:
command - The specified command name.
Returns:
The device command list. One DevCmdInfo is initialised for each device command
Throws:
DevFailed
org.omg.CORBA.SystemException

command_query

public DevCmdInfo command_query(java.lang.String command)
                         throws DevFailed
Get command info. Invoked when the client request the command_query CORBA operation. It updates the device black box and returns a DevCmdInfo object for the command with name passed to the method as parameter.

Specified by:
command_query in interface DeviceOperations
Parameters:
command - The command name
Returns:
A DevCmdInfo initialised for the wanted command
Throws:
DevFailed - Thrown if the command does not exist. Click here to read DevFailed exception specification

info

public DevInfo info()
Get device info. Invoked when the client request the info CORBA operation. It updates the black box and returns a DevInfo object with miscellaneous device info

Specified by:
info in interface DeviceOperations
Returns:
A DevInfo object

ping

public void ping()
Ping the device to check if it is still alive. Invoked when the client request the ping CORBA operation. It updates the device black box and simply returns

Specified by:
ping in interface DeviceOperations

get_attribute_config

public AttributeConfig[] get_attribute_config(java.lang.String[] names)
                                       throws DevFailed
Get attribute(s) configuration. Invoked when the client request the get_attribute_config CORBA operation. It retrieves attribute(s) configuration and initialise a AttributeConfig object for each of the wanted attribute.

Specified by:
get_attribute_config in interface DeviceOperations
Parameters:
names - The attribute name list
Returns:
An array of AttributeConfig object. One AttributeConfig object is initialised for each wanted attribute
Throws:
DevFailed - Thrown if one of the attribute does not exist. Click here to read DevFailed exception specification

get_attribute_config_2

public AttributeConfig_2[] get_attribute_config_2(java.lang.String[] names)
                                           throws DevFailed,
                                                  org.omg.CORBA.SystemException
Specified by:
get_attribute_config_2 in interface Device_2Operations
Throws:
DevFailed
org.omg.CORBA.SystemException

set_attribute_config

public void set_attribute_config(AttributeConfig[] new_conf)
                          throws DevFailed
Set attribute(s) configuration. Invoked when the client request the set_attribute_config CORBA operation. This method update the attribute configuration and also update the TANGO database with the new value. This method allows to update only the optional attribute properties.

Specified by:
set_attribute_config in interface DeviceOperations
Parameters:
new_conf - The attribute(s) new configuration list. There is one AttributeConfig object for each attribute with configuration to be updated
Throws:
DevFailed - Thrown if one of the attribute does not exist. Click here to read DevFailed exception specification

read_attributes

public AttributeValue[] read_attributes(java.lang.String[] names)
                                 throws DevFailed
Read attribute(s) value. Invoked when the client request the read_attributes CORBA operation. This method read attributes value and return them to the caller. A date and a quality factor is added to each attribute.

Specified by:
read_attributes in interface DeviceOperations
Parameters:
names - The attribute name list
Returns:
An array of AttributeValue object. One AttributeValue object is initialised for each wanted attribute
Throws:
DevFailed - Thrown if one of the attribute does not exist or if a problem occurs during attribute reading. Click here to read DevFailed exception specification

read_attributes_2

public AttributeValue[] read_attributes_2(java.lang.String[] names,
                                          DevSource source)
                                   throws DevFailed
Read attribute(s) value. Invoked when the client request the read_attributes CORBA operation with a DevSource parameter. This method read attributes value and return them to the caller. A date and a quality factor is added to each attribute.

Specified by:
read_attributes_2 in interface Device_2Operations
Parameters:
names - The attribute name list
source - could be DevSource.CACHE, DevSource.CACHE_DEV or DevSource.DEVICE.
Returns:
An array of AttributeValue object. One AttributeValue object is initialised for each wanted attribute
Throws:
DevFailed - Thrown if one of the attribute does not exist or if a problem occurs during attribute reading. Click here to read DevFailed exception specification

read_attribute_history_2

public DevAttrHistory[] read_attribute_history_2(java.lang.String name,
                                                 int n)
                                          throws DevFailed,
                                                 org.omg.CORBA.SystemException
Specified by:
read_attribute_history_2 in interface Device_2Operations
Throws:
DevFailed
org.omg.CORBA.SystemException

write_attributes

public void write_attributes(AttributeValue[] values)
                      throws DevFailed
Write attribute(s). Invoked when the client request the write_attributes CORBA operation. This method writes new attribute value.

Specified by:
write_attributes in interface DeviceOperations
Parameters:
values - The attribute(s) new set value. There is one AttributeValue object for each attribute to be set
Throws:
DevFailed - Thrown if one of the attribute does not exist. Click here to read DevFailed exception specification

remove_attribute

public void remove_attribute(java.lang.String attname)
                      throws DevFailed
Remove an attribute on the device attribute list.

Parameters:
attname - Attribute's name to be removed to the list
Throws:
DevFailed - .

add_attribute

public void add_attribute(Attr new_attr)
                   throws DevFailed
Add a new attribute to the device attribute list. Attributes are normally constructed in the DeviceClass::attribute_factory() method. Nevertheless, it is still possible to add a new attribute to a device with this method. Please, note that if you add an attribute to a device at device creation time, this attribute will be added to the device class attribute list. Therefore, all devices belonging to the same class created after this attribute addition will also have this attribute.

Parameters:
new_attr - Reference to the new attribute to be added to the list
Throws:
DevFailed - . Click here to read DevFailed exception specification

dev_state

public DevState dev_state()
                   throws DevFailed
Get device state. Default method to get device state. The behaviour of this method depends on the device state. If the device state is ON or ALARM, it reads the attribute(s) with an alarm level defined, check if the read value is above/below the alarm and eventually change the state to ALARM, return the device state. For all th eother device state, ti smethod simply returns the state This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Returns:
The device state
Throws:
DevFailed - If it is necessary to read attribute(s) and a problem occurs during the reading. Click here to read DevFailed exception specification

dev_status

public java.lang.String dev_status()
                            throws DevFailed
Get device status. Default method to get device status. It returns the contents of the device device_status field. If the device state is ALARM, alarm messages are added to the device status. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Returns:
The device status
Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

read_attr_hardware

public void read_attr_hardware(java.util.Vector attr_list)
                        throws DevFailed
Read the hardware to return attribute value(s). Default method to implement an action necessary on a device to read the hardware involved in a a read attribute CORBA call. This method must be redefined in sub-classes in order to support attribute reading

Parameters:
attr_list - Reference to a vector with Integer object. Each element in this vector is the index in the device onject attribute vector of an attribute to be read.
Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

read_attr

public void read_attr(Attribute attr)
               throws DevFailed
Set the attribute read value. Default method to set an attribute read value. This method must be redefined in sub-classes when attributes are needed

Parameters:
attr - The attribute object
Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

write_attr_hardware

public void write_attr_hardware(java.util.Vector attr_list)
                         throws DevFailed
Write the hardware for attributes. Default method to implement an action necessary on a device to write the hardware involved in a a write attribute. This method must be redefined in sub-classes in order to support writable attribute

Parameters:
attr_list - Reference to a vector of Integer objects. Each element in this vector is the index in the main attribute vector of an attribute to be written.
Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

always_executed_hook

public void always_executed_hook()
                          throws DevFailed
Hook method. Default method to implement an action necessary on a device before any command is executed. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

init_device

public abstract void init_device()
                          throws DevFailed
Intialise a device. In the DeviceImpl class, this method is pure abstract and must be defined in sub-class. Its rule is to initialise a device. This method is called during device creation an dby the DevRestart command

Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

delete_device

public abstract void delete_device()
                            throws DevFailed
This method is called during device Init an the DevRestart command. Some clean-up should be done here for stopping thread, clearing lists...

Throws:
DevFailed

_default_POA

public org.omg.PortableServer.POA _default_POA()
Return device POA Return a reference to the device POA. This method is necessary for the CORBA object implicit activation by the _this method

Overrides:
_default_POA in class org.omg.PortableServer.Servant
Returns:
Reference to the device POA

get_status

public java.lang.String get_status()
Get device status. Return the device device_status field. This method does the same thing than the default dev_status method.

Returns:
Device status

set_status

public void set_status(java.lang.String new_status)
Set device status.

Parameters:
new_status - The new device status

get_state

public DevState get_state()
Get device state. Return the device device_state field. This method does the same thing than the default dev_state method.

Returns:
Device state

set_state

public void set_state(DevState new_state)
Set device state.

Parameters:
new_state - The new device state

get_name

public java.lang.String get_name()
Get device name. Return the device name (device_name field)

Returns:
Device name

get_device_class

public DeviceClass get_device_class()
Get device class object reference. Return the device class object reference

Returns:
Device class

set_device_attr

public void set_device_attr(MultiAttribute new_multi_attr)
Set device state.

Parameters:
new_multi_attr - The new attribute

get_db_device

public DbDevice get_db_device()
Get the reference to the associated DbDevice object Return the DbDevice object reference

Returns:
DbDevice

get_obj_id

public byte[] get_obj_id()
Get the associated CORBA object identifier

Returns:
The CORBA object identifier

set_obj_id

public void set_obj_id(byte[] id)
Set the associated CORBA object identifier

Parameters:
id - The CORBA object identifier

get_logger

public org.apache.log4j.Logger get_logger()
Returns the device's logger


init_logger

public void init_logger()
Initialize the logging for this device


stop_logging

public void stop_logging()
Backup current logging level then set it to OFF


start_logging

public void start_logging()
Restore logging level to its backup value


set_poll_ring_depth

public void set_poll_ring_depth(int size)

set_polled_cmd

public void set_polled_cmd(java.lang.String[] s)

set_polled_attr

public void set_polled_attr(java.lang.String[] s)

TANGO Java API
( TangORB-7.3.3.jar)