TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self, attrs, tag) |
def | get_message (self) |
def | tell (self) |
def | get_light (self) |
def | get_permissions (self) |
def | get_element (self, elementname) |
def | get_first_element (self) |
def | wait_for_ok_timeout (self, timeout) |
def | wait_for_ok (self) |
def | update (self, attrs, tag) |
def | get_xml (self, transfertype) |
def | updateByVector (self, vector) |
def | getDevice (self) |
![]() | |
def | __init__ (self, attrs, tag) |
def | getName (self) |
![]() | |
def | __init__ (self, attrs, tag) |
def | is_valid (self) |
def | get_xml (self, transfertype) |
def | update (self, attrs, tag) |
Public Attributes | |
device | |
timestamp | |
timeout | |
group | |
elements | |
port | |
host | |
![]() | |
name | |
label | |
![]() | |
tag | |
Private Member Functions | |
def | _get_changed (self) |
def | _wait_for_ok_general (self, checkinterval, timeout) |
Private Attributes | |
_light | |
_perm | |
_message | |
The base class of all INDI vectors \n @ivar host : The hostname of the server that send the vector @type host : StringType @ivar port : The port on which the server send the vector @type port : IntType @ivar elements : The list of L{indielement} objects contained in the vector @type elements : list of L{indielement} @ivar _perm : The users read/write permissions for the vector @type _perm : L{indipermissions} @ivar group : The INDI group the vector belongs to @type group : StringType @ivar _light : The StatusLED of the vector @type _light : L{indilight} @ivar timeout : The timeout value. According to the indi white paper it is defined as follows: Each Property has a timeout value that specifies the worst-case time it might take to change the value to something else The Device may report changes to the timeout value depending on current device status. Timeout values give Clients a simple ability to detect dysfunctional Devices or broken communication and also gives them a way to predict the duration of an action for scheduling purposes as discussed later @type timeout : StringType @ivar timestamp : The time when the vector was send out by the INDI server. @type timestamp : StringType @ivar device : The INDI device the vector belongs to @type device : StringType @ivar _message : The L{indimessage} associated with the vector or B{None} if not present @type _message : L{indimessage}
def indiclient.indivector.__init__ | ( | self, | |
attrs, | |||
tag | |||
) |
@param attrs: The attributes of the XML version of the INDI vector. @type attrs: DictType @param tag: The XML tag of the vector (see L{indixmltag}). @type tag: L{indixmltag}
|
private |
@return: C{True} if the objects XML data was changed since the last L{_get_changed} was called, C{False} otherwise. @rtype: BooleanType
|
private |
Wait until its state is C{Ok}. Usually this means to wait until the server has finished the operation requested by sending this vector. @param timeout: An exception will be raised if the no C{Ok} was received for longer than timeout since this method was called. @type timeout: FloatType @param checkinterval: The interval in which this method will check if the state is {Ok} @type checkinterval: FloatType @return: B{None} @rtype: NoneType
def indiclient.indivector.get_element | ( | self, | |
elementname | |||
) |
Returns an element on this vector matching a given name. @param elementname: The name of the element requested @type elementname: StringType @return: The element requested @rtype: L{indielement}
def indiclient.indivector.get_first_element | ( | self | ) |
Returns the first element on this vector. @return: The first element @rtype: L{indielement}
def indiclient.indivector.get_light | ( | self | ) |
Returns the L{indilight} of the vector @return: L{indilight} of the vector @rtype: L{indilight}
def indiclient.indivector.get_message | ( | self | ) |
@return: The L{indimessage} associated with the vector, if there is any, B{None} otherwise @rtype: L{indimessage}
def indiclient.indivector.get_permissions | ( | self | ) |
Returns the read/write permission of the vector @return: the read/write permission of the vector @rtype: L{indipermissions}
def indiclient.indivector.get_xml | ( | self, | |
transfertype | |||
) |
def indiclient.indivector.getDevice | ( | self | ) |
def indiclient.indivector.tell | ( | self | ) |
" Prints the most important parameters of the vector and its elements. @return: B{None} @rtype: NoneType
def indiclient.indivector.update | ( | self, | |
attrs, | |||
tag | |||
) |
def indiclient.indivector.updateByVector | ( | self, | |
vector | |||
) |
def indiclient.indivector.wait_for_ok | ( | self | ) |
Wait until its state is C{Ok}. Usually this means to wait until the server has finished the operation requested by sending this vector. @return: B{None} @rtype: NoneType
def indiclient.indivector.wait_for_ok_timeout | ( | self, | |
timeout | |||
) |
@param timeout: The time after which the L{_light} property of the object has to turn ok . @type timeout: FloatType @return: B{None} @rtype: NoneType
|
private |
|
private |
|
private |
indiclient.indivector.device |
indiclient.indivector.elements |
indiclient.indivector.group |
indiclient.indivector.host |
indiclient.indivector.port |
indiclient.indivector.timeout |
indiclient.indivector.timestamp |