Package 

Class RunProtelisProgram

    • Constructor Detail

      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, String program)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, String program, double retentionTime)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
        retentionTime - how long the messages will be stored.
      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, String program, String packetLossDistributionName, Array<double> packetLossDistributionParameters)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
        packetLossDistributionName - the package loss probability, scaling with distance.
        packetLossDistributionParameters - parameters that will be passed when building the packet loss distribution
      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, String program, double retentionTime, String packetLossDistributionName, Array<double> packetLossDistributionParameters)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
        retentionTime - how long the messages will be stored.
        packetLossDistributionName - the package loss probability, scaling with distance.
        packetLossDistributionParameters - parameters that will be passed when building the packet loss distribution
      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, ProtelisProgram program, double retentionTime, String packetLossDistributionName, Array<double> packetLossDistributionParameters)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
        retentionTime - how long the messages will be stored.
        packetLossDistributionName - the package loss probability, scaling with distance.
        packetLossDistributionParameters - parameters that will be passed when building the packet loss distribution
      • RunProtelisProgram

        RunProtelisProgram(Environment<Object, P> environment, ProtelisNode<P> node, Reaction<Object> reaction, RandomGenerator randomGenerator, String program, double retentionTime, RealDistribution packetLossDistance)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction
        randomGenerator - the random engine
        program - the Protelis program
        retentionTime - how long the messages will be stored.
        packetLossDistance - the package loss probability, scaling with distance.