ObservingRangeBasedNetworkModel

abstract class ObservingRangeBasedNetworkModel<T, P : Position<P>, Observed>(environment: Environment<T, P>, range: Double) : RangeBasedNetworkModel<T, P>

A RangeBasedNetworkModel whose links depend on the state of the nodes, such as their positions or contents: each node exposes it as an Observed, through observeInput, and whether two nodes are linked is a function of their inputs only. Neighborhoods are recomputed whenever the candidate neighbors, by default the nodes within range, change, or the input of the center or of any candidate does.

Parameters

environment

the environment whose nodes this model links

range

the distance within which nodes may be linked

Type Parameters

T

concentration type

P

position type

Observed

the state of a node that links depend on

Inheritors

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>, range: Double)

Properties

Link copied to clipboard

The neighborhood of this node, as provided by neighborhoodOf.

Functions

Link copied to clipboard
open override 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<*>)
Link copied to clipboard
override fun toString(): String