public interface NumericGene<N extends Number & Comparable<? super N>,G extends NumericGene<N,G>> extends BoundedGene<N,G>
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the value of the specified gene as an byte.
|
double |
doubleValue()
Returns the value of the specified gene as an double.
|
float |
floatValue()
Returns the value of the specified gene as an float.
|
int |
intValue()
Returns the value of the specified gene as an int.
|
long |
longValue()
Returns the value of the specified gene as an long.
|
G |
newInstance(Number number)
Create a new gene from the given
value and the current bounds. |
short |
shortValue()
Returns the value of the specified gene as an short.
|
getMax, getMin
copy, getAllele, newInstance
isValid
compareTo
byte byteValue()
byte
.short shortValue()
short
.int intValue()
int
.long longValue()
long
.float floatValue()
float
.double doubleValue()
double
.G newInstance(Number number)
BoundedGene
value
and the current bounds.newInstance
in interface BoundedGene<N extends Number & Comparable<? super N>,G extends NumericGene<N,G>>
number
- the value of the new gene.© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)