Module Expr Str ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareNotEq NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body If CompareIs NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A 
Generic sentence handling tools: hopefully reusable.
 __future__ absolute_import division _BaseSentence N/A object N/A N/A 
    A base sentence class for a particular protocol.

    Using this base class, specific sentence classes can almost automatically
    be created for a particular protocol (except for the documentation of
    course) if that protocol implements the L{IPositioningSentenceProducer}
    interface. To do this, fill the ALLOWED_ATTRIBUTES class attribute using
    the C{getSentenceAttributes} class method of the producer::

        class FooSentence(BaseSentence):
            """
            A sentence for integalactic transmodulator sentences.

            @ivar transmogrificationConstant: The value used in the
                transmogrifier while producing this sentence, corrected for
                gravitational fields.
            @type transmogrificationConstant: C{Tummy}
            """
            ALLOWED_ATTRIBUTES = FooProtocol.getSentenceAttributes()

    @ivar presentAttribues: An iterable containing the names of the
        attributes that are present in this sentence.
    @type presentAttributes: iterable of C{str}

    @cvar ALLOWED_ATTRIBUTES: A set of attributes that are allowed in this
        sentence.
    @type ALLOWED_ATTRIBUTES: C{set} of C{str}
     N/A ALLOWED_ATTRIBUTES N/A set __init__ N/A N/A self sentenceData N/A N/A N/A 
        Initializes a sentence with parsed sentence data.

        @param sentenceData: The parsed sentence data.
        @type sentenceData: C{dict} (C{str} -> C{str} or C{NoneType})
         N/A N/A self _sentenceData sentenceData N/A presentAttributes N/A N/A self N/A N/A N/A 
        An iterable containing the names of the attributes that are present in
        this sentence.

        @return: The iterable of names of present attributes.
        @rtype: iterable of C{str}
         N/A N/A iter N/A self _sentenceData N/A property __getattr__ N/A N/A self name N/A N/A N/A 
        Gets an attribute of this sentence.
         N/A N/A name N/A self ALLOWED_ATTRIBUTES N/A N/A N/A N/A N/A self _sentenceData get name None N/A N/A className N/A N/A self __class__ __name__ N/A msg N/A %s sentences have no %s attributes N/A className name N/A N/A AttributeError msg N/A __repr__ N/A N/A self N/A N/A N/A 
        Returns a textual representation of this sentence.

        @return: A textual representation of this sentence.
        @rtype: C{str}
         N/A items N/A N/A N/A self _sentenceData items N/A data N/A N/A %s: %s N/A k v N/A N/A k v N/A sorted items N/A k type N/A dataRepr N/A N/A ,  join data N/A typeRepr N/A N/A N/A N/A self _sentenceData get type unknown type N/A className N/A N/A self __class__ __name__ N/A N/A <%s (%s) {%s}> N/A className typeRepr dataRepr N/A N/A _PositioningSentenceProducerMixin N/A object N/A N/A 
    A mixin for certain protocols that produce positioning sentences.

    This mixin helps protocols that store the layout of sentences that they
    consume in a C{_SENTENCE_CONTENTS} class variable provide all sentence
    attributes that can ever occur. It does this by providing a class method,
    C{getSentenceAttributes}, which iterates over all sentence types and
    collects the possible sentence attributes.
     getSentenceAttributes N/A N/A cls N/A N/A N/A 
        Returns a set of all attributes that might be found in the sentences
        produced by this protocol.

        This is basically a set of all the attributes of all the sentences that
        this protocol can produce.

        @return: The set of all possible sentence attribute names.
        @rtype: C{set} of C{str}
         N/A attributes N/A set N/A type N/A attributeList N/A N/A N/A cls _SENTENCE_CONTENTS values N/A N/A attribute attributeList N/A N/A N/A attribute None N/A N/A N/A N/A N/A attributes add attribute N/A attributes N/A classmethod N/A