|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.inference.CompositionalRules
public final class CompositionalRules
Compound term composition and decomposition rules, with two premises.
Forward inference only, except the last group (dependent variable introduction) can also be used backward.
| Constructor Summary | |
|---|---|
CompositionalRules()
|
|
| Method Summary | |
|---|---|
(package private) static void |
abdVarDepOuter(CompoundTerm compound,
Term component,
boolean compoundTask)
{(&&, <#x() --> S>, <#x() --> P>>, |
(package private) static void |
composeCompound(Sentence taskSentence,
Judgment belief,
int index)
{ M>} |- {<(S|P) ==> M>, <(S&P) ==> M>, <(S-P) ==> M>, <(P-S) ==> M>} |
private static void |
decomposeCompound(CompoundTerm compound,
Term component,
Term term1,
int index,
boolean compoundTask)
{<(S|P) ==> M>, M>} |- |
(package private) static void |
decomposeStatement(CompoundTerm compound,
Term component,
boolean compoundTask)
{(||, S, P), P} |- S {(&&, S, P), P} |- S |
private static Conjunction |
introVarDep(Statement premise1,
Statement premise2,
int index)
{ |
(package private) static void |
introVarDepInner(CompoundTerm compound,
Term component,
Term premise)
Introduce a dependent variable in an inner-layer conjunction |
private static void |
introVarDepOuter(Statement premise1,
Statement premise2,
int index)
Introduce a dependent variable in an outer-layer conjunction |
private static void |
processComposed(Statement statement,
Term subject,
Term predicate,
TruthValue truth)
Finish composing compound term |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositionalRules()
| Method Detail |
|---|
static void composeCompound(Sentence taskSentence,
Judgment belief,
int index)
M>} |- {<(S|P) ==> M>, <(S&P) ==> M>, <(S-P) ==> M>, <(P-S) ==> M>}
taskSentence - The first premisebelief - The second premiseindex - The location of the shared term
private static void processComposed(Statement statement,
Term subject,
Term predicate,
TruthValue truth)
statement - Type of the contentsubject - Subject of contentpredicate - Predicate of contenttruth - TruthValue of the content
private static void decomposeCompound(CompoundTerm compound,
Term component,
Term term1,
int index,
boolean compoundTask)
M>} |- M>
compound - The compound term to be decomposedcomponent - The part of the compound to be removedterm1 - The other term in the contentindex - The location of the shared term: 0 for subject, 1 for predicatecompoundTask - Whether the compound comes from the task
static void decomposeStatement(CompoundTerm compound,
Term component,
boolean compoundTask)
compound - The compound term to be decomposedcomponent - The part of the compound to be removedcompoundTask - Whether the compound comes from the task
private static Conjunction introVarDep(Statement premise1,
Statement premise2,
int index)
premise1 - The first premise premise2 - The second premise index - The location of the shared term: 0 for subject, 1 for predicate
private static void introVarDepOuter(Statement premise1,
Statement premise2,
int index)
premise1 - The first premise premise2 - The second premise index - The location of the shared term: 0 for subject, 1 for predicate
static void introVarDepInner(CompoundTerm compound,
Term component,
Term premise)
compound - The compound containing the first premisecomponent - The first premise premise - The second premise
static void abdVarDepOuter(CompoundTerm compound,
Term component,
boolean compoundTask)
compound - The compound term to be decomposedcomponent - The part of the compound to be removedcompoundTask - Whether the compound comes from the task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||