TimeInvariantLayer

abstract class TimeInvariantLayer<T, P : Position<out P>> : Layer<T, P>

A Layer whose spatial distribution never changes over time: the value observed at a position is fixed, so observers of a node's layer value are notified only when the node moves.

Implementations define the distribution through currentValueAt.

Type Parameters

T

the type of the value measuring the substance at a position

P

the position type

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract override fun currentValueAt(position: P): T

The current value at position.

Link copied to clipboard
Link copied to clipboard
override fun valueAt(position: P): Observable<T>

The value at position, as an observable emitting every change of that value.