alchemist-incarnation-protelis / it.unibo.alchemist.model.implementations.actions / RunProtelisProgram / <init>

<init>

RunProtelisProgram(env: Environment<Any!, P>!, n: ProtelisNode<P>!, r: Reaction<Any!>!, rand: RandomGenerator!, program: String!)

Parameters

env - Environment<Any!, P>!: the environment

n - ProtelisNode<P>!: the node

r - Reaction<Any!>!: the reaction

rand - RandomGenerator!: the random engine

program - String!: the Protelis program

Exceptions

SecurityException - if you are not authorized to load required classes

RunProtelisProgram(env: Environment<Any!, P>!, n: ProtelisNode<P>!, r: Reaction<Any!>!, rand: RandomGenerator!, program: String!, retentionTime: Double)

Parameters

env - Environment<Any!, P>!: the environment

n - ProtelisNode<P>!: the node

r - Reaction<Any!>!: the reaction

rand - RandomGenerator!: the random engine

program - String!: the Protelis program

retentionTime - Double: how long the messages will be stored. Pass Double#NaN to mean that they should get eliminated upon node awake.

Exceptions

SecurityException - if you are not authorized to load required classes