Constraints
Class NoConstraints

java.lang.Object
  extended by Constraints.NoConstraints
All Implemented Interfaces:
Constrainer

public class NoConstraints
extends java.lang.Object
implements Constrainer

Simple implementation of Constrainer that imposes no constraints

Version:
1.2

Constructor Summary
NoConstraints(java.util.List<java.lang.String> allStates)
          Constructor
 
Method Summary
 SiteConstraints getConstraints(Tree t, Site s)
          Gets the consraints on an the external nodes of a site given the tree and the state of the leafs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoConstraints

public NoConstraints(java.util.List<java.lang.String> allStates)
Constructor

Parameters:
allStates - The set of all possible states. Needed as the internal nodes will be constrained to these values. As these are all the posisble values there are no constraints.
Method Detail

getConstraints

public SiteConstraints getConstraints(Tree t,
                                      Site s)
Description copied from interface: Constrainer
Gets the consraints on an the external nodes of a site given the tree and the state of the leafs.

Specified by:
getConstraints in interface Constrainer
Parameters:
t - The tree
s - The site (need not include data on internal leaves)
Returns:
Constraints on that site