Package vmd :: Module control :: Class command
[hide private]
[frames] | no frames]

Class command

source code

asyncore.dispatcher --+        
                      |        
    asynchat.async_chat --+    
                          |    
                     client --+
                              |
                             command

Send one or more tcl commands to VMD and return response::

   c = command(*tcl)

Appends a newline to each command if necessary and then
feeds every single command separately to vmd. Commands that
include newlines are split on newlines. The responses are stored
in the tuple c._results (and can be retrieved by the c.results()
method).

Technically, this is unelegant cr^&...

:Methods:
  :meth:`client.results`
     response from VMD
  :meth:`clinet.commands`
     corresponding commands

Instance Methods [hide private]
 
__init__(self, *commands) source code
 
results(self)
Return results from vmd.
source code
 
commands(self)
Return submitted tcl commands.
source code

Inherited from client: cmd, collect_incoming_data, found_terminator, handle_connect, response

Inherited from asynchat.async_chat: close_when_done, discard_buffers, get_terminator, handle_close, handle_read, handle_write, initiate_send, push, push_with_producer, readable, refill_buffer, set_terminator, writable

Inherited from asyncore.dispatcher: __getattr__, __repr__, accept, add_channel, bind, close, connect, create_socket, del_channel, handle_accept, handle_error, handle_expt, handle_expt_event, handle_read_event, handle_write_event, listen, log, log_info, recv, send, set_reuse_addr, set_socket

Class Variables [hide private]

Inherited from asynchat.async_chat: ac_in_buffer_size, ac_out_buffer_size

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, debug

Method Details [hide private]

__init__(self, *commands)
(Constructor)

source code 
Overrides: asyncore.dispatcher.__init__