|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.inference.StructuralRules
public final class StructuralRules
Single-premise inference rules involving compound terms. Input are one sentence (the premise) and one TermLink (indicating a component)
| Constructor Summary | |
|---|---|
StructuralRules()
|
|
| Method Summary | |
|---|---|
(package private) static void |
contraposition(Statement statement)
{ B>, A@(--, A)} |- <(--, B) ==> (--, A)> |
(package private) static void |
structuralCompose1(CompoundTerm compound,
short index,
Statement statement)
{ |
(package private) static void |
structuralCompose2(CompoundTerm compound,
short index,
Statement statement,
short side)
{ |
(package private) static void |
structuralCompound(CompoundTerm compound,
Term component,
boolean compoundTask)
{(&&, A, B), A@(&&, A, B)} |- A {(||, A, B), A@(||, A, B)} |- A |
(package private) static void |
structuralDecompose1(CompoundTerm compound,
short index,
Statement statement)
{<(S&T) --> P>, S@(S&T)} |- |
(package private) static void |
structuralDecompose2(Statement statement)
{<(S&T) --> (P&T)>, S@(S&T)} |- |
private static void |
structuralStatement(Term subject,
Term predicate,
TruthValue truth)
Common final operations of the above two methods |
private static boolean |
switchOrder(CompoundTerm compound,
short index)
List the cases where the direction of inheritance is revised in conclusion |
(package private) static void |
transformNegation(Term content)
{A, A@(--, A)} |- (--, A) |
(package private) static void |
transformProductImage(Inheritance inh,
CompoundTerm oldContent,
short[] indices,
Task task)
Equivalent transformation between products and images {<(*, S, M) --> P>, S@(*, S, M)} |- |
(package private) static void |
transformSetRelation(CompoundTerm compound,
Statement statement,
short side)
{ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructuralRules()
| Method Detail |
|---|
static void structuralCompose2(CompoundTerm compound,
short index,
Statement statement,
short side)
compound - The compound termindex - The location of the indicated term in the compoundstatement - The premiseside - The location of the indicated term in the premisestatic void structuralDecompose2(Statement statement)
statement - The premise
private static boolean switchOrder(CompoundTerm compound,
short index)
compound - The compound termindex - The location of focus in the compound
static void structuralCompose1(CompoundTerm compound,
short index,
Statement statement)
compound - The compound termindex - The location of the indicated term in the compoundstatement - The premise
static void structuralDecompose1(CompoundTerm compound,
short index,
Statement statement)
compound - The compound termindex - The location of the indicated term in the compoundstatement - The premise
private static void structuralStatement(Term subject,
Term predicate,
TruthValue truth)
subject - The subject of the new taskpredicate - The predicate of the new tasktruth - The truth value of the new task
static void transformSetRelation(CompoundTerm compound,
Statement statement,
short side)
compound - The set compoundstatement - The premiseside - The location of the indicated term in the premise
static void transformProductImage(Inheritance inh,
CompoundTerm oldContent,
short[] indices,
Task task)
inh - An Inheritance statementoldContent - The whole contentindices - The indices of the TaskLinktask - The task
static void structuralCompound(CompoundTerm compound,
Term component,
boolean compoundTask)
compound - The premisecomponent - The recognized component in the premisecompoundTask - Whether the compound comes from the taskstatic void transformNegation(Term content)
content - The premisestatic void contraposition(Statement statement)
statement - The premise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||