Environment
open class Environment<R>(val defaultRetainTime: Int = 1, val areConnected: (Environment<R>, Node<R>, Node<R>) -> Boolean = { _, _, _ -> true })
An environment with a set of nodes with a defaultRetainTime mapped into positions, which are considered connected if the areConnected function returns true for them.
Inheritors
Properties
Functions
Link copied to clipboard
Runs a Collektive cycles for all the nodes in the environment, from the node with the lowest id to the one with the highest, in order.
Link copied to clipboard
Runs a Collektive cycles for all the nodes in the environment, in random (but repeatable) order.
Link copied to clipboard
Runs a Collektive cycles for all the nodes in the environment, from the node with the lowest id to the one with the highest, in order.
Link copied to clipboard
Link copied to clipboard
Removes a node from the environment.