alchemist-incarnation-protelis / it.unibo.alchemist.model.implementations.nodes / ProtelisNode

ProtelisNode

class ProtelisNode<P : Position<out P>!> : AbstractNode<Any!>, DeviceUID, ExecutionEnvironment

Constructors

<init>

Builds a new ProtelisNode.

ProtelisNode(environment: Environment<Any!, P>!)

Functions

addNetworkManger

Adds a new AlchemistNetworkManager.

fun addNetworkManger(program: RunProtelisProgram<*>!, networkManager: AlchemistNetworkManager!): Unit

cloneNode

fun cloneNode(currentTime: Time!): ProtelisNode<P>!

commit

fun commit(): Unit

createT

fun createT(): Any!

get

fun get(id: String!): Any!
fun get(id: String!, defaultValue: Any!): Any!

getNetworkManager

fun getNetworkManager(program: RunProtelisProgram<*>!): AlchemistNetworkManager!

has

fun has(id: String!): Boolean

keySet

fun keySet(): MutableSet<String!>!

put

fun put(id: String!, v: Any!): Boolean

putField

Writes a Map representation of the Field on the environment.

fun putField(id: String!, v: Field<Any!>!): Boolean

remove

fun remove(id: String!): Any!

setup

fun setup(): Unit

toString

fun toString(): String