pydistsim.network.sensor.TruePosSensor

class TruePosSensor[source]

Bases: Sensor

Provides node’s true position.

Methods

__init__

name

Get the name of the Sensor class.

read

Read the sensor data from the given node.

read(node: Node)[source]

Read the sensor data from the given node.

Parameters:

node (Node) – The node from which to read the sensor data.

Returns:

A dictionary containing the sensor data.

Return type:

dict