Search in sources :

Example 6 with Parameter

use of gov.sandia.n2a.parms.Parameter in project n2a by frothga.

the class BackendC method getSimulatorParameters.

@Override
public ParameterDomain getSimulatorParameters() {
    ParameterDomain result = new ParameterDomain();
    // default is 1 second
    result.addParameter(new Parameter("duration", "1.0"));
    // alt is "RungeKutta"
    result.addParameter(new Parameter("c.integrator", "Euler"));
    return result;
}
Also used : ParameterDomain(gov.sandia.n2a.parms.ParameterDomain) Parameter(gov.sandia.n2a.parms.Parameter)

Example 7 with Parameter

use of gov.sandia.n2a.parms.Parameter 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

Parameter (gov.sandia.n2a.parms.Parameter)7 ParameterDomain (gov.sandia.n2a.parms.ParameterDomain)7 NodeParameter (gov.sandia.umf.platform.ui.ensemble.tree.NodeParameter)2 NodeSubdomain (gov.sandia.umf.platform.ui.ensemble.tree.NodeSubdomain)2 TNode (replete.gui.controls.simpletree.TNode)2 AccessVariable (gov.sandia.n2a.language.AccessVariable)1 ParameterBundle (gov.sandia.n2a.parms.ParameterBundle)1 ParameterSpecification (gov.sandia.n2a.parms.ParameterSpecification)1 ConstantParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.ConstantParameterSpecification)1 EvenSpacingParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.EvenSpacingParameterSpecification)1 UniformParameterSpecification (gov.sandia.umf.platform.ensemble.params.specs.UniformParameterSpecification)1 ArrayList (java.util.ArrayList)1 ImageIcon (javax.swing.ImageIcon)1