Package | Description |
---|---|
org.opennars.control | |
org.opennars.entity |
Data entities that are independently stored
|
org.opennars.inference |
The inference rules and control functions
|
org.opennars.language |
Term hierarchy in Narsese
Open-NARS implements the following formal language, Narsese.
|
Modifier and Type | Field | Description |
---|---|---|
protected TermLink |
DerivationContext.currentBeliefLink |
Modifier and Type | Method | Description |
---|---|---|
TermLink |
DerivationContext.getCurrentBeliefLink() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
GeneralInferenceControl.fireTermlink(TermLink termLink,
DerivationContext nal) |
|
void |
DerivationContext.setCurrentBeliefLink(TermLink currentBeliefLink) |
Modifier and Type | Field | Description |
---|---|---|
TermLink |
TaskLink.Recording.link |
Modifier and Type | Field | Description |
---|---|---|
Bag<TermLink,TermLink> |
Concept.termLinks |
Term links between the term and its components and compounds; beliefs
|
Bag<TermLink,TermLink> |
Concept.termLinks |
Term links between the term and its components and compounds; beliefs
|
List<TermLink> |
Concept.termLinkTemplates |
Link templates of TermLink, only in concepts with CompoundTerm Templates
are used to improve the efficiency of TermLink building
|
Modifier and Type | Method | Description |
---|---|---|
TermLink |
TermLink.name() |
|
TermLink |
Concept.selectTermLink(TaskLink taskLink,
long time,
Parameters narParameters) |
Replace default to prevent repeated inference, by checking TaskLink
|
Modifier and Type | Method | Description |
---|---|---|
List<TermLink> |
Concept.getTermLinkTemplates() |
Return the templates for TermLinks, only called in
Memory.continuedProcess
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Concept.insertTermLink(TermLink termLink) |
Insert a TermLink into the TermLink bag
|
boolean |
TaskLink.novel(TermLink termLink,
long currentTime,
Parameters narParameters) |
To check whether a TaskLink should use a TermLink, return false if they
interacted recently
|
boolean |
TaskLink.novel(TermLink termLink,
long currentTime,
Parameters narParameters,
boolean transformTask) |
|
void |
Concept.returnTermLink(TermLink termLink) |
Constructor | Description |
---|---|
Recording(TermLink link,
long time) |
|
TaskLink(Task t,
TermLink template,
BudgetValue v,
int recordLength) |
Constructor
|
TermLink(Term t,
TermLink template,
BudgetValue v) |
Constructor to make actual TermLink from a template
|
Modifier and Type | Method | Description |
---|---|---|
private static void |
RuleTables.applyRuleTable(TaskLink tLink,
TermLink bLink,
DerivationContext nal,
Task task,
Sentence taskSentence,
Term taskTerm,
Term beliefTerm,
Sentence belief) |
|
static BudgetValue |
BudgetFunctions.budgetTermLinkConcept(Concept c,
BudgetValue taskBudget,
TermLink termLink) |
|
static void |
RuleTables.reason(TaskLink tLink,
TermLink bLink,
DerivationContext nal) |
Entry point of the inference engine
|
private static void |
RuleTables.syllogisms(TaskLink tLink,
TermLink bLink,
Term taskTerm,
Term beliefTerm,
DerivationContext nal) |
Meta-table of syllogistic rules, indexed by the content classes of the
taskSentence and the belief
|
Modifier and Type | Method | Description |
---|---|---|
List<TermLink> |
CompoundTerm.prepareComponentLinks() |
Build TermLink templates to constant term and subcomponents
|
static List<TermLink> |
Terms.prepareComponentLinks(List<TermLink> componentLinks,
short type,
CompoundTerm term) |
Collect TermLink templates into a list, go down one level except in
special cases
|
static List<TermLink> |
Terms.prepareComponentLinks(List<TermLink> componentLinks,
CompoundTerm ct) |
Modifier and Type | Method | Description |
---|---|---|
static List<TermLink> |
Terms.prepareComponentLinks(List<TermLink> componentLinks,
short type,
CompoundTerm term) |
Collect TermLink templates into a list, go down one level except in
special cases
|
static List<TermLink> |
Terms.prepareComponentLinks(List<TermLink> componentLinks,
CompoundTerm ct) |
Copyright © 2020 OpenNARS. All rights reserved.