TimeInvariantLayer
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
Functions
Link copied to clipboard
The current value at position.
Link copied to clipboard
fun <T, P : Position<out P>> Layer<T, P>.toGraphQLLayerSurrogate(posMapping: (List<Number>) -> P): LayerSurrogate<T, P>
Converts a it.unibo.alchemist.model.Layer to a LayerSurrogate.