pydistsim.network.sensor.Sensor
- class Sensor[source]
Bases:
ABCAbstract base class for all Sensors.
Sensor provides a certain capability for a node, providing information about the outside world. It could be a capability to detect neighbors, measure distance to them, or retrieve the environment temperature.
- Parameters:
dict_args (dict) – A dictionary containing the scale and probability function.
scale (float) – The scale parameter for the probability function.
pf (rv_continuous or rv_discrete) – The probability function (e.g.
scipy.stats.norm).
Methods
__init__Get the name of the Sensor class.
Read the sensor data.