|
||||||||||
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.Boolean> jenes.chromosome.codings.BooleanCoding
public class BooleanCoding
Represents a boolean coding with 1 bit representation. The value false is associated to 0, and true to 1.
ByteCoding
,
IntCoding
,
ShortCoding
,
WordCoding
,
BitwiseChromosome.BitSize
Field Summary |
---|
Fields inherited from class jenes.chromosome.BitwiseChromosome.BitCoding |
---|
SIZE |
Constructor Summary | |
---|---|
BooleanCoding()
Default constructor |
Method Summary | |
---|---|
java.lang.Boolean |
decode(int bits)
Returns the value of coded bits. |
int |
encode(java.lang.Boolean obj)
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 BooleanCoding()
Method Detail |
---|
public java.lang.Boolean decode(int bits)
decode
in class BitwiseChromosome.BitCoding<java.lang.Boolean>
bits
- coding the object
public int encode(java.lang.Boolean obj)
encode
in class BitwiseChromosome.BitCoding<java.lang.Boolean>
obj
- the boolean value to be coded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |