|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.compbio.phyl.MaximumParsimonyResults
public class MaximumParsimonyResults
Class MaximumParsimonyResults contains the results of a maximum parsimony phylogenetic tree construction algorithm. The results include:
Note: Class MaximumParsimonyResults is not multiple thread safe. It is intended to be used as a per-thread variable in a parallel program.
| Constructor Summary | |
|---|---|
MaximumParsimonyResults()
Construct a new uninitialized maximum parsimony results object. |
|
MaximumParsimonyResults(int capacity)
Construct a new maximum parsimony results object. |
|
MaximumParsimonyResults(MaximumParsimonyResults results)
Construct a new maximum parsimony results object that is a copy of the given maximum parsimony results object. |
|
| Method Summary | |
|---|---|
void |
add(int[] tree,
int score)
Add the given tree with the given parsimony score to this maximum parsimony results object. |
void |
addAll(MaximumParsimonyResults results)
Add all the trees in the given maximum parsimony results object to this maximum parsimony results object. |
int |
capacity()
Returns the capacity of this maximum parsimony results object. |
void |
clear()
Clear this maximum parsimony results object. |
Iterator<int[]> |
iterator()
Get an iterator for the trees in this maximum parsimony results object. |
void |
readExternal(ObjectInput in)
Read this maximum parsimony results object from the given object input stream. |
void |
reduceScore(int score)
Reduce this maximum parsimony results object's score to the given score. |
int |
score()
Returns the parsimony score of this maximum parsimony results object. |
void |
score(int score)
Sets the parsimony score of this maximum parsimony results object. |
int |
size()
Returns the size of this maximum parsimony results object. |
int[] |
tree(int i)
Returns the tree at the given index in this maximum parsimony results object. |
void |
writeExternal(ObjectOutput out)
Write this maximum parsimony results object to the given object output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaximumParsimonyResults()
public MaximumParsimonyResults(int capacity)
capacity - Capacity.
IllegalArgumentException - (unchecked exception) Thrown if capacity ≤ 0.public MaximumParsimonyResults(MaximumParsimonyResults results)
results - Maximum parsimony results object to copy.| Method Detail |
|---|
public void clear()
public void add(int[] tree,
int score)
tree - Tree signature.score - Tree's parsimony score.public void addAll(MaximumParsimonyResults results)
results - Maximum parsimony results object containing trees to
add.public int size()
public int capacity()
public int[] tree(int i)
i - Index, 0 ≤ i ≤ size()-1.
IndexOutOfBoundsException - (unchecked exception) Thrown if i is out of bounds.public int score()
public void score(int score)
score - Parsimony score.public void reduceScore(int score)
score - Parsimony score.public Iterator<int[]> iterator()
iterator in interface Iterable<int[]>
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - Object output stream.
IOException - Thrown if an I/O error occurred.
public void readExternal(ObjectInput in)
throws IOException
readExternal in interface Externalizablein - Object input stream.
IOException - Thrown if an I/O error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||