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;
}
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);
}
}
Aggregations