use of gov.sandia.n2a.parms.ParameterKeyPath in project n2a by frothga.
the class FixedParameterSpacePanel method updateDetailsPanelFromTable.
protected void updateDetailsPanelFromTable(JTable tblParamSets) {
int col = tblParamSets.getSelectedColumn();
int row = tblParamSets.getSelectedRow();
int run = (Integer) mdlParamSets.getValueAt(row, 0);
if (col == -1 || row == -1) {
pnlParamDetails.clearLeft("No Cell Selected");
} else {
pnlParamDetails.clearLeft();
pnlParamDetails.addLeft("Run #", run, false, false, true);
if (col > 0) {
ParameterKeyPath P = (ParameterKeyPath) mdlParamSets.getParam(col);
pnlParamDetails.addLeft("Parameter", P.toHtml(), false, true, true);
pnlParamDetails.addLeft("Value", mdlParamSets.getValueAt(row, col), true, false, false);
}
}
}
use of gov.sandia.n2a.parms.ParameterKeyPath 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.ParameterKeyPath 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>";
}
Aggregations