|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number orbital.algorithm.evolutionary.Gene.Number orbital.algorithm.evolutionary.Gene.Integer orbital.algorithm.evolutionary.Gene.BoundedInteger
public static class Gene.BoundedInteger
Bounded integer gene data.
This implementation uses an Integer
bounded to a specified range as gene data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface orbital.algorithm.evolutionary.Gene |
---|
Gene.BitSet, Gene.BoundedFloat, Gene.BoundedInteger, Gene.Fixed, Gene.Float, Gene.Integer, Gene.List, Gene.Number |
Constructor Summary | |
---|---|
Gene.BoundedInteger(int min,
int max)
|
|
Gene.BoundedInteger(int data,
int min,
int max)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this gene. |
boolean |
equals(java.lang.Object o)
Checks two gene numbers for equality according to their doubleValue. |
int |
getMax()
Get the upper bound for value. |
int |
getMin()
Get the lower bound for value. |
int |
hashCode()
Calculates a hash code according to the doubleValue. |
void |
set(int n)
|
Methods inherited from class orbital.algorithm.evolutionary.Gene.Integer |
---|
doubleValue, get, intValue, recombine, set, toString |
Methods inherited from class orbital.algorithm.evolutionary.Gene.Number |
---|
distanceMeasure, floatValue, inverse, longValue, mutate |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Gene.BoundedInteger(int data, int min, int max)
public Gene.BoundedInteger(int min, int max)
Method Detail |
---|
public java.lang.Object clone()
Gene
clone
in interface Gene
clone
in class Gene.Integer
public int hashCode()
Gene.Number
hashCode
in interface Gene
hashCode
in class Gene.Number
public boolean equals(java.lang.Object o)
Gene.Number
equals
in interface Gene
equals
in class Gene.Number
public int getMin()
public int getMax()
public void set(int n)
set
in class Gene.Integer
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |