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
ConstructorDescriptionSimplePlRule
(PlFormula _claim) SimplePlRule
(PlFormula _claim, Set<PlFormula> _support) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPremise
(PlFormula arg0) Add the given premise to this rule.void
addPremises
(Collection<? extends PlFormula> arg0) Add the given premises to this rule.boolean
Returns the conclusion of this rule.Collection<? extends PlFormula>
Returns the premise of this rule.Returns the signature of the language of this formula.int
hashCode()
boolean
isConstraintboolean
isFact()
isFactvoid
setConclusion
(PlFormula arg0) Set the conclusion of this rule.toString()
-
Constructor Details
-
SimplePlRule
public SimplePlRule() -
SimplePlRule
-
SimplePlRule
-
-
Method Details
-
addPremise
Description copied from interface:Rule
Add the given premise to this rule.- Specified by:
addPremise
in interfaceRule<PlFormula,
PlFormula> - Parameters:
arg0
- some formula
-
addPremises
Description copied from interface:Rule
Add the given premises to this rule.- Specified by:
addPremises
in interfaceRule<PlFormula,
PlFormula> - Parameters:
arg0
- some formulas
-
getConclusion
Description copied from interface:Rule
Returns the conclusion of this rule.- Specified by:
getConclusion
in interfaceRule<PlFormula,
PlFormula> - Returns:
- the conclusion of this rule.
-
getPremise
Description copied from interface:Rule
Returns the premise of this rule.- Specified by:
getPremise
in interfaceRule<PlFormula,
PlFormula> - Returns:
- the premise of this rule.
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Specified by:
getSignature
in interfaceRule<PlFormula,
PlFormula> - Returns:
- the signature of the language of this formula.
-
isConstraint
public boolean isConstraint()Description copied from interface:Rule
isConstraint- Specified by:
isConstraint
in interfaceRule<PlFormula,
PlFormula> - Returns:
- whether the rule is a constraint
-
isFact
public boolean isFact()Description copied from interface:Rule
isFact -
setConclusion
Description copied from interface:Rule
Set the conclusion of this rule.- Specified by:
setConclusion
in interfaceRule<PlFormula,
PlFormula> - Parameters:
arg0
- some formula
-
equals
-
hashCode
public int hashCode() -
toString
-