Class StrictRule
java.lang.Object
org.tweetyproject.logics.commons.syntax.RelationalFormula
org.tweetyproject.arg.delp.syntax.DelpRule
org.tweetyproject.arg.delp.syntax.StrictRule
- All Implemented Interfaces:
- Formula,- Rule<FolFormula,,- FolFormula> - ClassicalFormula,- ComplexLogicalFormula,- Conjunctable,- Disjunctable,- Invertable,- LogicStructure,- ProbabilityAware,- QuantifiedFormula,- SimpleLogicalFormula
This class models a strict rule in defeasible logic programming.
- Author:
- Matthias Thimm
- 
Constructor SummaryConstructorsConstructorDescriptionStrictRule(FolFormula head, Set<FolFormula> body) Default constructor; initializes head and body of the strict rule
- 
Method SummaryModifier and TypeMethodDescriptionclone()Creates a deep copy of this formulasubstitute(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.delp.syntax.DelpRuleaddPremise, addPremises, combineWithAnd, combineWithOr, complement, containsQuantifier, equals, getAtoms, getConclusion, getFunctors, getPredicates, getPremise, getQuantifierVariables, getSignature, getTerms, getTerms, getUnboundVariables, getUniformProbability, hashCode, isApplicable, isClosed, isClosed, isConstraint, isFact, isGround, isLiteral, isWellBound, isWellBound, setConclusion, toStringMethods inherited from class org.tweetyproject.logics.commons.syntax.RelationalFormulaallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getFormula, getPredicateCls, getSatisfactionRatio, isWellFormed, substitute
- 
Constructor Details- 
StrictRuleDefault constructor; initializes head and body of the strict rule- Parameters:
- head- a literal
- body- a set of literals
 
 
- 
- 
Method Details- 
substituteDescription copied from class:RelationalFormulaSubstitutes all occurrences of term "v" in this formula by term "t" and returns the new formula. NOTE: if "v" is a variable and bound to a quantifier then "v" is not substituted in that quantifiers inner formula.- Specified by:
- substitutein interface- ComplexLogicalFormula
- Specified by:
- substitutein class- DelpRule
- 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 (NOTE: this exception is only thrown when "v" actually appears in this formula).
 
- 
cloneDescription copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
- clonein interface- ComplexLogicalFormula
- Specified by:
- clonein interface- SimpleLogicalFormula
- Specified by:
- clonein class- RelationalFormula
- Returns:
- the cloned formula
 
 
-