Class SimplePlRule
java.lang.Object
org.tweetyproject.arg.deductive.syntax.SimplePlRule
Basic data structure for handling simple rule
- Author:
- Federico Cerutti (federico.cerutti@acm.org)
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePlRule(PlFormula _claim)SimplePlRule(PlFormula _claim, Set<PlFormula> _support) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPremise(PlFormula arg0)Add the given premise to this rule.voidaddPremises(Collection<? extends PlFormula> arg0)Add the given premises to this rule.booleanReturns the conclusion of this rule.Collection<? extends PlFormula>Returns the premise of this rule.Returns the signature of the language of this formula.inthashCode()booleanisConstraintbooleanisFact()isFactvoidsetConclusion(PlFormula arg0)Set the conclusion of this rule.toString()
-
Constructor Details
-
SimplePlRule
public SimplePlRule() -
SimplePlRule
-
SimplePlRule
-
-
Method Details
-
addPremise
Description copied from interface:RuleAdd the given premise to this rule.- Specified by:
addPremisein interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formula
-
addPremises
Description copied from interface:RuleAdd the given premises to this rule.- Specified by:
addPremisesin interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formulas
-
getConclusion
Description copied from interface:RuleReturns the conclusion of this rule.- Specified by:
getConclusionin interfaceRule<PlFormula,PlFormula>- Returns:
- the conclusion of this rule.
-
getPremise
Description copied from interface:RuleReturns the premise of this rule.- Specified by:
getPremisein interfaceRule<PlFormula,PlFormula>- Returns:
- the premise of this rule.
-
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()Description copied from interface:RuleisConstraint- Specified by:
isConstraintin interfaceRule<PlFormula,PlFormula>- Returns:
- whether the rule is a constraint
-
isFact
public boolean isFact()Description copied from interface:RuleisFact -
setConclusion
Description copied from interface:RuleSet the conclusion of this rule.- Specified by:
setConclusionin interfaceRule<PlFormula,PlFormula>- Parameters:
arg0- some formula
-
equals
-
hashCode
public int hashCode() -
toString
-