*/
public void actionPerformed(ActionEvent aEvent) {
//String command = aEvent.getActionCommand();
if (aEvent.getSource() == _runMinimalSpanSolverButton) {
try {
_uConstraints = new UnitConstraints(_model, _entities,
_relations);
_solutions = _uConstraints.minimalSpanSolutions();
} catch (IllegalActionException e) {
MessageHandler.error("Minimal Span Solver failed: ", e);
return;
}
_solutionsListModel.setSolutions(_solutions);
_solutionsList.setModel(_solutionsListModel);
} else if (aEvent.getSource() == _runFullSolverButton) {
_solutionsList.clearSelection();
try {
_uConstraints = new UnitConstraints(_model, _entities,
_relations);
Solution solution = _uConstraints.completeSolution();
_fullSolutionResult.setText(solution.getShortStateDesc());