public Set getParamsForDim(Dimension dim) {
        TreeSet params = new TreeSet();

        for (Iterator i = parameters.values().iterator(); i.hasNext();) {
            Parameter p = (Parameter)(i.next());

            if (p.isDimensionedBy(dim)) {
                params.add(p);
            }
        }
        return (params);
    }