- Type Parameters:
C- the type of formulas for the conclusionP- the type of formulas for the premises
- All Superinterfaces:
Formula
- All Known Implementing Classes:
AbaRule,ASPRule,Assumption,BasicArgument,Conditional,DefeasibleInferenceRule,DefeasibleRule,DelpFact,DelpRule,InferenceRule,InferenceRule,NLPRule,ProbabilisticConditional,RelationalConditional,RelationalProbabilisticConditional,SimplePlRule,StrictInferenceRule,StrictRule
This interface models a general rule, i.e. a structure with some
premise (a set of formulas) and some conclusion (a single formula).
- Author:
- Matthias Thimm, Tim Janus
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPremise(P premise) Add the given premise to this rule.voidaddPremises(Collection<? extends P> premises) Add the given premises to this rule.Returns the conclusion of this rule.Collection<? extends P>Returns the premise of this rule.Returns the signature of the language of this formula.booleanisConstraintbooleanisFact()isFactvoidsetConclusion(C conclusion) Set the conclusion of this rule.
-
Method Details
-
isFact
boolean isFact()isFact- Returns:
- whether the rule is a fact
-
isConstraint
boolean isConstraint()isConstraint- Returns:
- whether the rule is a constraint
-
setConclusion
Set the conclusion of this rule.- Parameters:
conclusion- some formula
-
addPremise
Add the given premise to this rule.- Parameters:
premise- some formula
-
addPremises
Add the given premises to this rule.- Parameters:
premises- some formulas
-
getSignature
Signature getSignature()Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Returns:
- the signature of the language of this formula.
-
getPremise
Collection<? extends P> getPremise()Returns the premise of this rule.- Returns:
- the premise of this rule.
-
getConclusion
C getConclusion()Returns the conclusion of this rule.- Returns:
- the conclusion of this rule.
-