Class FloatChromosomeSpec

java.lang.Object
net.bmahe.genetics4j.core.spec.chromosome.FloatChromosomeSpec
All Implemented Interfaces:
ChromosomeSpec
Direct Known Subclasses:
ImmutableFloatChromosomeSpec

@Immutable public abstract class FloatChromosomeSpec extends Object implements ChromosomeSpec
  • Constructor Details

    • FloatChromosomeSpec

      public FloatChromosomeSpec()
  • Method Details

    • size

      @Parameter public abstract int size()
    • minValue

      @Parameter public abstract float minValue()
    • maxValue

      @Parameter public abstract float maxValue()
    • distribution

      @Default public Distribution distribution()
    • check

      @Check protected void check()
    • of

      public static FloatChromosomeSpec of(int size, float minValue, float maxValue)
      Construct a new immutable FloatChromosomeSpec instance.
      Parameters:
      size - The value for the size attribute
      minValue - The value for the minValue attribute
      maxValue - The value for the maxValue attribute
      Returns:
      An immutable FloatChromosomeSpec instance
    • of

      public static FloatChromosomeSpec of(int size, float minValue, float maxValue, Distribution distribution)