public MOPParameters sortParam(MOPParameters set) {
    MOPParameters ret = new MOPParameters();

    for (MOPParameter p : this.parameters) {
      if (set.contains(p)) ret.add(p);
    }

    for (MOPParameter p : set.parameters) {
      if (!ret.contains(p)) ret.add(p);
    }
    return ret;
  }
 public boolean equals(MOPParameters set) {
   if (set == null) return false;
   if (this.size() != set.size()) return false;
   return this.contains(set) && set.contains(this);
 }