[1] | 1 | package genius.gui.uncertainty;
|
---|
| 2 |
|
---|
| 3 | import genius.core.repository.ProfileRepItem;
|
---|
| 4 | import genius.core.uncertainty.UncertainPreferenceContainer;
|
---|
| 5 | import genius.gui.panels.BooleanModel;
|
---|
| 6 |
|
---|
| 7 | public 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 | }
|
---|