public class Conditional extends Object implements net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula, net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>
| Constructor and Description |
|---|
Conditional(net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion)
Creates a new conditional with a tautological premise
and given conclusion.
|
Conditional(net.sf.tweety.logics.pl.syntax.PropositionalFormula premise,
net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion)
Creates a new conditional with the given premise
and conclusion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPremise(net.sf.tweety.logics.pl.syntax.PropositionalFormula premise) |
void |
addPremises(Collection<? extends net.sf.tweety.logics.pl.syntax.PropositionalFormula> premises) |
Conditional |
clone() |
net.sf.tweety.logics.pl.syntax.Conjunction |
combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable f) |
net.sf.tweety.logics.fol.syntax.Disjunction |
combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f) |
Conditional |
complement() |
boolean |
equals(Object obj) |
Set<net.sf.tweety.logics.pl.syntax.Proposition> |
getAtoms() |
net.sf.tweety.logics.pl.syntax.PropositionalFormula |
getConclusion() |
Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicateCls() |
Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Collection<net.sf.tweety.logics.pl.syntax.PropositionalFormula> |
getPremise() |
net.sf.tweety.commons.Signature |
getSignature() |
int |
hashCode() |
boolean |
isConstraint() |
boolean |
isFact()
Checks whether this conditional is a fact, i.e.
|
boolean |
isLiteral() |
void |
setConclusion(net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion) |
String |
toString() |
public Conditional(net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion)
conclusion - the conclusion (a formula) of this conditional.public Conditional(net.sf.tweety.logics.pl.syntax.PropositionalFormula premise,
net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion)
premise - the premise (a formula) of this conditional.conclusion - the conclusion (a formula) of this conditional.public Collection<net.sf.tweety.logics.pl.syntax.PropositionalFormula> getPremise()
getPremise in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public net.sf.tweety.logics.pl.syntax.PropositionalFormula getConclusion()
getConclusion in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public boolean isFact()
isFact in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public net.sf.tweety.commons.Signature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public net.sf.tweety.logics.pl.syntax.Conjunction combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable f)
public net.sf.tweety.logics.fol.syntax.Disjunction combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f)
public Conditional complement()
public int hashCode()
public boolean equals(Object obj)
public Set<net.sf.tweety.logics.pl.syntax.Proposition> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Conditional clone()
public boolean isLiteral()
isLiteral in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
getPredicateCls in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic boolean isConstraint()
isConstraint in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public void setConclusion(net.sf.tweety.logics.pl.syntax.PropositionalFormula conclusion)
setConclusion in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public void addPremise(net.sf.tweety.logics.pl.syntax.PropositionalFormula premise)
addPremise in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>public void addPremises(Collection<? extends net.sf.tweety.logics.pl.syntax.PropositionalFormula> premises)
addPremises in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PropositionalFormula,net.sf.tweety.logics.pl.syntax.PropositionalFormula>Copyright © 2018. All rights reserved.