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

Last change on this file since 345 was 242, checked in by Adel Magra, 5 years ago

Updated user guide with information about the User class (sections 1.2, 4.2-3).

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