File: //lib/python3/dist-packages/twisted/positioning/__pycache__/ipositioning.cpython-38.pyc
U
W[� � @ sb d Z ddlmZmZ ddlmZmZ G dd� de�ZG dd� de�ZG dd � d e�Z ddd gZ
d
S )z'
Positioning interfaces.
@since: 14.0
� )�absolute_import�division)� Attribute� Interfacec @ sP e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� ZdS )�IPositioningReceiverz1
An interface for positioning providers.
c C s dS )a>
Method called when a position is received.
@param latitude: The latitude of the received position.
@type latitude: L{twisted.positioning.base.Coordinate}
@param longitude: The longitude of the received position.
@type longitude: L{twisted.positioning.base.Coordinate}
N� )ZlatitudeZ longituder r �B/usr/lib/python3/dist-packages/twisted/positioning/ipositioning.py�positionReceived s z%IPositioningReceiver.positionReceivedc C s dS )z�
Method called when position error is received.
@param positioningError: The position error.
@type positioningError: L{twisted.positioning.base.PositionError}
Nr )Z
positionErrorr r r �positionErrorReceived s z*IPositioningReceiver.positionErrorReceivedc C s dS )z�
Method called when time and date information arrives.
@param time: The date and time (expressed in UTC unless otherwise
specified).
@type time: L{datetime.datetime}
Nr )�timer r r �timeReceived% s z!IPositioningReceiver.timeReceivedc C s dS )z�
Method called when a true heading is received.
@param heading: The heading.
@type heading: L{twisted.positioning.base.Heading}
Nr )Zheadingr r r �headingReceived/ s z$IPositioningReceiver.headingReceivedc C s dS )z�
Method called when an altitude is received.
@param altitude: The altitude.
@type altitude: L{twisted.positioning.base.Altitude}
Nr )Zaltituder r r �altitudeReceived8 s z%IPositioningReceiver.altitudeReceivedc C s dS )z�
Method called when the speed is received.
@param speed: The speed of a mobile object.
@type speed: L{twisted.positioning.base.Speed}
Nr )Zspeedr r r �
speedReceivedA s z"IPositioningReceiver.speedReceivedc C s dS )z�
Method called when the climb is received.
@param climb: The climb of the mobile object.
@type climb: L{twisted.positioning.base.Climb}
Nr )Zclimbr r r �
climbReceivedJ s z"IPositioningReceiver.climbReceivedc C s dS )z�
Method called when positioning beacon information is received.
@param beaconInformation: The beacon information.
@type beaconInformation: L{twisted.positioning.base.BeaconInformation}
Nr )ZbeaconInformationr r r �beaconInformationReceivedR s z.IPositioningReceiver.beaconInformationReceivedN)�__name__�
__module__�__qualname__�__doc__r r
r r
r r r r r r r r r s
r c @ s e Zd ZdZed�ZdS )�IPositioningBeaconz
A positioning beacon.
z�
A unique identifier for this beacon. The type is dependent on the
implementation, but must be immutable.
N)r r r r r Z
identifierr r r r r \ s �r c @ s e Zd ZdZdd� ZdS )�
INMEAReceiverz/
An object that can receive NMEA data.
c C s dS )z�
Method called when a sentence is received.
@param sentence: The received NMEA sentence.
@type L{twisted.positioning.nmea.NMEASentence}
Nr )Zsentencer r r �sentenceReceivedl s zINMEAReceiver.sentenceReceivedN)r r r r r r r r r r h s r N)r Z
__future__r r Zzope.interfacer r r r r �__all__r r r r �<module> s N�