Class SimplePlRule
- java.lang.Object
-
- org.tweetyproject.arg.deductive.syntax.SimplePlRule
-
-
Constructor Summary
Constructors Constructor Description SimplePlRule()SimplePlRule(PlFormula _claim)SimplePlRule(PlFormula _claim, java.util.Set<PlFormula> _support)
-
Method Summary
Modifier and Type Method Description voidaddPremise(PlFormula arg0)Add the given premise to this rule.voidaddPremises(java.util.Collection<? extends PlFormula> arg0)Add the given premises to this rule.booleanequals(java.lang.Object obj)PlFormulagetConclusion()Returns the conclusion of this rule.java.util.Collection<? extends PlFormula>getPremise()Returns the premise of this rule.SignaturegetSignature()Returns the signature of the language of this formula.inthashCode()booleanisConstraint()booleanisFact()voidsetConclusion(PlFormula arg0)Set the conclusion of this rule.java.lang.StringtoString()
-
-
-
Method Detail
-
addPremise
public void addPremise(PlFormula arg0)
Description copied from interface:RuleAdd the given premise to this rule.- Specified by:
addPremisein interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formula
-
addPremises
public void addPremises(java.util.Collection<? extends PlFormula> arg0)
Description copied from interface:RuleAdd the given premises to this rule.- Specified by:
addPremisesin interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formulas
-
getConclusion
public PlFormula getConclusion()
Description copied from interface:RuleReturns the conclusion of this rule.- Specified by:
getConclusionin interfaceRule<PlFormula,PlFormula>- Returns:
- the conclusion of this rule.
-
getPremise
public java.util.Collection<? extends PlFormula> getPremise()
Description copied from interface:RuleReturns the premise of this rule.- Specified by:
getPremisein interfaceRule<PlFormula,PlFormula>- Returns:
- the premise of this rule.
-
getSignature
public Signature getSignature()
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Specified by:
getSignaturein interfaceRule<PlFormula,PlFormula>- Returns:
- the signature of the language of this formula.
-
isConstraint
public boolean isConstraint()
- Specified by:
isConstraintin interfaceRule<PlFormula,PlFormula>
-
setConclusion
public void setConclusion(PlFormula arg0)
Description copied from interface:RuleSet the conclusion of this rule.- Specified by:
setConclusionin interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formula
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-