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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      StepLayer(double mx, double my, T maxValue, T minValue) Initialize a StepLayer.
      StepLayer(T maxValue, T minValue) Initialize a StepLayer where concentration is at its maximum value in first quadrant (for positive values of x and y).
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T getValue(P p)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 value
        my - the y value above which the concentration in layer is at its maximum value
        maxValue - the high value of concentration.
        minValue - the low value of concentration.
      • StepLayer

        StepLayer(T maxValue, T minValue)
        Initialize a StepLayer where concentration is at its maximum value in first quadrant (for positive values of x and y).
        Parameters:
        maxValue - minValue the low value of concentration.
        minValue - maxValue the high value of concentration.