Documentation of 'org.jgap.impl.NumberGene' Java class
NumberGene
org.jgap.impl

Class NumberGene

    • Method Detail

      • compareTo

        public int compareTo(java.lang.Object a_other)
        Compares this NumberGene with the specified object (which must also be a NumberGene) for order, which is determined by the number value of this Gene compared to the one provided for comparison.
        Parameters:
        a_other - the NumberGene to be compared to this NumberGene
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the object provided for comparison
        Throws:
        java.lang.ClassCastException - if the specified object's type prevents it from being compared to this NumberGene
        Since:
        1.1
      • setAllele

        public void setAllele(java.lang.Object a_newValue)
        Sets the value (allele) of this Gene to the new given value. This class expects the value to be an instance of current type (e.g. Integer). If the value is above or below the upper or lower bounds, it will be mappped to within the allowable range.
        Parameters:
        a_newValue - the new value of this Gene instance
        Since:
        1.1

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.