Package pal.misc
Interface IdGroup
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
Alignment,AnnotationAlignment,CharacterAlignment,ParameterizedTree,Tree
- All Known Implementing Classes:
AbstractAlignment,AlignmentDistanceMatrix,AlignmentReaders.PhylipClustalAlignment,AlignmentReaders.UnalignedAlignment,BootstrappedAlignment,ClockTree,ClusterTree,ConcatenatedAlignment,ConcatenatedAnnotatedAlignment,DemographicClockTree,DistanceMatrix,GapBalancedAlignment,IndelAlignment,IndelAnnotatedAlignment,JukesCantorDistanceMatrix,JumbledAlignment,LogParameterizedTree,MultiLocusAnnotatedAlignment,MutationRateModelTree,NeighborJoiningTree,ParameterizedTree.ParameterizedTreeBase,ReadAlignment,ReadAlignmentOld,ReadDistanceMatrix,ReadTree,SimpleAlignment,SimpleAnnotatedAlignment,SimpleCharacterAlignment,SimpleIdGroup,SimpleTree,SimulatedAlignment,SitePattern,StrippedAlignment,StrippedAnnotatedAlignment,SUPGMADistanceMatrix,SUPGMATree,TimeOrderCharacterData,Tree.TreeBase,TreeDistanceMatrix,UnconstrainedTree,UPGMATree
public interface IdGroup extends java.io.SerializableAn indexed group of identifiers. For example of group of taxa related by a phylogenetic tree.
NOTE: Was called Taxa but not general enough.- Version:
- $Id: IdGroup.java,v 1.10 2002/10/27 05:46:28 matt Exp $
- Author:
- Alexei Drummond
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIdGroup.Utils
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetIdCount()Returns the number of identifiers in this groupIdentifiergetIdentifier(int i)Returns the ith identifier.voidsetIdentifier(int i, Identifier id)Sets the ith identifier.intwhichIdNumber(java.lang.String name)returns the index of the identifier with the given name.
-
-
-
Method Detail
-
getIdCount
int getIdCount()
Returns the number of identifiers in this group
-
getIdentifier
Identifier getIdentifier(int i)
Returns the ith identifier.
-
setIdentifier
void setIdentifier(int i, Identifier id)Sets the ith identifier.
-
whichIdNumber
int whichIdNumber(java.lang.String name)
returns the index of the identifier with the given name.
-
-