source: src/main/java/genius/gui/tree/WeightSliderCellEditor.java@ 126

Last change on this file since 126 was 126, checked in by Aron Hammond, 6 years ago

Added function to calculate opposition to MultiLateralAnalysis.java

Moved code to add RLBOA listeners to RLBOAUtils is misc package

Added input for strategyParameters to SessionPanel (gui)

!! close SessionInfo after tournament; this caused /tmp/ to fill up with GeniusData files

Our own package:

  • Added opponents and strategies that are mentioned in the report
  • Change class hierarchy, agents can now extend from RLBOAagentBilateral to inherit RL functionality.
  • States extend from AbstractState
File size: 885 bytes
Line 
1package genius.gui.tree;
2
3import java.awt.*;
4
5import javax.swing.*;
6import javax.swing.table.*;
7
8/**
9*
10* @author Richard Noorlandt
11*
12*/
13
14public class WeightSliderCellEditor extends AbstractCellEditor implements TableCellEditor, TableCellRenderer {
15
16 private static final long serialVersionUID = -18549774953873547L;
17 //Attributes
18 NegotiatorTreeTableModel tableModel;
19
20 //Constructors
21
22 public WeightSliderCellEditor(NegotiatorTreeTableModel model) {
23 super();
24 tableModel = model;
25 }
26
27 //Methods
28 public Object getCellEditorValue() {
29 return null;
30 }
31
32 public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
33 return (WeightSlider)value;
34 }
35
36 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
37 return (WeightSlider)value;
38 }
39}
Note: See TracBrowser for help on using the repository browser.