Class PhenotypeWrapper<O>

java.lang.Object
org.opt4j.core.problem.PhenotypeWrapper<O>
All Implemented Interfaces:
Phenotype

public class PhenotypeWrapper<O> extends Object implements Phenotype
The PhenotypeWrapper might be used if the phenotype class of a given problem is already defined and cannot be extended with the Phenotype marker interface.
See Also:
  • Field Details

    • object

      protected final O object
  • Constructor Details

    • PhenotypeWrapper

      public PhenotypeWrapper(O object)
      Constructs a PhenotypeWrapper for the given object.
      Parameters:
      object - the object
  • Method Details

    • get

      public O get()
      Returns the wrapped object.
      Returns:
      the wrapped object
    • toString

      public String toString()
      Overrides:
      toString in class Object