Skip to content

Commit 314a039

Browse files
committed
bugfix pl model computation
1 parent 32ae14b commit 314a039

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

org-tweetyproject-logics-pl/src/main/java/org/tweetyproject/logics/pl/syntax/Equivalence.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* This class models equivalence of propositional logic.
3131
*
3232
* @author Anna Gessler
33+
* @author Lars Bengel
3334
*/
3435
public class Equivalence extends PlFormula {
3536

@@ -138,7 +139,7 @@ public Conjunction toCnf() {
138139
public Set<PossibleWorld> getModels(PlSignature sig) {
139140
Disjunction d1 = new Disjunction(new Negation(this.formulas.getFirst()),this.formulas.getSecond());
140141
Disjunction d2 = new Disjunction(new Negation(this.formulas.getSecond()),this.formulas.getFirst());
141-
return (new Conjunction(d1,d2)).getModels();
142+
return (new Conjunction(d1,d2)).getModels(sig);
142143
}
143144

144145
@Override

org-tweetyproject-logics-pl/src/main/java/org/tweetyproject/logics/pl/syntax/ExclusiveDisjunction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*
3131
* @author Anna Gessler
3232
* @author Matthias Thimm
33+
* @author Lars Bengel
3334
*/
3435
public class ExclusiveDisjunction extends AssociativePlFormula {
3536

@@ -172,7 +173,7 @@ public PlFormula trim() {
172173
@Override
173174
public Set<PossibleWorld> getModels(PlSignature sig) {
174175
Conjunction cnf = this.toCnf();
175-
return cnf.getModels();
176+
return cnf.getModels(sig);
176177
}
177178

178179
/*

org-tweetyproject-logics-pl/src/main/java/org/tweetyproject/logics/pl/syntax/Implication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* This class models the implication of propositional logic.
3131
*
3232
* @author Anna Gessler
33+
* @author Lars Bengel
3334
*/
3435
public class Implication extends PlFormula {
3536

@@ -181,7 +182,7 @@ public Conjunction toCnf() {
181182
@Override
182183
public Set<PossibleWorld> getModels(PlSignature sig) {
183184
Disjunction d = new Disjunction(new Negation(this.formulas.getFirst()), this.formulas.getSecond()); // (A=>B)
184-
return d.getModels();
185+
return d.getModels(sig);
185186
}
186187

187188
@Override

0 commit comments

Comments
 (0)