source: src/main/java/genius/gui/uncertainty/UncertaintyOptionModel.java@ 30

Last change on this file since 30 was 30, checked in by dimitrios, 7 years ago

Additions to uncertainty framework to support tournament configuration and command line running

File size: 1.4 KB
Line 
1package genius.gui.uncertainty;
2
3import genius.core.repository.ProfileRepItem;
4import genius.core.uncertainty.UncertainPreferenceContainer;
5import genius.gui.panels.BooleanModel;
6
7public class UncertaintyOptionModel {
8
9 private BooleanModel perceivedUtilActivationModel = new BooleanModel(false);;
10 private BooleanModel pairwiseCompActivationModel = new BooleanModel(false);;
11
12 private PerceivedUtilityModel perceivedUtilModel;
13 private PairwiseComparisonModel pairwiseComparisonModel;
14
15
16 public UncertaintyOptionModel(ProfileRepItem profile){
17 this.perceivedUtilModel = new PerceivedUtilityModel(profile);
18 this.pairwiseComparisonModel = new PairwiseComparisonModel(profile);
19 }
20
21
22
23 public UncertainPreferenceContainer getUncertainPrefContainer() {
24 if (perceivedUtilActivationModel.getValue() == true) return perceivedUtilModel.getUncertainPrefContainer();
25 else if (pairwiseCompActivationModel.getValue() == true) return pairwiseComparisonModel.getUncertainPrefContainer();
26 else return null;
27 }
28
29 public PerceivedUtilityModel getPerceivedUtilModel() {
30 return perceivedUtilModel;
31 }
32
33 public PairwiseComparisonModel getPairwiseCompModel() {
34 return pairwiseComparisonModel;
35 }
36
37 public BooleanModel getPerceivedUtilActivationModel() {
38 return perceivedUtilActivationModel;
39 }
40
41 public BooleanModel getPairwiseCompActivationModel() {
42 return pairwiseCompActivationModel;
43 }
44
45}
Note: See TracBrowser for help on using the repository browser.