Class TreeRewriteAlterer<A,G extends TreeGene<A,G>,C extends Comparable<? super C>>

java.lang.Object
io.jenetics.AbstractAlterer<G,C>
io.jenetics.Mutator<G,C>
io.jenetics.ext.TreeMutator<A,G,C>
io.jenetics.ext.TreeRewriteAlterer<A,G,C>
All Implemented Interfaces:
Alterer<G,C>

public class TreeRewriteAlterer<A,G extends TreeGene<A,G>,C extends Comparable<? super C>> extends TreeMutator<A,G,C>
This alterer uses a TreeRewriter for altering the TreeChromosome.
Since:
5.0
Version:
5.0
See Also:
  • Constructor Details

    • TreeRewriteAlterer

      public TreeRewriteAlterer(TreeRewriter<A> rewriter, int limit, double probability)
      Create a new alterer with the given rewriter and given rewrite limit.
      Parameters:
      rewriter - the tree rewriter
      limit - the rewriting limit
      probability - the altering probability
      Throws:
      NullPointerException - if the rewriter is null
    • TreeRewriteAlterer

      public TreeRewriteAlterer(TreeRewriter<A> rewriter, int limit)
      Create a new alterer with the given rewriter and given rewrite limit.
      Parameters:
      rewriter - the tree rewriter
      limit - the rewriting limit
      Throws:
      NullPointerException - if the rewriter is null
    • TreeRewriteAlterer

      public TreeRewriteAlterer(TreeRewriter<A> rewriter, double probability)
      Create a new alterer with the given rewriter.
      Parameters:
      rewriter - the tree rewriter
      probability - the altering probability
      Throws:
      NullPointerException - if the rewriter is null
    • TreeRewriteAlterer

      public TreeRewriteAlterer(TreeRewriter<A> rewriter)
      Create a new alterer with the given rewriter.
      Parameters:
      rewriter - the tree rewriter
      Throws:
      NullPointerException - if the rewriter is null
  • Method Details