(
int i=0; i lt; templates. size (); i ++) {= store. getMapClone (i);
for (List lt; Item gt; paretoLayer: store. getParetoSetClone ()) {. pack (map, paretoLayer, table. get (algorythmsBox. getSelectedItem ()));
}
double utilityRate=boss. getPackUtility (map);
if (maxUtilityRate lt; utilityRate) {= utilityRate;=i;
}. getRest (). clear ();
}=store. getMapClone (maxUtilityIndex);
for (List lt; Item gt; paretoLayer: store. getParetoSetClone ()) {. pack (map, paretoLayer, table. get (algorythmsBox. getSelectedItem ()));
} (map); resume. setAlgNameReport ((String) ResultViewer. this . algorythmsBox. getSelectedItem ()) ;. setEffectivityReport (map) ;. setRestReport (store) ;. setPackedReport (map) ;. addString (resume. getAlgNameReport ()) ;. addString (resume. getEffectivityReport ()) ;. addString (resume. getRestReport ()) ;. addString (resume. getPackedReport ());
}
}
}
});= new JButton ( Очистити ) ;. addActionListener ( new ActionListener () {
@ Override
public void actionPerformed (ActionEvent arg0) {. this . resumeLoggerPane. clearConsole ();
}
});= new JPanel ( new GridBagLayout ());= new JTree (top) ;. setCellRenderer ( new ResultTreeCellRenderer ());= new JPanel ( new GridBagLayout ()) ;. add ( new JScrollPane (tree), new GridBagConstraints (0, 0, 1, 1, 1, 1, GridBagConstraints. < i align="justify"> NORTHWEST , GridBagConstraints. BOTH , new Insets (0, 0, 0, 0), 0, 0));= new JPanel ( new GridBagLayout ());= new JSplitPane (JSplitPane. HORIZONTAL_SPLIT , treePanel, cBoxPanel) ;. setOneTouchExpandable ( true ) ;. setDividerLocation (350) ;. add ( new JScrollPane (resumeLoggerPane), new GridBagConstraints (0, 0, 2, 1, 1, 1, GridBagConstraints. < i align="justify"> NORTHEAST , GridBagConstraints. BOTH , new Insets (0, 0, 0, 0), 0, 0)) ;. add (algorythmsBox, new GridBagConstraints (0, 1, 1, 1, 0, 0, GridBagConstraints. NORTHEAST , GridBagConstraints. < i align="justify"> NONE , new Insets (0, 0, 0, 0), 0, 0)) ;. add (packButton, new GridBagConstraints (1, 1, 1, 1, 0, 0, GridBagConstraints. NORTHWEST , GridBagConstraints. < i align="justify"> NONE , new Insets (0, 0, 0, 0), 0, 0)) ;. add (clearConsoleButton, new GridBagConstraints (1, 1, 1, 1, 0, 0, GridBagConstraints. NORTHEAST , GridBagConstraints. < i align="justify"> NONE , new Insets (0, 0, 0, 0), 0, 0)) ;. add (splitPane, new GridBagConstraints (0, 0, 1, 1, 1, 1, GridBagConstraints. NORTHWEST , GridBagConstraints. < i align="justify"> BOTH , new Insets (5, 5, 5,5), 0, 0));
}
public void refreshTree (SortedMap lt; Container, List lt; Item gt ; gt; map) {root= new DefaultMutableTreeNode ( Упакування об'єкти raquo ;, true ); (root, map);
}
private void createTree (DefaultMutableTreeNode root, SortedMap lt; Container, List lt; Item gt; gt; map) {
((DefaultMutableTreeNode) ((DefaultTreeModel) tree. getModel ()). getRoot ()). removeAllChildren ();
((DefaultTreeModel) tree. getModel ()). setRoot (root); container= null ; item= null ; containerField= null ; itemField= null ; lt; Container gt; containers=map. keySet ();
for (Container c: containers) {= new Defau...