alchemist-incarnation-protelis / it.unibo.alchemist.model / ProtelisIncarnation

ProtelisIncarnation

class ProtelisIncarnation<P : Position<P>!> : Incarnation<Any!, P>

Types

DummyContext

An org.protelis.vm.ExecutionContext that operates over a node, but does not modify it.

class DummyContext : AbstractExecutionContext<DummyContext!>

ProtectedExecutionEnvironment

An ExecutionEnvironment that can read and shadow the content of a Node, but cannot modify it. This is used to prevent badly written properties to interact with the simulation flow.

class ProtectedExecutionEnvironment : ExecutionEnvironment

Constructors

<init>

ProtelisIncarnation()

Properties

VALUE_TOKEN

The name that can be used in a property to refer to the extracted value.

static val VALUE_TOKEN: String

Functions

createAction

fun createAction(rand: RandomGenerator!, env: Environment<Any!, P>!, node: Node<Any!>!, time: TimeDistribution<Any!>!, reaction: Reaction<Any!>!, param: String!): Action<Any!>!

createConcentration

fun createConcentration(s: String!): Any!

createCondition

fun createCondition(rand: RandomGenerator!, env: Environment<Any!, P>!, node: Node<Any!>!, time: TimeDistribution<Any!>!, reaction: Reaction<Any!>!, param: String!): Condition<Any!>!

createMolecule

fun createMolecule(s: String!): Molecule!

createNode

fun createNode(rand: RandomGenerator!, env: Environment<Any!, P>!, param: String!): Node<Any!>!

createReaction

fun createReaction(rand: RandomGenerator!, env: Environment<Any!, P>!, node: Node<Any!>!, time: TimeDistribution<Any!>!, param: String!): Reaction<Any!>!

createTimeDistribution

fun createTimeDistribution(rand: RandomGenerator!, env: Environment<Any!, P>!, node: Node<Any!>!, param: String!): TimeDistribution<Any!>!

getProperty

fun getProperty(node: Node<Any!>!, mol: Molecule!, prop: String!): Double

toString

fun toString(): String