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
Block s. |
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, putScore
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getScore, getScores, putScore
public BlockSetImpl(MultipleAlignment alignment)
alignment
- MultipleAlignment parent of the BlockSet.public BlockSetImpl(BlockSetImpl bs)
Block
s.bs
- BlockSet object to be copied.public void clear()
AbstractScoresCache
clear
in interface BlockSet
clear
in class AbstractScoresCache
public BlockSetImpl clone()
BlockSet
Block
s.public MultipleAlignment getMultipleAlignment()
BlockSet
getMultipleAlignment
in interface BlockSet
BlockSet.setMultipleAlignment(MultipleAlignment)
public void setMultipleAlignment(MultipleAlignment parent)
BlockSet
Neither 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 BlockSet
parent
- the parent MultipleAlignment.BlockSet.getMultipleAlignment()
public List<Block> getBlocks()
BlockSet
getBlocks
in interface BlockSet
BlockSet.setBlocks(List)
public void setBlocks(List<Block> blocks)
BlockSet
Also calls Block.setBlockSet(BlockSet)
for each argument
setBlocks
in interface BlockSet
blocks
- List of alignment Blocks.BlockSet.getBlocks()
public List<javax.vecmath.Matrix4d> getTransformations()
BlockSet
getTransformations
in interface BlockSet
public void setTransformations(List<javax.vecmath.Matrix4d> transformations)
BlockSet
setTransformations
in interface BlockSet
public int length()
BlockSet
length
in interface BlockSet
BlockSet.getCoreLength()
,
BlockSet.size()
public int size()
BlockSet
size
in interface BlockSet
BlockSet.length()
,
BlockSet.getCoreLength()
public int getCoreLength()
BlockSet
getCoreLength
in interface BlockSet
BlockSet.length()
,
BlockSet.size()
protected void updateLength()
protected void updateCoreLength()
protected void updateCache()
public List<Integer> getAlignResCounts()
BlockSet
getAlignResCounts
in interface BlockSet
Copyright © 2000–2016 BioJava. All rights reserved.