Class BinarySelector

java.lang.Object
dealib.components.selectors.BinarySelector
All Implemented Interfaces:
Selector

public class BinarySelector extends Object implements Selector
BinarySelector is a class implementing a binary selection scheme over the interface Selector.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • BinarySelector

      public BinarySelector(Execution exe)
      Constructor.
      Parameters:
      exe - Configurarion of the current execution.
  • Method Details

    • selectIndividual

      public Individual selectIndividual(Individual... candidates) throws IncompatibleConfigurationException
      Executes a binary scheme as a selector. The candidates must be evaluated as a precondition before the use of this operator.
      Specified by:
      selectIndividual in interface Selector
      Parameters:
      candidates - a set of candidates for selecting the best of them with a concrete selector operator.
      Returns:
      S, the selected individual.
      Throws:
      IncompatibleConfigurationException - when selector is not enabled with the defined configuration or when the Evaluator used throws this exception because of an incorrect dimensionality of the problem.
    • toString

      public String toString()
      Gets a string representing the visualization by console of the Selector.
      Overrides:
      toString in class Object
      Returns:
      the name of the Selector.