Node

class Node<R>(val environment: Environment<R>, val id: Int, var value: R, cyclesToResetMessages: Int = 1, program: Aggregate<Int>.(Environment<R>) -> R)

A network node with an associated environment, id, value, and program.

Constructors

Link copied to clipboard
constructor(environment: Environment<R>, id: Int, value: R, cyclesToResetMessages: Int = 1, program: Aggregate<Int>.(Environment<R>) -> R)

Properties

Link copied to clipboard
val collektive: Collektive<Int, R>

The Collektive instance associated with this node.

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
var value: R

Functions

Link copied to clipboard
fun cycle()

Runs a Collektive cycle for this node.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String