Class RoundRobinOperatorSelector

  • All Implemented Interfaces:
    IOperatorSelector

    public class RoundRobinOperatorSelector
    extends java.lang.Object
    implements IOperatorSelector
    Selector that selects one Operator out of the given Operators by a round robin principle. The list of passed applicable Operators is assumed to have a fixed order: the selection index is bound to the Genotype to be modified.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <O extends org.opt4j.core.optimizer.Operator<?>>
      O
      select​(java.util.List<O> applicableOperators, org.opt4j.core.Genotype genotype)
      Selects one Operator out of n Operators applicable for a single Genotype.
      • Methods inherited from class java.lang.Object

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

      • RoundRobinOperatorSelector

        public RoundRobinOperatorSelector()
    • Method Detail

      • select

        public <O extends org.opt4j.core.optimizer.Operator<?>> O select​(java.util.List<O> applicableOperators,
                                                                         org.opt4j.core.Genotype genotype)
        Description copied from interface: IOperatorSelector
        Selects one Operator out of n Operators applicable for a single Genotype.
        Specified by:
        select in interface IOperatorSelector
        Parameters:
        applicableOperators - list of applicable Operators.
        genotype - Genotype for which the Operator shall be applied.
        Returns:
        selected Operator from the input list.