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

RunProtelisProgram

open class RunProtelisProgram<P : Position<P>!> : Action<Any!>

Constructors

<init>

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

Functions

asMolecule

fun asMolecule(): Molecule!

cloneAction

fun cloneAction(n: Node<Any!>!, r: Reaction<Any!>!): RunProtelisProgram<P>!

equals

fun equals(other: Any?): Boolean

execute

fun execute(): Unit

getContext

fun getContext(): Context!

getEnvironment

fun getEnvironment(): Environment<Any!, P>!

getNode

fun getNode(): ProtelisNode<Position<*>!>!

getOutboundDependencies

fun getOutboundDependencies(): ListSet<out Dependency!>!

getRandomGenerator

open fun getRandomGenerator(): RandomGenerator!

getRetentionTime

open fun getRetentionTime(): Double

hashCode

fun hashCode(): Int

isComputationalCycleComplete

open fun isComputationalCycleComplete(): Boolean

prepareForComputationalCycle

Resets the computation status (used for dependency management).

open fun prepareForComputationalCycle(): Unit

toString

open fun toString(): String

Inheritors

ProtelisProgram

Class to retain backwards compatibility with the Alchemist XML loader.

open class ProtelisProgram<P : Position<P>!> : RunProtelisProgram<P>