@Override
  public Collection<Constraint> getConstraints() {
    Collection<Constraint> constraints = new HashSet();

    constraints.addAll(unaryConstraints.getAll());
    constraints.addAll(binaryConstraints.getAll());

    return constraints;
  }
 public Collection<BinaryConstraintEnd> getBinaryConstraints() {
   return binaryConstraints.getAll();
 }