StepLayer
class StepLayer<T, P : Position2D<out P>>(mx: Double, my: Double, maxValue: T, minValue: T) : TimeInvariantLayer<T, P>
A Layer with a discontinuous spatial distribution that never changes over time: the value is maxValue where both coordinates exceed the thresholds mx and my, and minValue elsewhere.
Parameters
mx
the x value above which the concentration is at its maximum value
my
the y value above which the concentration is at its maximum value
maxValue
the high value of concentration
minValue
the low value of concentration
Type Parameters
T
the type describing the concentration in this Layer
P
Position2D type
Constructors
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.