public class BlockImpl extends AbstractScoresCache implements Serializable, Block, Cloneable
Block that supports any type of
 sequential alignment with gaps.| Constructor and Description | 
|---|
| BlockImpl(BlockImpl b)Copy constructor. | 
| BlockImpl(BlockSet blockSet)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clear the cached scores. | 
| Block | clone()Creates and returns an identical copy of this block. | 
| List<List<Integer>> | getAlignRes()Returns the double List containing the aligned residues for each
 structure. | 
| List<Integer> | getAlignResCounts()Returns the number of non null positions (residues) of each structure in
 the alignment Block. | 
| BlockSet | getBlockSet()Returns the parent BlockSet of the Block. | 
| int | getCoreLength()Returns the number of aligned positions (columns) without gaps in the
 Block. | 
| int | getFinalIndex(int str)Calculates and returns the last position of the specified structure in
 the alignment that is not null. | 
| int | getFinalResidue(int str)Calculates and returns the last residue of the specified structure in the
 alignment that is not null. | 
| int | getStartIndex(int str)Calculates and returns the first position of the specified structure in
 the alignment that is not null. | 
| int | getStartResidue(int str)Calculates and returns the first residue of the specified structure in
 the alignment that is not null. | 
| int | length()Returns the total number of aligned positions (columns) in the Block. | 
| void | setAlignRes(List<List<Integer>> alignRes)Set the double List containing the aligned residues for each structure. | 
| void | setBlockSet(BlockSet parent)Set the back-reference to its parent BlockSet. | 
| int | size()Returns the number of aligned structures (rows) in the Block. | 
| String | toString() | 
| protected void | updateCoreLength() | 
clone, getScore, getScores, putScoreequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetScore, getScores, putScorepublic BlockImpl(BlockSet blockSet)
blockSet - the parent BlockSet of the BlockImpl instance.public BlockImpl(BlockImpl b)
b - BlockImpl object to be copied.public Block clone()
Blockpublic void clear()
AbstractScoresCacheclear in interface Blockclear in class AbstractScoresCachepublic void setBlockSet(BlockSet parent)
BlocksetBlockSet in interface Blockparent - the parent BlockSet.Block.getBlockSet()public BlockSet getBlockSet()
BlockgetBlockSet in interface BlockBlock.setBlockSet(BlockSet)public List<List<Integer>> getAlignRes()
BlockalignRes.get(structure).get(residue) = alignRes.get(size).get(length).
getAlignRes in interface Block#setAlignRes()public void setAlignRes(List<List<Integer>> alignRes)
BlocksetAlignRes in interface BlockalignRes - a double List of Integers with the aligned residues.Block.getAlignRes()public int length()
Blocklength in interface BlockBlock.getCoreLength();, 
Block.size()public int size()
Blocksize in interface BlockBlock.length(), 
Block.getCoreLength()public int getCoreLength()
BlockgetCoreLength in interface Block#updateCoreLength(), 
Block.length(), 
Block.size()protected void updateCoreLength()
public int getStartIndex(int str)
BlockgetStartIndex in interface Blockstr - structure indexpublic int getStartResidue(int str)
BlockgetStartResidue in interface Blockstr - structure indexpublic int getFinalIndex(int str)
BlockgetFinalIndex in interface Blockstr - structure indexpublic int getFinalResidue(int str)
BlockgetFinalResidue in interface Blockstr - structure indexpublic List<Integer> getAlignResCounts()
BlockgetAlignResCounts in interface BlockCopyright © 2000–2016 BioJava. All rights reserved.