Package 

Class AlchemistNetworkManager

  • All Implemented Interfaces:
    java.io.Serializable , org.protelis.vm.NetworkManager

    
    public final class AlchemistNetworkManager
     implements NetworkManager, Serializable
                        

    Emulates a NetworkManager. This particular network manager does not send messages instantly. Instead, it records the last message to send, and only when simulateMessageArrival is called the transfer is actually done.

    • Constructor Detail

      • AlchemistNetworkManager

        AlchemistNetworkManager(Reaction<Object> executionTime, RunProtelisProgram<out Object> program, double retentionTime)
        Parameters:
        executionTime - the reaction hosting the NetworkManager
        program - the RunProtelisProgram
        retentionTime - how long the messages will be stored.
      • AlchemistNetworkManager

        AlchemistNetworkManager(Reaction<Object> executionTime, RunProtelisProgram<out Object> program, double retentionTime, RealDistribution distanceLossDistribution)
        Parameters:
        executionTime - the reaction hosting the NetworkManager
        program - the RunProtelisProgram
        retentionTime - how long the messages will be stored.
        distanceLossDistribution - the package loss probability, scaling with distance.