Trees | Index | Help |
|
---|
Module indiclient :: Class indiclient |
|
bigindiclient
--+
|
indiclient
gtkindiclient
bigindiclient
Method Summary | |
---|---|
| |
BooleanType |
Returns Boolean representing the value of the element requested. |
FloatType |
Returns a floating point number representing the value of the element requested. |
StringType |
Returns a text representing the value of the element requested. |
indivector
|
Sets the value of of an indi element by a boolean, and sends it to the server |
indivector
|
Sets the value of an indi element by a floating point number, and sends it to the server |
indivector
|
Sets all indiswitch elements in this vector to
Off . |
indivector
|
Sets the value of an element by a text, and sends it to the server |
Inherited from bigindiclient | |
indi_custom_element_handler
|
Adds a custom handler function for an indielement , the handler will be called
each time the indielement is received. |
indi_custom_vector_handler
|
Adds a custom handler function for an indivector , the handler will be called each
time the vector is received. |
mini_element_handler
|
Adds handler that will be called each time the element is received. |
NoneType |
Sends a signal to the server that tells it, that this client wants to receive indiblob objects. |
indielement
|
Returns an indielement matching the given devicename and vectorname This method will wait until it
has been received. |
indivector
|
Returns an indivector matching the given devicename and vectorname This method will wait until it
has been received. |
NoneType |
Has to be called frequently by any program using this client. |
NoneType |
must be called in order to close the indiclient instance |
NoneType |
Resets the connection to the server |
NoneType |
Sends an INDI vector to the INDI server. |
NoneType |
Sets new def handlers. |
NoneType |
Sets a new message handler. |
NoneType |
Sets a new timeout handler. |
NoneType |
prints all indivectors and their elements to the screen |
NoneType |
Looks if the requested vector has already been received and waits until it is received otherwise |
Instance Variable Summary | |
---|---|
Inherited from bigindiclient | |
function | blob_def_handler : Called when a new indiblobvector is defined by the driver
(see set_def_handlers ) |
StringType | currentData : A buffer to accumulate the character data to be written into the value
attribute of currentElement |
indivector |
currentElement : The INDI element currently being processed by the XML parser |
indimessage |
currentMessage : The INDI message currently being processed by the XML parser |
indivector |
currentVector : The INDI vector currently being processed by the XML parser |
list of indivector |
defvectorlist : A list of vectors that have been received with def*Vector
signal at least one time |
xml.parsers.expat | expat : an expat XML parser |
StringType | host : The hostname of the INDI server, this instance of indiclient is connected to |
_indilist of indivector |
indivectors : The list of all indivectors received so far |
function | message_handler : (see set_message_handler ) |
function | number_def_handler : Called when a new indinumbervector is defined by the driver
(see set_def_handlers ) |
IntType | port : The port address of the INDI server, this instance of indiclient is connected to |
Queue.Queue | receive_event_queue : A background process (_receiver ) is continuesly receiving data
and putting them into this queue. |
threading.Timer | receivetimer : needed to run the _receive thread |
Queue.Queue | running_queue : During its destructor indiclient puts signal into this queue in order
to stop the background process. |
socket.socket.socket | socket : a TCP/IP socket to communicate with the server |
function | text_def_handler : Called when a new inditextvector is defined by the driver
(see set_def_handlers ) |
FloatType | timeout : A timeout value (see timeout_handler ) |
function | timeout_handler : This function will be called whenever an indielement has been
requested but was not received for a time longer than
timeout since the request was issued. |
BooleanType | verbose : If True all XML data will be printed to the screen |
Method Details |
---|
__init__(self,
host,
port)
|
get_bool(self, devicename, vectorname, elementname)Returns Boolean representing the value of the element requested. The element must be anindiswitch
|
get_float(self, devicename, vectorname, elementname)Returns a floating point number representing the value of the element requested. The element must be anindinumber .
|
get_text(self, devicename, vectorname, elementname)Returns a text representing the value of the element requested.
|
set_and_send_bool(self, devicename, vectorname, elementname, state)Sets the value of of an indi element by a boolean, and sends it to the server
|
set_and_send_float(self, devicename, vectorname, elementname, number)Sets the value of an indi element by a floating point number, and sends it to the server
|
set_and_send_switchvector_by_elementlabel(self, devicename, vectorname, elementlabel)Sets allindiswitch elements in this vector to
Off . And sets the one matching the given elementlabel to On
|
set_and_send_text(self, devicename, vectorname, elementname, text)Sets the value of an element by a text, and sends it to the server
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Sep 10 10:26:06 2005 | http://epydoc.sf.net |