source: src/main/java/genius/gui/tree/UncertaintySettingsPanel.java@ 227

Last change on this file since 227 was 227, checked in by Tim Baarslag, 5 years ago

Added elicitationCost GUI, using DoubleModel

File size: 1.0 KB
Line 
1package genius.gui.tree;
2
3import javax.swing.JLabel;
4
5import genius.gui.panels.CheckboxPanel;
6import genius.gui.panels.DoublePanel;
7import genius.gui.panels.SliderPanel;
8import genius.gui.panels.VflowPanelWithBorder;
9
10@SuppressWarnings("serial")
11public class UncertaintySettingsPanel extends VflowPanelWithBorder {
12 public UncertaintySettingsPanel(UncertaintySettingsModel model) {
13 super("Uncertainty settings");
14 add(new CheckboxPanel("Enable preference uncertainty", model.getIsEnabled()));
15 add(new JLabel(
16 "(Maximum number of rankings = " + model.getTotalBids() + ")"));
17 add(new SliderPanel("Nr. of rankings", model.getComparisons()));
18 add(new SliderPanel("Nr. of errors ", model.getErrors()));
19
20 add(new DoublePanel("Elicitation cost: ", model.getElicitationCost()));
21
22 add(new CheckboxPanel(
23 "Fixed seed (for reproducible results)",
24 model.getIsFixedSeed()));
25 add(new CheckboxPanel(
26 "Grant parties access to real utility functions (experimental setup)",
27 model.getIsExperimental()));
28 }
29}
Note: See TracBrowser for help on using the repository browser.