Class StrictInferenceRule<T extends Invertable>
java.lang.Object
org.tweetyproject.arg.aspic.syntax.InferenceRule<T>
org.tweetyproject.arg.aspic.syntax.StrictInferenceRule<T>
- Type Parameters:
T- is the type of the language that the ASPIC theory's rules range over
- All Implemented Interfaces:
Formula,Rule<T,,T> ComplexLogicalFormula,LogicStructure,SimpleLogicalFormula
Indefeasible implementation of
InferenceRule<T>- Author:
- Nils Geilen
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty instanceStrictInferenceRule(T conclusion, Collection<T> premise) Constructs a strict inference rule p -> c -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a deep copy of this formulabooleansubstitute(Term<?> v, Term<?> t) Substitutes all occurrences of term "v" in this formula by term "t" and returns the new formula.Methods inherited from class org.tweetyproject.arg.aspic.syntax.InferenceRule
addPremise, addPremises, allGroundInstances, allSubstitutions, containsTermsOfType, equals, exchange, getAtoms, getConclusion, getIdentifier, getName, getPredicateCls, getPredicates, getPremise, getSignature, getTerms, getTerms, getUnboundVariables, hashCode, isConstraint, isFact, isGround, isLiteral, isWellFormed, setConclusion, setName, substitute, toDefeasible, toStrict, toString
-
Constructor Details
-
StrictInferenceRule
public StrictInferenceRule()Constructs an empty instance -
StrictInferenceRule
Constructs a strict inference rule p -> c- Parameters:
conclusion- ^= ppremise- ^= c
-
-
Method Details
-
isDefeasible
public boolean isDefeasible()- Specified by:
isDefeasiblein classInferenceRule<T extends Invertable>- Returns:
- true iff this rule is defeasible
-
clone
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
clonein interfaceComplexLogicalFormula- Specified by:
clonein interfaceSimpleLogicalFormula- Specified by:
clonein classInferenceRule<T extends Invertable>- Returns:
- the cloned formula
-
substitute
Description copied from interface:ComplexLogicalFormulaSubstitutes all occurrences of term "v" in this formula by term "t" and returns the new formula.- Specified by:
substitutein interfaceComplexLogicalFormula- Specified by:
substitutein classInferenceRule<T extends Invertable>- Parameters:
v- the term to be substituted.t- the term to substitute.- Returns:
- a formula where every occurrence of "v" is replaced by "t".
- Throws:
IllegalArgumentException- if "v" and "t" are of different sorts
-