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

Last change on this file since 1 was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 1.6 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 private final ProfileRepItem profile;
16
17 public UncertaintyOptionModel(ProfileRepItem profile){
18 this.profile = profile;
19 this.perceivedUtilModel = new PerceivedUtilityModel(profile);
20 this.pairwiseComparisonModel = new PairwiseComparisonModel(profile);
21 }
22
23
24
25 public UncertainPreferenceContainer getUncertainPrefContainer() {
26 System.out.println(perceivedUtilActivationModel.getValue());
27 System.out.println(perceivedUtilModel.getUncertainPrefContainer());
28
29 System.out.println(pairwiseCompActivationModel.getValue());
30 if (perceivedUtilActivationModel.getValue() == true) return perceivedUtilModel.getUncertainPrefContainer();
31 else if (pairwiseCompActivationModel.getValue() == true) return pairwiseComparisonModel.getUncertainPrefContainer();
32 else return null;
33 }
34
35 public PerceivedUtilityModel getPerceivedUtilModel() {
36 return perceivedUtilModel;
37 }
38
39 public PairwiseComparisonModel getPairwiseCompModel() {
40 return pairwiseComparisonModel;
41 }
42
43 public BooleanModel getPerceivedUtilActivationModel() {
44 return perceivedUtilActivationModel;
45 }
46
47 public BooleanModel getPairwiseCompActivationModel() {
48 return pairwiseCompActivationModel;
49 }
50
51}
Note: See TracBrowser for help on using the repository browser.