Class BiomolGradientLayer

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Layer , java.io.Serializable

    
    public final class BiomolGradientLayer<P extends Position2D<P>>
     implements Layer<T, P>
                        

    A Layer representing a linear distribution in space of a molecule.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final double steep
    • Constructor Summary

      Constructors 
      Constructor Description
      BiomolGradientLayer(double directionX, double directionY, double unitVariation, double offset) Initialize a gradient layer which grows in concentration proportionally in space.
      BiomolGradientLayer(P direction, double unitVariation, double offset) Initialize a gradient layer which grows in concentration proportionally in space.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      double getSteep()
      Double getValue(P p)
      String toString()
      Array<double> getParameters()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BiomolGradientLayer

        BiomolGradientLayer(double directionX, double directionY, double unitVariation, double offset)
        Initialize a gradient layer which grows in concentration proportionally in space.
        Parameters:
        directionX - x coordinate of the vector representing the direction in which the gradient grows
        directionY - y coordinate of the vector representing the direction in which the gradient grows
        unitVariation - unit variation of the gradient
        offset - minimum value of concentration reached by this spatial distribution
      • BiomolGradientLayer

        BiomolGradientLayer(P direction, double unitVariation, double offset)
        Initialize a gradient layer which grows in concentration proportionally in space.
        Parameters:
        direction - the Position2D representing the direction in which the gradient grows (here the positions is considered as a vector)
        unitVariation - unit variation of the gradient
        offset - minimum value of concentration reached by this spatial distribution