Alignments
Class Alignment.UniqueSite

java.lang.Object
  extended by Alignments.Site
      extended by Alignments.Alignment.UniqueSite
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Alignment

public class Alignment.UniqueSite
extends Site

Used to represent a unique site in an alignment. Augments the normal site class with a count of how often the site occurs

See Also:
Serialized Form

Constructor Summary
Alignment.UniqueSite(Site s, int c)
          Default constructor
 
Method Summary
 int getCount()
          Get the number of times the site occurs in the related alignment
 java.lang.String toString()
           
 
Methods inherited from class Alignments.Site
equals, getAmbiguous, getCharacter, getInitialNodeLikelihoods, getNum, getRawCharacter, getSiteClass, getTaxa, hashCode, limitToTaxa, recode, recode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alignment.UniqueSite

public Alignment.UniqueSite(Site s,
                            int c)
Default constructor

Parameters:
s - The site
c - How often the site occurs
Method Detail

getCount

public int getCount()
Get the number of times the site occurs in the related alignment

Returns:
The number of times the site occurs

toString

public java.lang.String toString()
Overrides:
toString in class Site