File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
org-tweetyproject-logics-pl/src/main/java/org/tweetyproject/logics/pl/syntax Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3030 * This class models equivalence of propositional logic.
3131 *
3232 * @author Anna Gessler
33+ * @author Lars Bengel
3334 */
3435public 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
Original file line number Diff line number Diff line change 3030 *
3131 * @author Anna Gessler
3232 * @author Matthias Thimm
33+ * @author Lars Bengel
3334 */
3435public 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 /*
Original file line number Diff line number Diff line change 3030 * This class models the implication of propositional logic.
3131 *
3232 * @author Anna Gessler
33+ * @author Lars Bengel
3334 */
3435public 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
You can’t perform that action at this time.
0 commit comments