use of gov.sandia.n2a.parms.ParameterDomain in project n2a by frothga.
the class ParameterSpecGroupPanel method getParameterSpecGroup.
public ParameterSpecGroup getParameterSpecGroup() {
ParameterSpecGroup group = new ParameterSpecGroup(validCardinality);
for (ParameterSpecPanel pnlSpec : specPanels.keySet()) {
// TODO: hierarchical?
Object paramKey = pnlSpec.getParamBundle().getParameter().getKey();
List<ParameterDomain> domains = pnlSpec.getParamBundle().getDomains();
ParameterKeyPath keyPath = new ParameterKeyPath();
for (ParameterDomain domain : domains) {
keyPath.add(domain.getName());
}
keyPath.add(paramKey);
ParameterSpecification spec = pnlSpec.getSpecification();
group.add(keyPath, spec);
}
return group;
}
use of gov.sandia.n2a.parms.ParameterDomain in project n2a by frothga.
the class ParameterSpecPanel method constructParamLabelText.
private Object constructParamLabelText() {
ParameterKeyPath P = new ParameterKeyPath();
for (ParameterDomain domain : bundle.getDomains()) {
P.add(domain.getName());
}
P.add(bundle.getParameter().getKey());
return "<html>" + P.toHtml(true) + "</html>";
}
use of gov.sandia.n2a.parms.ParameterDomain in project n2a by frothga.
the class OutputParameterPanel method populate.
// AMap wrap operation
private void populate(TNode nParent, ParameterDomain domain) {
for (ParameterDomain subdomain : domain.getSubdomains()) {
TNode nSubdomain = new TNode(new NodeSubdomain(subdomain));
populate(nSubdomain, subdomain);
nParent.add(nSubdomain);
}
for (Parameter param : domain.getParameters()) {
TNode nParam = new TNode(new NodeParameter(param));
nParent.add(nParam);
}
}
Aggregations