public class DNAAmbPack extends Object implements Packing, Serializable
| Constructor and Description | 
|---|
| DNAAmbPack() | 
| Modifier and Type | Method and Description | 
|---|---|
| FiniteAlphabet | getAlphabet()The FiniteAlphabet this packing is for. | 
| boolean | handlesAmbiguity()
 Flag to state if ambiguities are stored. | 
| byte | pack(Symbol sym)
 Return a byte representing the packing of a symbol. | 
| Symbol | unpack(byte b)
 Return the symbol for a packing. | 
| byte | wordSize()
 The number of bits required to pack a symbol. | 
public DNAAmbPack()
public FiniteAlphabet getAlphabet()
PackinggetAlphabet in interface Packingpublic byte pack(Symbol sym)
PackingReturn a byte representing the packing of a symbol. The bits will be from 1 >> 0 through to 1 >> (wordSize - 1).
public Symbol unpack(byte b)
PackingReturn the symbol for a packing.
public byte wordSize()
PackingThe number of bits required to pack a symbol.
public boolean handlesAmbiguity()
PackingFlag to state if ambiguities are stored.
Packings are free to either store ambiguity information or to discard it (presumably converting all ambiguities to a standard AtomicSymbol and then packing that). You can check wether ambiguities are handled by calling this method.
handlesAmbiguity in interface PackingCopyright © 2014 BioJava. All rights reserved.