pydistsim.network.sensor.AoASensor

class AoASensor[source]

Bases: Sensor

Provides azimuth between node and its neighbors.

This sensor calculates the azimuth angle between a node and its neighbors in a network. It uses the position and orientation information of the nodes to calculate the azimuth angle.

Methods

__init__

name

Get the name of the Sensor class.

read

Reads the azimuth angle between a node and its neighbors.

read(node: Node)[source]

Reads the azimuth angle between a node and its neighbors.

Parameters:

node (Node) – The node for which to calculate the azimuth angle.

Returns:

A dictionary containing the azimuth angle measurements between the node and its neighbors.

Return type:

dict