Class IntChromosomeSpec

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

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

    • IntChromosomeSpec

      public IntChromosomeSpec()
  • Method Details

    • size

      @Parameter public abstract int size()
    • minValue

      @Parameter public abstract int minValue()
    • maxValue

      @Parameter public abstract int maxValue()
    • check

      @Check protected void check()
    • of

      public static IntChromosomeSpec of(int size, int minValue, int maxValue)
      Construct a new immutable IntChromosomeSpec 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 IntChromosomeSpec instance