Package it.unibo.alchemist.model.layers
Class StepLayer
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Layer
,java.io.Serializable
public final class StepLayer<T, P extends Position2D<out P>> implements Layer<T, P>
Implements a Layer with a discontinue spatial distribution: the plane is divided in two parts, both with a constant concentration but with a different in value.
-
-
Method Summary
-
-
Constructor Detail
-
StepLayer
StepLayer(double mx, double my, T maxValue, T minValue)
Initialize a StepLayer.- Parameters:
mx
- the x value above which the concentration in layer is at its maximum valuemy
- the y value above which the concentration in layer is at its maximum valuemaxValue
- the high value of concentration.minValue
- the low value of concentration.
-
-
-
-