| @@ 82-108 (lines=27) @@ | ||
| 79 | /** |
|
| 80 | * |
|
| 81 | */ |
|
| 82 | @Override |
|
| 83 | protected List<Flaw> doFindFlaws() { |
|
| 84 | ||
| 85 | // check load parameters |
|
| 86 | if (!this.load) { |
|
| 87 | this.load(); |
|
| 88 | } |
|
| 89 | ||
| 90 | // list of goals |
|
| 91 | List<Flaw> flaws = new ArrayList<>(); |
|
| 92 | // check pending decisions |
|
| 93 | for (Decision decision : this.component.getPendingDecisions()) { |
|
| 94 | ||
| 95 | // add sub-goal |
|
| 96 | Goal goal = new Goal(FLAW_COUNTER.getAndIncrement(), this.component, decision); |
|
| 97 | // check if external component |
|
| 98 | if (decision.getComponent().isExternal()) { |
|
| 99 | // set mandatory unification |
|
| 100 | goal.setMandatoryUnification(); |
|
| 101 | } |
|
| 102 | ||
| 103 | // add goal to flaws |
|
| 104 | flaws.add(goal); |
|
| 105 | } |
|
| 106 | ||
| 107 | // get flaws |
|
| 108 | return flaws; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| @@ 77-103 (lines=27) @@ | ||
| 74 | /** |
|
| 75 | * |
|
| 76 | */ |
|
| 77 | @Override |
|
| 78 | protected List<Flaw> doFindFlaws() { |
|
| 79 | ||
| 80 | // check load parameters |
|
| 81 | if (!this.load) { |
|
| 82 | this.load(); |
|
| 83 | } |
|
| 84 | ||
| 85 | // list of goals |
|
| 86 | List<Flaw> flaws = new ArrayList<>(); |
|
| 87 | // check pending decisions |
|
| 88 | for (Decision decision : this.component.getPendingDecisions()) { |
|
| 89 | ||
| 90 | // add sub-goal |
|
| 91 | Goal goal = new Goal(FLAW_COUNTER.getAndIncrement(), this.component, decision); |
|
| 92 | // check if external component |
|
| 93 | if (decision.getComponent().isExternal()) { |
|
| 94 | // set mandatory unification |
|
| 95 | goal.setMandatoryUnification(); |
|
| 96 | } |
|
| 97 | ||
| 98 | // add goal to flaws |
|
| 99 | flaws.add(goal); |
|
| 100 | } |
|
| 101 | ||
| 102 | // get flaws |
|
| 103 | return flaws; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|