Class GrammarConfig

java.lang.Object
com.knezevic.edaf.v3.repr.grammar.build.GrammarConfig

public final class GrammarConfig extends Object
Canonical grammar configuration used by both auto and custom modes.
  • Method Details

    • fromParams

      public static GrammarConfig fromParams(Map<String,Object> params)
      Parses canonical grammar config from section params.

      Accepts either direct keys or nested map under grammar.

    • mode

      public String mode()
    • file

      public String file()
    • variables

      public List<String> variables()
    • binaryOps

      public List<String> binaryOps()
    • unaryOps

      public List<String> unaryOps()
    • ternaryOps

      public List<String> ternaryOps()
    • allowConstants

      public boolean allowConstants()
    • constants

      public List<Double> constants()
    • ephemeralConstants

      public boolean ephemeralConstants()
    • ephemeralDistribution

      public String ephemeralDistribution()
    • ephemeralMin

      public double ephemeralMin()
    • ephemeralMax

      public double ephemeralMax()
    • maxDepth

      public int maxDepth()
    • typed

      public boolean typed()
    • booleanMode

      public boolean booleanMode()
    • bitsPerDecision

      public int bitsPerDecision()
    • bitsPerErc

      public int bitsPerErc()
    • maxNodes

      public int maxNodes()