Module indiclient :: Class indiswitch
[show private | hide private]
[frames | no frames]

Class indiswitch

 indiobject --+        
              |        
indinamedobject --+    
                  |    
        indielement --+
                      |
                     indiswitch


a switch that can be either On or Off
Method Summary
BooleanType get_active(self)
Return a Boolean representing the state of the switch:
NoneType set_active(self, bool)
Return None
    Inherited from indielement
  __init__(self, attrs, tag)
StringType get_text(self)
Return a string representation of it value
StringType get_xml(self, transfertype)
Returns an XML representation of the object
NoneType set_float(self, num)
Return None
NoneType set_text(self, text)
Return None
NoneType tell(self)
Prints all parameters of the object
    Inherited from indiobject
BooleanType is_valid(self)
Checks whether the object is valid.
NoneType update(self, attrs, tag)
Update this element with data received form the XML Parser.

Instance Variable Summary
    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

get_active(self)

Returns:
a Boolean representing the state of the switch:
  • True (Python) = "On" (INDI)
  • False (Python) = "Off" (INDI)

           (type=BooleanType)

set_active(self, bool)

Parameters:
bool - The boolean representation of the new state of the switch.
  • True (Python) = "On" (INDI)
  • False (Python) = "Off" (INDI)

           (type=BooleanType:)
Returns:
None
           (type=NoneType)

Generated by Epydoc 2.1 on Sat Sep 10 10:26:05 2005 http://epydoc.sf.net