X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2Fbind%2FBindingGroup.java;fp=src%2Fedu%2Fberkeley%2Fqfat%2Fbind%2FBindingGroup.java;h=00a7dd70b7d13040035c03810ba6c0c63e2aa014;hp=9356ec455b6aceae2696800a9b520e38947629c0;hb=8084a784db5cd0f688d230ab9624ab6966265f39;hpb=7c73c0f732bbadef09d098b7f4542b060fdacc7d diff --git a/src/edu/berkeley/qfat/bind/BindingGroup.java b/src/edu/berkeley/qfat/bind/BindingGroup.java index 9356ec4..00a7dd7 100644 --- a/src/edu/berkeley/qfat/bind/BindingGroup.java +++ b/src/edu/berkeley/qfat/bind/BindingGroup.java @@ -10,8 +10,16 @@ import java.util.*; */ class BindingGroup implements Iterable { + /** the arbitrarily-chosen master of the binding group */ private T master = null; - private AffineConstraint constraint = new AffineConstraint.All(); + + /** the affine constraint, in master coordinates, of this binding group */ + private AffineConstraint constraint = AffineConstraint.ALL; + + /** + * For each member of the binding group, the matrix which must be + * multiplied by the master to get the member's position + */ private HashMap matrices = new HashMap(); public BindingGroup(T master) { @@ -19,6 +27,7 @@ class BindingGroup implements Iterable { matrices.put(master, Matrix.ONE); } + /** the size of this binding group */ int size() { return matrices.size(); } /** merge another binding group into this one */