# ``twisted`.`positioning`.`_sentence`.`_PositioningSentenceProducerMixin``

class documentation

`class _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.

Returns
`set` of `str` | The set of all possible sentence attribute names.