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