NetworkModel

interface NetworkModel<T>

A policy that links the nodes of an environment, observing the state the links depend on (such as positions or contents) and publishing the neighborhood of each node whenever it changes. Network models are bound to the environment whose nodes they link.

Type Parameters

T

concentration type

Inheritors

Properties

Link copied to clipboard

The neighborhood of this node, as provided by neighborhoodOf.

Functions

Link copied to clipboard
abstract fun neighborhoodOf(center: Node<T>): Observable<Neighborhood<T>>

The neighborhood of center, a node of the environment of this model, as an observable of immutable snapshots that emits whenever the neighborhood changes.

Link copied to clipboard
infix fun NetworkModel<*>.shouldEqual(other: NetworkModel<*>)