|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jenes.chromosome.BitwiseChromosome.BitCoding<java.lang.Integer> jenes.chromosome.codings.ByteCoding
public class ByteCoding
Represents a byte coding with 8 bits unsigned representation. The range representable by this coding is [0,255].
GrayCoding
,
IntCoding
,
ShortCoding
,
WordCoding
,
BitwiseChromosome.BitSize
,
BooleanCoding
Field Summary |
---|
Fields inherited from class jenes.chromosome.BitwiseChromosome.BitCoding |
---|
SIZE |
Constructor Summary | |
---|---|
ByteCoding()
Default constructor |
Method Summary | |
---|---|
java.lang.Integer |
decode(int bits)
Returns the value of coded bits |
int |
encode(java.lang.Integer value)
Returns the bits coding the value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteCoding()
Method Detail |
---|
public final java.lang.Integer decode(int bits)
decode
in class BitwiseChromosome.BitCoding<java.lang.Integer>
bits
- coding the value
public final int encode(java.lang.Integer value)
encode
in class BitwiseChromosome.BitCoding<java.lang.Integer>
value
- the value to be coded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |