pydistsim.tests.test_simulation.ImplementedNetworkAlgorithm
- class ImplementedNetworkAlgorithm(*args, **kwargs)[source]
Bases:
NetworkAlgorithmMethods
__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