pydistsim.demo_algorithms.readsensors.ReadSensors
- class ReadSensors(*args, **kwargs)[source]
Bases:
NetworkAlgorithmRead all sensors and save data in memory for latter usage.
Methods
__init__add_observersapply_restrictionsApply all applicable restrictions.
check_restrictionsCheck if the restrictions are satisfied.
clear_observersis_haltedCheck if the distributed algorithm has come to an end or deadlock.
is_initializednotify_observersresetReset the algorithm to its initial state.
runstepAttributes
algorithm_restrictionsTuple of restrictions that must be satisfied for the algorithm to run.
default_paramsnetworkrequired_params