| Trees | Index | Help |
|
|---|
| Module indiclient :: Class indiswitchvector |
|
indiobject--+ |indinamedobject--+ |indivector--+ | indiswitchvector
| Method Summary | |
|---|---|
| |
indiswitch
|
Return the first active ( On) element, None if there is
none |
| IntType |
Return the index of the first switch in the Vector that is On |
| NoneType |
Turns the switch with index index to On and all other
switches of this vector to Off. |
| NoneType |
Sets all indiswitch elements of this vector to
Off. |
| NoneType |
Sets all indiswitch elements of this vector to
Off. |
| NoneType |
" Prints the most important parameters of the vector and its elements. |
| Inherited from indivector | |
indielement
|
Returns an element on this vector matching a given name. |
indielement
|
Returns the first element on this vector. |
indilight
|
Returns the indilight of the vector |
indimessage
|
Return the indimessage associated with the vector, if
there is any, None otherwise |
indipermissions
|
Returns the read/write permission of the vector |
| StringType |
Returns an XML representation of the object |
| NoneType |
Update this element with data received form the XML Parser. |
| NoneType |
Wait until its state is Ok. |
| NoneType |
Return None |
| BooleanType |
Return True if the objects XML data was changed since the last
_get_changed was called, False
otherwise. |
| NoneType |
Wait until its state is Ok. |
| Inherited from indiobject | |
| BooleanType |
Checks whether the object is valid. |
| NoneType |
Raises an exception if the object is not writable |
| Instance Variable Summary | |
|---|---|
| StringType | rule: A rule defining which states of switches of the vector are
allowed. |
| Inherited from indivector | |
| StringType | device: The INDI device the vector belongs to |
list of indielement |
elements: The list of indielement objects contained in the
vector |
| StringType | group: The INDI group the vector belongs to |
| StringType | host: The hostname of the server that send the vector |
| IntType | port: The port on which the server send the vector |
| StringType | timeout: The timeout value. |
| StringType | timestamp: The time when the vector was send out by the INDI server. |
indilight |
_light: The StatusLED of the vector |
indimessage |
_message: The indimessage associated with the vector or
None if not present |
indipermissions |
_perm: The users read/write permissions for the vector |
| Inherited from indinamedobject | |
| StringType | label: label of the INDI object as given in the "label" XML
attribute |
| StringType | name: name of the INDI object as given in the "name" XML
attribute |
| Inherited from indiobject | |
indixmltag |
tag: The XML tag of the INDI object (see indixmltag). |
| Method Details |
|---|
__init__(self,
attrs,
tag)
|
get_active_element(self)
|
get_active_index(self)
|
set_active_index(self, index)Turns the switch with indexindex to On and all other
switches of this vector to Off.
|
set_by_elementlabel(self, elementlabel)Sets allindiswitch elements of this vector to
Off. And sets the one who's label property matches elementlabel to On . If no
matching one is found or at least two matching ones are found, nothing
is done.
|
set_by_elementname(self, elementname)Sets allindiswitch elements of this vector to
Off. And sets the one who's label property matches elementname to On. If no
matching one is found or at least two matching ones are found, nothing
is done.
|
tell(self)" Prints the most important parameters of the vector and its elements.
|
| Instance Variable Details |
|---|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Sat Sep 10 10:26:05 2005 | http://epydoc.sf.net |