Protelis Device
class ProtelisDevice<P : Position<P>>(val environment: Environment<Any, P>, val node: Node<Any>, networkManagers: Map<RunProtelisProgram<*>, AlchemistNetworkManager> = mapOf()) : NodeProperty<Any>
Base implementation of ProtelisDevice. Requires an environment to work.
Constructors
Link copied to clipboard
constructor(environment: Environment<Any, P>, node: Node<Any>, networkManagers: Map<RunProtelisProgram<*>, AlchemistNetworkManager> = mapOf())
Properties
Functions
Link copied to clipboard
Adds a new AlchemistNetworkManager.
Link copied to clipboard
Finds all the RunProtelisPrograms installed on this node.
Link copied to clipboard
Clones this property to be added on a new node.
Link copied to clipboard
Gets or creates the AlchemistExecutionContext for the given program. Creates the execution context lazily if it doesn't exist.
Link copied to clipboard
Link copied to clipboard
Gets or creates the AlchemistNetworkManager for the given program. Creates the network manager lazily if it doesn't exist.