pal.misc
Interface IdGroup

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Alignment, AnnotationAlignment, CharacterAlignment, ParameterizedTree, Tree
All Known Implementing Classes:
AbstractAlignment, pal.alignment.AlignmentReaders.StringAlignment, ClockTree, ConcatenatedAnnotatedAlignment, DistanceMatrix, IndelAnnotatedAlignment, LogParameterizedTree, MultiLocusAnnotatedAlignment, MutationRateModelTree, ParameterizedTree.ParameterizedTreeBase, SimpleAnnotatedAlignment, SimpleCharacterAlignment, SimpleIdGroup, SimpleTree, StrippedAnnotatedAlignment, TimeOrderCharacterData, Tree.TreeBase, UnconstrainedTree

public interface IdGroup
extends java.io.Serializable

An indexed group of identifiers. For example of group of taxa related by a phylogenetic tree.
NOTE: Was called Taxa but not general enough.


Nested Class Summary
static class IdGroup.Utils
           
 
Method Summary
 int getIdCount()
          Returns the number of identifiers in this group
 Identifier getIdentifier(int i)
          Returns the ith identifier.
 void setIdentifier(int i, Identifier id)
          Sets the ith identifier.
 int whichIdNumber(java.lang.String name)
          returns the index of the identifier with the given name.
 

Method Detail

getIdCount

public int getIdCount()
Returns the number of identifiers in this group


getIdentifier

public Identifier getIdentifier(int i)
Returns the ith identifier.


setIdentifier

public void setIdentifier(int i,
                          Identifier id)
Sets the ith identifier.


whichIdNumber

public int whichIdNumber(java.lang.String name)
returns the index of the identifier with the given name.