C - The type of the formulas used for conclusionsP - The type of the formulas used for the premiseT - The type of the rules used in the programpublic interface LogicProgram<C extends net.sf.tweety.commons.Formula,P extends net.sf.tweety.commons.Formula,T extends net.sf.tweety.commons.util.rules.Rule<?,?>>
extends net.sf.tweety.commons.BeliefBase
| Modifier and Type | Method and Description |
|---|---|
void |
addFact(C fact)
Adds the given fact to the program
|
LogicProgram<?,?,?> |
exchange(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and at the same time replaces all occurrences of term "t"
by term "v" and eventually returns the new formula.
|
net.sf.tweety.commons.Signature |
getSignature() |
LogicProgram<?,?,?> |
substitute(Map<? extends Term<?>,? extends Term<?>> map)
Substitutes all occurrences of all terms "v" in map.keyset() in this formula
by map.get(v) and returns the new formula.
|
LogicProgram<?,?,?> |
substitute(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and returns the new formula.
|
String |
toString() |
void addFact(C fact)
fact - net.sf.tweety.commons.Signature getSignature()
getSignature in interface net.sf.tweety.commons.BeliefBaseLogicProgram<?,?,?> substitute(Term<?> v, Term<?> t) throws IllegalArgumentException
v - the term to be substituted.t - the term to substitute.IllegalArgumentException - if "v" and "t" are of different sortsLogicProgram<?,?,?> substitute(Map<? extends Term<?>,? extends Term<?>> map) throws IllegalArgumentException
map - a mapping defining which terms to be substituted.IllegalArgumentException - if any term and its mapping are of different sortsLogicProgram<?,?,?> exchange(Term<?> v, Term<?> t) throws IllegalArgumentException
v - a term.t - a term.IllegalArgumentException - if "v" and "t" are of different sortsCopyright © 2018. All rights reserved.