public class BlockSetImpl extends AbstractScoresCache implements Serializable, BlockSet, Cloneable
| Constructor and Description |
|---|
BlockSetImpl(BlockSetImpl bs)
Copy constructor.
|
BlockSetImpl(MultipleAlignment alignment)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cached scores.
|
BlockSetImpl |
clone()
Creates and returns an identical copy of this blockset,
including a deep copy of all constituent
Blocks. |
List<Integer> |
getAlignResCounts()
Returns the number of non null positions (residues) of each structure in
the alignment Block Set.
|
List<Block> |
getBlocks()
Returns the List of alignment Blocks of the BlockSet.
|
int |
getCoreLength()
Returns the number of aligned residues (columns) without gaps in the
alignment: the sum of all Block core lengths.
|
MultipleAlignment |
getMultipleAlignment()
Returns the parent MultipleAlignment of the BlockSet.
|
List<javax.vecmath.Matrix4d> |
getTransformations()
Returns a transformation matrix for each structure giving the
3D superimposition information of the multiple structure alignment.
|
int |
length()
Returns the total number of aligned residues (columns) in the alignment:
the sum of all Block lengths.
|
void |
setBlocks(List<Block> blocks)
Set the List of alignment Blocks of the BlockSet.
|
void |
setMultipleAlignment(MultipleAlignment parent)
Set the back-reference to its parent MultipleAlignment.
|
void |
setTransformations(List<javax.vecmath.Matrix4d> transformations)
Set a new superposition for the structures.
|
int |
size()
Returns the number of aligned structures in the BlockSet.
|
String |
toString() |
protected void |
updateCache() |
protected void |
updateCoreLength() |
protected void |
updateLength() |
clone, getScore, getScores, putScoreequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetScore, getScores, putScorepublic BlockSetImpl(MultipleAlignment alignment)
alignment - MultipleAlignment parent of the BlockSet.public BlockSetImpl(BlockSetImpl bs)
Block
s.bs - BlockSet object to be copied.public void clear()
AbstractScoresCacheclear in interface BlockSetclear in class AbstractScoresCachepublic BlockSetImpl clone()
BlockSetBlocks.public MultipleAlignment getMultipleAlignment()
BlockSetgetMultipleAlignment in interface BlockSetBlockSet.setMultipleAlignment(MultipleAlignment)public void setMultipleAlignment(MultipleAlignment parent)
BlockSetNeither removes this BlockSet from its previous alignment, if any, nor adds it to the new parent. Calling code should assure that links to and from the ensemble are consistent and free of memory leaks.
setMultipleAlignment in interface BlockSetparent - the parent MultipleAlignment.BlockSet.getMultipleAlignment()public List<Block> getBlocks()
BlockSetgetBlocks in interface BlockSetBlockSet.setBlocks(List)public void setBlocks(List<Block> blocks)
BlockSet
Also calls Block.setBlockSet(BlockSet) for each argument
setBlocks in interface BlockSetblocks - List of alignment Blocks.BlockSet.getBlocks()public List<javax.vecmath.Matrix4d> getTransformations()
BlockSetgetTransformations in interface BlockSetpublic void setTransformations(List<javax.vecmath.Matrix4d> transformations)
BlockSetsetTransformations in interface BlockSetpublic int length()
BlockSetlength in interface BlockSetBlockSet.getCoreLength(),
BlockSet.size()public int size()
BlockSetsize in interface BlockSetBlockSet.length(),
BlockSet.getCoreLength()public int getCoreLength()
BlockSetgetCoreLength in interface BlockSetBlockSet.length(),
BlockSet.size()protected void updateLength()
protected void updateCoreLength()
protected void updateCache()
public List<Integer> getAlignResCounts()
BlockSetgetAlignResCounts in interface BlockSetCopyright © 2000–2019 BioJava. All rights reserved.