def __Connection__command_inout_asynch(self, cmd_name, *args):
    """
    command_inout_asynch(self, cmd_name) -> id
    command_inout_asynch(self, cmd_name, cmd_param) -> id
    command_inout_asynch(self, cmd_name, cmd_param, forget) -> id

            Execute asynchronously (polling model) a command on a device

        Parameters :
                - cmd_name  : (str) Command name.
                - cmd_param : (any) It should be a value of the type expected by the
                              command or a DeviceData object with this value inserted.
                              It can be ommited if the command should not get any argument.
                              If the command should get no argument and you want
                              to set the 'forget' param, use None for cmd_param.
                - forget    : (bool) If this flag is set to true, this means that the client
                              does not care at all about the server answer and will even
                              not try to get it. Default value is False. Please,
                              note that device re-connection will not take place (in case
                              it is needed) if the fire and forget mode is used. Therefore,
                              an application using only fire and forget requests is not able
                              to automatically re-connnect to device.
        Return     : (int) This call returns an asynchronous call identifier which is
                     needed to get the command result (see command_inout_reply)

        Throws     : ConnectionFailed, TypeError, anything thrown by command_query

    command_inout_asynch( self, cmd_name, callback) -> None
    command_inout_asynch( self, cmd_name, cmd_param, callback) -> None

            Execute asynchronously (callback model) a command on a device.

        Parameters :
                - cmd_name  : (str) Command name.
                - cmd_param : (any)It should be a value of the type expected by the
                              command or a DeviceData object with this value inserted.
                              It can be ommited if the command should not get any argument.
                - callback  : Any callable object (function, lambda...) or any oject
                              with a method named "cmd_ended".
        Return     : None

        Throws     : ConnectionFailed, TypeError, anything thrown by command_query

    .. important::
        by default, TANGO is initialized with the **polling** model. If you want
        to use the **push** model (the one with the callback parameter), you
        need to change the global TANGO model to PUSH_CALLBACK.
        You can do this with the :meth:`tango.ApiUtil.set_asynch_cb_sub_model`
    """
    if len(args) == 0:  # command_inout_asynch()
        argin = DeviceData()
        forget = False
        return self.__command_inout_asynch_id(cmd_name, argin, forget)
    elif len(args) == 1:
        if isinstance(args[0], collections_abc.Callable):  # command_inout_asynch(lambda)
            cb = __CallBackAutoDie()
            cb.cmd_ended = __CallBackAutoDie__cmd_ended_aux(self, args[0])
            argin = __get_command_inout_param(self, cmd_name)
            return self.__command_inout_asynch_cb(cmd_name, argin, cb)
        elif hasattr(args[0], 'cmd_ended'):  # command_inout_asynch(Cbclass)
            cb = __CallBackAutoDie()
            cb.cmd_ended = __CallBackAutoDie__cmd_ended_aux(self, args[0].cmd_ended)
            argin = __get_command_inout_param(self, cmd_name)
            return self.__command_inout_asynch_cb(cmd_name, argin, cb)
        else:  # command_inout_asynch(value)
            argin = __get_command_inout_param(self, cmd_name, args[0])
            forget = False
            return self.__command_inout_asynch_id(cmd_name, argin, forget)
    elif len(args) == 2:
        if isinstance(args[1], collections_abc.Callable):  # command_inout_asynch( value, lambda)
            cb = __CallBackAutoDie()
            cb.cmd_ended = __CallBackAutoDie__cmd_ended_aux(self, args[1])
            argin = __get_command_inout_param(self, cmd_name, args[0])
            return self.__command_inout_asynch_cb(cmd_name, argin, cb)
        elif hasattr(args[1], 'cmd_ended'):  # command_inout_asynch(value, cbClass)
            cb = __CallBackAutoDie()
            cb.cmd_ended = __CallBackAutoDie__cmd_ended_aux(self, args[1].cmd_ended)
            argin = __get_command_inout_param(self, cmd_name, args[0])
            return self.__command_inout_asynch_cb(cmd_name, argin, cb)
        else:  # command_inout_asynch(value, forget)
            argin = __get_command_inout_param(self, cmd_name, args[0])
            forget = bool(args[1])
            return self.__command_inout_asynch_id(cmd_name, argin, forget)
    else:
        raise TypeError("Wrong number of attributes!")
def __Connection__command_inout_asynch ( self , cmd_name , * args ) : if len ( args ) == 0 : argin = DeviceData ( ) forget = False return self . __command_inout_asynch_id ( cmd_name , argin , forget ) elif len ( args ) == 1 : if isinstance ( args [ 0 ] , collections_abc . Callable ) : cb = __CallBackAutoDie ( ) cb . cmd_ended = __CallBackAutoDie__cmd_ended_aux ( self , args [ 0 ] ) argin = __get_command_inout_param ( self , cmd_name ) return self . __command_inout_asynch_cb ( cmd_name , argin , cb ) elif hasattr ( args [ 0 ] , 'cmd_ended' ) : cb = __CallBackAutoDie ( ) cb . cmd_ended = __CallBackAutoDie__cmd_ended_aux ( self , args [ 0 ] . cmd_ended ) argin = __get_command_inout_param ( self , cmd_name ) return self . __command_inout_asynch_cb ( cmd_name , argin , cb ) else : argin = __get_command_inout_param ( self , cmd_name , args [ 0 ] ) forget = False return self . __command_inout_asynch_id ( cmd_name , argin , forget ) elif len ( args ) == 2 : if isinstance ( args [ 1 ] , collections_abc . Callable ) : cb = __CallBackAutoDie ( ) cb . cmd_ended = __CallBackAutoDie__cmd_ended_aux ( self , args [ 1 ] ) argin = __get_command_inout_param ( self , cmd_name , args [ 0 ] ) return self . __command_inout_asynch_cb ( cmd_name , argin , cb ) elif hasattr ( args [ 1 ] , 'cmd_ended' ) : cb = __CallBackAutoDie ( ) cb . cmd_ended = __CallBackAutoDie__cmd_ended_aux ( self , args [ 1 ] . cmd_ended ) argin = __get_command_inout_param ( self , cmd_name , args [ 0 ] ) return self . __command_inout_asynch_cb ( cmd_name , argin , cb ) else : argin = __get_command_inout_param ( self , cmd_name , args [ 0 ] ) forget = bool ( args [ 1 ] ) return self . __command_inout_asynch_id ( cmd_name , argin , forget ) else : raise TypeError ( "Wrong number of attributes!" )
command_inout_asynch(self, cmd_name) -> id
    command_inout_asynch(self, cmd_name, cmd_param) -> id
    command_inout_asynch(self, cmd_name, cmd_param, forget) -> id

            Execute asynchronously (polling model) a command on a device

        Parameters :
                - cmd_name  : (str) Command name.
                - cmd_param : (any) It should be a value of the type expected by the
                              command or a DeviceData object with this value inserted.
                              It can be ommited if the command should not get any argument.
                              If the command should get no argument and you want
                              to set the 'forget' param, use None for cmd_param.
                - forget    : (bool) If this flag is set to true, this means that the client
                              does not care at all about the server answer and will even
                              not try to get it. Default value is False. Please,
                              note that device re-connection will not take place (in case
                              it is needed) if the fire and forget mode is used. Therefore,
                              an application using only fire and forget requests is not able
                              to automatically re-connnect to device.
        Return     : (int) This call returns an asynchronous call identifier which is
                     needed to get the command result (see command_inout_reply)

        Throws     : ConnectionFailed, TypeError, anything thrown by command_query

    command_inout_asynch( self, cmd_name, callback) -> None
    command_inout_asynch( self, cmd_name, cmd_param, callback) -> None

            Execute asynchronously (callback model) a command on a device.

        Parameters :
                - cmd_name  : (str) Command name.
                - cmd_param : (any)It should be a value of the type expected by the
                              command or a DeviceData object with this value inserted.
                              It can be ommited if the command should not get any argument.
                - callback  : Any callable object (function, lambda...) or any oject
                              with a method named "cmd_ended".
        Return     : None

        Throws     : ConnectionFailed, TypeError, anything thrown by command_query

    .. important::
        by default, TANGO is initialized with the **polling** model. If you want
        to use the **push** model (the one with the callback parameter), you
        need to change the global TANGO model to PUSH_CALLBACK.
        You can do this with the :meth:`tango.ApiUtil.set_asynch_cb_sub_model`