Documentation of 'org.jgap.supergenes.Validator' Java class
Validator
org.jgap.supergenes

Class Validator

  • All Implemented Interfaces:
    SupergeneValidator


    public abstract class Validator
    extends java.lang.Object
    implements SupergeneValidator
    The abstract supergeneValidator, hiding the getPersisten() and setFromPersistent() methods that are not always required.
    Since:
    2.0
    • Method Detail

      • isValid

        public abstract boolean isValid(Gene[] a_genes,
                                        Supergene a_for_supergene)
        Return true if this gene combination is valid for the given supergene
        Specified by:
        isValid in interface SupergeneValidator
      • getPersistent

        public java.lang.String getPersistent()
        The default implementation returns an empty string.
        Specified by:
        getPersistent in interface SupergeneValidator
        Returns:
        persistent string representation (if needed) of this validator. The method name is different allowing the same class to implement both Supergene and supergeneValidator.
      • setFromPersistent

        public void setFromPersistent(java.lang.String a_from)
        Set a persistend string representation (if needed) for this validator. The method name is different allowing the same class to implement both Supergene and supergeneValidator. The default implementation does nothing.
        Specified by:
        setFromPersistent in interface SupergeneValidator
      • getConfiguration

        public Configuration getConfiguration()
        Returns:
        the configuration used
        Since:
        3.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.