Search in sources :

Example 11 with ParameterDomain

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;
}
Also used : ConstantParameterSpecification(gov.sandia.umf.platform.ensemble.params.specs.ConstantParameterSpecification) ParameterSpecification(gov.sandia.n2a.parms.ParameterSpecification) UniformParameterSpecification(gov.sandia.umf.platform.ensemble.params.specs.UniformParameterSpecification) EvenSpacingParameterSpecification(gov.sandia.umf.platform.ensemble.params.specs.EvenSpacingParameterSpecification) ParameterKeyPath(gov.sandia.n2a.parms.ParameterKeyPath) ParameterDomain(gov.sandia.n2a.parms.ParameterDomain) ParameterSpecGroup(gov.sandia.umf.platform.ensemble.params.groups.ParameterSpecGroup)

Example 12 with ParameterDomain

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>";
}
Also used : ParameterKeyPath(gov.sandia.n2a.parms.ParameterKeyPath) ParameterDomain(gov.sandia.n2a.parms.ParameterDomain)

Example 13 with ParameterDomain

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);
    }
}
Also used : NodeSubdomain(gov.sandia.umf.platform.ui.ensemble.tree.NodeSubdomain) TNode(replete.gui.controls.simpletree.TNode) NodeParameter(gov.sandia.umf.platform.ui.ensemble.tree.NodeParameter) ParameterDomain(gov.sandia.n2a.parms.ParameterDomain) Parameter(gov.sandia.n2a.parms.Parameter) NodeParameter(gov.sandia.umf.platform.ui.ensemble.tree.NodeParameter)

Aggregations

ParameterDomain (gov.sandia.n2a.parms.ParameterDomain)13 Parameter (gov.sandia.n2a.parms.Parameter)7 NodeParameter (gov.sandia.umf.platform.ui.ensemble.tree.NodeParameter)4 NodeSubdomain (gov.sandia.umf.platform.ui.ensemble.tree.NodeSubdomain)4 TNode (replete.gui.controls.simpletree.TNode)4 ParameterBundle (gov.sandia.n2a.parms.ParameterBundle)3 ArrayList (java.util.ArrayList)3 ParameterKeyPath (gov.sandia.n2a.parms.ParameterKeyPath)2 ParameterSpecification (gov.sandia.n2a.parms.ParameterSpecification)2 ConstantParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.ConstantParameterSpecification)2 EvenSpacingParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.EvenSpacingParameterSpecification)2 UniformParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.UniformParameterSpecification)2 TreePath (javax.swing.tree.TreePath)2 NodeBase (replete.gui.controls.simpletree.NodeBase)2 AccessVariable (gov.sandia.n2a.language.AccessVariable)1 ConstantParameterSpecGroup (gov.sandia.umf.platform.ensemble.params.groups.ConstantParameterSpecGroup)1 ParameterSpecGroup (gov.sandia.umf.platform.ensemble.params.groups.ParameterSpecGroup)1 TransferableParameterBundles (gov.sandia.umf.platform.ui.ensemble.TransferableParameterBundles)1 Cursor (java.awt.Cursor)1 ImageIcon (javax.swing.ImageIcon)1