|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object softparsmap.Family
This class represents a gene family. Since the number of families can be large, this class will only contain a reference to its family group, its family number, and how many sequences it contains.
Constructor Summary | |
Family(FamilyGroup familyGroup,
java.lang.Integer familyNumber)
A family needs to know from which family group it comes from. |
Method Summary | |
Family |
cloneFamily()
Returns a copy of this family. |
int |
compareTo(java.lang.Object o)
Compare the family number between this and a second family. |
boolean |
equals(java.lang.Object o)
The families are the same if their family numbers are the same. |
FamilyGroup |
getFamilyGroup()
Returns the family group to which this family belongs. |
java.lang.Integer |
getFamilyNumber()
Returns the family number. |
GeneNode |
getGeneTree()
Returns the gene tree. |
int |
getNumberOfSequences()
Returns the number of sequences of this family. |
PropertyFile |
getPropertyFile()
Returns the property file. |
int |
hashCode()
Returns the hash code and it has to agree with equals(java.lang.Object) . |
java.lang.String |
toString()
Return the family number in string format. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Family(FamilyGroup familyGroup, java.lang.Integer familyNumber)
familyGroup
- is the family group this family belongs tofamilyNumber
- is the number of this familyFamilyGroup
Method Detail |
public PropertyFile getPropertyFile()
PropertyFile
public Family cloneFamily()
public java.lang.Integer getFamilyNumber()
public FamilyGroup getFamilyGroup()
FamilyGroup
public GeneNode getGeneTree()
GeneNode
public int getNumberOfSequences()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- is the second famliy
public boolean equals(java.lang.Object o)
o
- is the other family.
public int hashCode()
equals(java.lang.Object)
.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |