Alchemist Network Manager
open fun AlchemistNetworkManager(executionTime: Reaction<Any>, program: RunProtelisProgram<out Any>)
Content copied to clipboard
Parameters
execution Time
the reaction hosting the NetworkManager
program
open fun AlchemistNetworkManager(executionTime: Reaction<Any>, program: RunProtelisProgram<out Any>, retentionTime: Double)
Content copied to clipboard
Parameters
execution Time
the reaction hosting the NetworkManager
program
retention Time
how long the messages will be stored. Pass NaN to mean that they should get eliminated upon node awake.
open fun AlchemistNetworkManager(executionTime: Reaction<Any>, program: RunProtelisProgram<out Any>, retentionTime: Double, distanceLossDistribution: RealDistribution)
Content copied to clipboard
Parameters
execution Time
the reaction hosting the NetworkManager
program
retention Time
how long the messages will be stored. Pass NaN to mean that they should get eliminated upon node awake.
distance Loss Distribution
the package loss probability, scaling with distance. This RealDistribution will be used as follows: its PDF will be computed with density, and will be fed the distance between the current node and the neighbor; the generated probability will in turn be used to determine the probability of the package to be successfully delivered. Can be null, in which case packets always arrive to neighbors.