|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.inference.RuleTables
public final class RuleTables
Table of inference rules, indexed by the TermLinks for the task and the belief. Used in indirective processing of a task, to dispatch inference cases to the relevant inference rules.
| Constructor Summary | |
|---|---|
RuleTables()
|
|
| Method Summary | |
|---|---|
private static void |
asymmetricAsymmetric(Sentence sentence,
Judgment belief,
int figure)
Syllogistic rules whose both premises are on the same asymmetric relation |
private static void |
asymmetricSymmetric(Sentence asym,
Sentence sym,
int figure)
Syllogistic rules whose first premise is on an asymmetric relation, and the second on a symmetric relation |
private static void |
componentAndStatement(CompoundTerm compound,
short index,
Statement statement,
short side)
Inference between a component term (of the current term) and a statement |
private static void |
compoundAndCompound(CompoundTerm taskTerm,
CompoundTerm beliefTerm)
Inference between two compound terms |
private static void |
compoundAndSelf(CompoundTerm compound,
Term component,
boolean compoundTask)
Inference between a compound term and a component of it |
private static void |
compoundAndStatement(CompoundTerm compound,
short index,
Statement statement,
short side,
Term beliefTerm)
Inference between a compound term and a statement |
private static void |
conditionalDedIndWithVar(Implication conditional,
short index,
Statement statement,
short side)
Conditional deduction or induction, with variable unification |
private static void |
detachmentWithVar(Sentence mainSentence,
Sentence subSentence,
int index)
The detachment rule, with variable unification |
private static int |
indexToFigure(TermLink link1,
TermLink link2)
Decide the figure of syllogism according to the locations of the common term in the premises |
static void |
reason(TaskLink tLink,
TermLink bLink)
Entry point of the inference engine |
private static void |
syllogisms(TaskLink tLink,
TermLink bLink,
Term taskTerm,
Term beliefTerm)
Meta-table of syllogistic rules, indexed by the content classes of the taskSentence and the belief |
private static void |
symmetricSymmetric(Judgment belief,
Sentence taskSentence,
int figure)
Syllogistic rules whose both premises are on the same symmetric relation |
static void |
transformTask(Task task,
TaskLink tLink)
The TaskLink is of type TRANSFORM, and the conclusion is an equivalent transformation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleTables()
| Method Detail |
|---|
public static void reason(TaskLink tLink,
TermLink bLink)
tLink - The selected TaskLink, which will provide a taskbLink - The selected TermLink, which may provide a belief
private static void syllogisms(TaskLink tLink,
TermLink bLink,
Term taskTerm,
Term beliefTerm)
tLink - The link to taskbLink - The link to belieftaskTerm - The content of taskbeliefTerm - The content of belief
private static int indexToFigure(TermLink link1,
TermLink link2)
link1 - The link to the first premiselink2 - The link to the second premise
private static void asymmetricAsymmetric(Sentence sentence,
Judgment belief,
int figure)
sentence - The taskSentence in the taskbelief - The judgment in the belieffigure - The location of the shared term
private static void asymmetricSymmetric(Sentence asym,
Sentence sym,
int figure)
asym - The asymmetric premisesym - The symmetric premisefigure - The location of the shared term
private static void symmetricSymmetric(Judgment belief,
Sentence taskSentence,
int figure)
belief - The premise that comes from a belieftaskSentence - The premise that comes from a taskfigure - The location of the shared term
private static void detachmentWithVar(Sentence mainSentence,
Sentence subSentence,
int index)
mainSentence - The premise that is an Implication or EquivalencesubSentence - The premise that is the subject or predicate of the first oneindex - The location of the second premise in the first
private static void conditionalDedIndWithVar(Implication conditional,
short index,
Statement statement,
short side)
conditional - The premise that is an Implication with a Conjunction as conditionindex - The location of the shared term in the conditionstatement - The second premise that is a statementside - The location of the shared term in the statement
private static void compoundAndSelf(CompoundTerm compound,
Term component,
boolean compoundTask)
compound - The compound termcomponent - The component termcompoundTask - Whether the compound comes from the task
private static void compoundAndCompound(CompoundTerm taskTerm,
CompoundTerm beliefTerm)
taskTerm - The compound from the taskbeliefTerm - The compound from the belief
private static void compoundAndStatement(CompoundTerm compound,
short index,
Statement statement,
short side,
Term beliefTerm)
compound - The compound termindex - The location of the current term in the compoundstatement - The statementside - The location of the current term in the statementbeliefTerm - The content of the belief
private static void componentAndStatement(CompoundTerm compound,
short index,
Statement statement,
short side)
compound - The compound termindex - The location of the current term in the compoundstatement - The statementside - The location of the current term in the statement
public static void transformTask(Task task,
TaskLink tLink)
task - The tasktLink - The task link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||