package ac.essex.gp.treebuilders;

import ac.essex.gp.params.NodeParams;

/**
 * A tree constraint allows us to impose a limitation or constraint on the node builder so that the tree
 * follows a particular format. In practical terms it allows us to specify minimum and maximum numbers of a particular node
 * in the tree.
 *
 * @author Olly Oechsle, University of Essex, Date: 12-Mar-2007
 * @version 1.0
 */
public class TreeConstraint {

    protected NodeParams node;
    protected int minimumRequired;

    public TreeConstraint(NodeParams node, int minNodes) {

        this.node = node;
        this.minimumRequired = minNodes;        

    }

}
