|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sbc.orthoxml.Scoreable sbc.orthoxml.Group
public class Group
The group class represents a group of orthologous or paralogous genes
depending on its type. Groups can be nested to represent trees. Multiple
scores can be assigned to the group and each gene in the group. Genes are
encapsulated into Membership
objects that hold the gene and scores for the
gene.
Nested Class Summary | |
---|---|
static class |
Group.Type
The type of a group i.e. |
Constructor Summary | |
---|---|
Group()
|
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
definedProperties()
Returns the properties defined for the group. |
java.util.List<Group> |
getChildren()
Returns the children (nested groups) of the group. |
java.util.List<Gene> |
getGenes()
Convenience method to get all genes that are a member of the group without the membership nesting. |
java.lang.String |
getId()
Returns the id of the group. |
java.util.List<Membership> |
getMembers()
Returns the genes that a member of the group nested into Membership objects. |
java.util.List<Gene> |
getNestedGenes()
Convenience method to get all gene in the group and in groups that are nested into the group. |
java.util.List<Membership> |
getNestedMembers()
Convenience method to get all memberships of the group and of groups that are nested into the group. |
Group |
getParent()
Returns the parent of group e.g. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the property or null if the property has no value or is undefined. |
Group.Type |
getType()
Returns the type of the group. |
boolean |
hasProperty(java.lang.String key)
Returns true if the property is defined for the group and false otherwise. |
void |
setChildren(java.util.List<Group> children)
|
void |
setGenes(java.util.List<Gene> genes)
Convenience method to set gene members without a score. |
void |
setId(java.lang.String id)
Sets the id of the group. |
void |
setMembers(java.util.List<Membership> members)
Sets the genes that are members of group as Membership objects. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a key-value property. |
void |
setType(Group.Type type)
Sets the type of the group. |
Methods inherited from class sbc.orthoxml.Scoreable |
---|
addScore, getDefinedScores, getScores |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Group()
Method Detail |
---|
public java.util.List<Gene> getNestedGenes()
public java.util.List<Membership> getNestedMembers()
public Group getParent()
public void setChildren(java.util.List<Group> children)
children
- the children to setpublic java.util.List<Group> getChildren()
public void setMembers(java.util.List<Membership> members)
Membership
objects.
members
- the members of the grouppublic void setGenes(java.util.List<Gene> genes)
genes
- the gene members of the grouppublic java.util.List<Gene> getGenes()
public java.util.List<Membership> getMembers()
Membership
objects. Use @{link #getNestedMembers()} to get all
members in the group and in the children of the group.
public void setType(Group.Type type)
type
- the type to setpublic Group.Type getType()
public void setId(java.lang.String id)
id
- the id to setpublic java.lang.String getId()
public void setProperty(java.lang.String key, java.lang.String value)
key
- the of the propertyvalue
- the value of the propertypublic java.lang.String getProperty(java.lang.String key)
key
- the key of the property
public boolean hasProperty(java.lang.String key)
key
- the key of the property
public java.util.Set<java.lang.String> definedProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |