|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.inference.MatchingRules
public final class MatchingRules
Directly process a task by a oldBelief, with only two Terms in both. In matching, the new task is compared with all existing direct Tasks in that Concept, to carry out:
temporalRevision: between judgments on non-overlapping evidence; temporalRevision: between judgments; satisfy: between a Judgment and a Question/Goal; merge: between items of the same type and stamp; conversion: between different inheritance relations.
| Constructor Summary | |
|---|---|
MatchingRules()
|
|
| Method Summary | |
|---|---|
private static boolean |
betterSolution(Judgment newSol,
Judgment oldSol,
Sentence problem)
Compare the quality of two solutions |
private static void |
conversion()
{ S>} |- |
private static void |
convertRelation()
{ |
private static void |
inferToAsym(Judgment asym,
Judgment sym,
TemporalValue order)
{ S>} |- |
private static void |
inferToSym(Judgment judgment1,
Judgment judgment2)
{ S} |- |
static void |
match(Task task,
Judgment belief)
The task and belief have the same content |
static void |
matchAsymSym(Sentence asym,
Sentence sym,
int figure)
Inheritance/Implication matches Similarity/Equivalence |
static void |
matchReverse()
The task and belief match reversely |
static boolean |
revision(Task task,
Judgment oldBelief,
boolean feedbackToLinks)
Belief revision |
static void |
trySolution(Sentence problem,
Judgment belief,
Task task)
Check if a Judgment provide a better answer to a Question |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchingRules()
| Method Detail |
|---|
public static void match(Task task,
Judgment belief)
called in RuleTables.reason
task - The taskbelief - The belief
public static boolean revision(Task task,
Judgment oldBelief,
boolean feedbackToLinks)
called from Concept.reviseTable and match
task - The task containing new beliefoldBelief - The previous belief with the same contentfeedbackToLinks - Whether to send feedback to the links
public static void trySolution(Sentence problem,
Judgment belief,
Task task)
problem - The Goal or Question to be answeredbelief - The proposed answertask - The task to be processed
private static boolean betterSolution(Judgment newSol,
Judgment oldSol,
Sentence problem)
newSol - A new solutionoldSol - A old solutionproblem - The problem
public static void matchReverse()
public static void matchAsymSym(Sentence asym,
Sentence sym,
int figure)
asym - A Inheritance/Implication sentencesym - A Similarity/Equivalence sentencefigure - location of the shared term
private static void inferToSym(Judgment judgment1,
Judgment judgment2)
S} |- p>
Produce Similarity/Equivalence from a pair of reversed Inheritance/Implication
judgment1 - The first premisejudgment2 - The second premise
private static void inferToAsym(Judgment asym,
Judgment sym,
TemporalValue order)
S>} |- P>
Produce an Inheritance/Implication from a Similarity/Equivalence and a reversed Inheritance/Implication
asym - The asymmetric premisesym - The symmetric premiseprivate static void conversion()
S>} |- P>
Produce an Inheritance/Implication from a reversed Inheritance/Implication
private static void convertRelation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||