class documentation

class twisted.positioning._sentence._PositioningSentenceProducerMixin: (source)

Known subclasses: twisted.positioning.nmea.NMEAProtocol

View In Hierarchy

A mixin for certain protocols that produce positioning sentences.

This mixin helps protocols that store the layout of sentences that they consume in a _SENTENCE_CONTENTS class variable provide all sentence attributes that can ever occur. It does this by providing a class method, getSentenceAttributes, which iterates over all sentence types and collects the possible sentence attributes.

Class Method getSentenceAttributes Returns a set of all attributes that might be found in the sentences produced by this protocol.
@classmethod
def getSentenceAttributes(cls): (source)

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.

ReturnsThe set of all possible sentence attribute names. (type: set of str)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.