Package | Description |
---|---|
org.opennars.control | |
org.opennars.control.concept | |
org.opennars.entity |
Data entities that are independently stored
|
org.opennars.inference |
The inference rules and control functions
|
org.opennars.io |
Input/output management
|
org.opennars.operator.mental | |
org.opennars.storage |
Storage management
|
Modifier and Type | Method | Description |
---|---|---|
void |
DerivationContext.addTask(Task currentTask,
BudgetValue budget,
Sentence sentence,
Sentence candidateBelief) |
Activated task called in MatchingRules.trySolution and
Concept.processGoal
|
List<Task> |
DerivationContext.doublePremiseTask(Term newContent,
TruthValue newTruth,
BudgetValue newBudget,
boolean temporalInduction,
boolean overlapAllowed) |
Shared final operations by all double-premise rules, called from the
rules except StructuralRules
|
List<Task> |
DerivationContext.doublePremiseTask(Term newContent,
TruthValue newTruth,
BudgetValue newBudget,
boolean temporalInduction,
boolean overlapAllowed,
boolean addToMemory) |
|
boolean |
DerivationContext.doublePremiseTaskRevised(Term newContent,
TruthValue newTruth,
BudgetValue newBudget,
long counter) |
Shared final operations by all double-premise rules, called from the
rules except StructuralRules
|
boolean |
DerivationContext.singlePremiseTask(Sentence newSentence,
BudgetValue newBudget) |
|
boolean |
DerivationContext.singlePremiseTask(Term newContent,
char punctuation,
TruthValue newTruth,
BudgetValue newBudget) |
Shared final operations by all single-premise rules, called in
StructuralRules
|
boolean |
DerivationContext.singlePremiseTask(Term newContent,
TruthValue newTruth,
BudgetValue newBudget) |
Shared final operations by all single-premise rules, called in
StructuralRules
|
Modifier and Type | Method | Description |
---|---|---|
static void |
ProcessAnticipation.anticipate(DerivationContext nal,
Sentence mainSentence,
BudgetValue budget,
long mintime,
long maxtime,
float urgency,
Map<Term,Term> substitution) |
Modifier and Type | Field | Description |
---|---|---|
BudgetValue |
Item.budget |
The budget of the Item, consisting of 3 numbers
|
Modifier and Type | Method | Description |
---|---|---|
BudgetValue |
BudgetValue.clone() |
Cloning method
|
BudgetValue |
Item.getBudget() |
Modifier and Type | Method | Description |
---|---|---|
void |
Concept.buildTermLinks(BudgetValue taskBudget,
Parameters narParameters) |
Recursively build TermLinks between a compound and its components
|
boolean |
BudgetValue.greaterThan(BudgetValue rhs) |
|
void |
BudgetValue.merge(BudgetValue that) |
Merge one BudgetValue into another
|
Constructor | Description |
---|---|
BudgetValue(BudgetValue v) |
Cloning constructor
|
Concept(BudgetValue b,
Term tm,
Memory memory) |
Constructor, called in Memory.getConcept only
|
Item(BudgetValue budget) |
Constructor with initial budget
|
StringKeyItem(BudgetValue budget) |
|
Task(Sentence<T> s,
BudgetValue b,
Sentence parentBelief) |
Constructors for double premise derived task
|
Task(Sentence<T> s,
BudgetValue b,
Sentence parentBelief,
Sentence solution) |
Constructors for solved double premise derived task
|
Task(Sentence<T> s,
BudgetValue b,
Task.EnumType type) |
Constructor for input task and single premise derived task
|
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 |
---|---|---|
static BudgetValue |
BudgetFunctions.backward(TruthValue truth,
DerivationContext nal) |
Backward inference result and adjustment, stronger case
|
static BudgetValue |
BudgetFunctions.backwardWeak(TruthValue truth,
DerivationContext nal) |
Backward inference result and adjustment, weaker case
|
private static BudgetValue |
BudgetFunctions.budgetInference(float qual,
float complexity,
DerivationContext nal) |
Common processing for all inference step
|
static BudgetValue |
BudgetFunctions.budgetTermLinkConcept(Concept c,
BudgetValue taskBudget,
TermLink termLink) |
|
static BudgetValue |
BudgetFunctions.compoundBackward(Term content,
DerivationContext nal) |
Backward inference with CompoundTerm conclusion, stronger case
|
static BudgetValue |
BudgetFunctions.compoundBackwardWeak(Term content,
DerivationContext nal) |
Backward inference with CompoundTerm conclusion, weaker case
|
static BudgetValue |
BudgetFunctions.compoundForward(TruthValue truth,
Term content,
DerivationContext nal) |
Forward inference with CompoundTerm conclusion
|
static BudgetValue |
BudgetFunctions.distributeAmongLinks(BudgetValue b,
int n,
Parameters narParameters) |
Distribute the budget of a task among the links to it
|
static BudgetValue |
BudgetFunctions.forward(TruthValue truth,
DerivationContext nal) |
Forward inference result and adjustment
|
(package private) static BudgetValue |
BudgetFunctions.revise(TruthValue tTruth,
TruthValue bTruth,
TruthValue truth,
boolean feedbackToLinks,
DerivationContext nal) |
Evaluate the quality of a revision, then de-prioritize the premises
|
(package private) static BudgetValue |
BudgetFunctions.solutionEval(Sentence problem,
Sentence solution,
Task task,
Memory memory) |
Deprecated.
|
static BudgetValue |
LocalRules.solutionEval(Task problem,
Sentence solution,
Task task,
DerivationContext nal) |
Evaluate the quality of a belief as a solution to a problem, then reward
the belief and de-prioritize the problem
|
static BudgetValue |
BudgetFunctions.update(Task task,
TruthValue bTruth,
Parameters narParameters) |
Update a belief
|
Modifier and Type | Method | Description |
---|---|---|
static void |
BudgetFunctions.activate(BudgetValue receiver,
BudgetValue amount,
BudgetFunctions.Activating mode) |
Activate a concept by an incoming TaskLink
|
private static void |
TemporalRules.appendConclusion(DerivationContext nal,
TruthValue truth1,
BudgetValue budget1,
Statement statement1,
List<Task> success) |
|
static void |
BudgetFunctions.applyForgetting(BudgetValue budget,
float forgetCycles,
float relativeThreshold) |
Decrease Priority after an item is used, called in Bag.
|
static BudgetValue |
BudgetFunctions.budgetTermLinkConcept(Concept c,
BudgetValue taskBudget,
TermLink termLink) |
|
private static void |
LocalRules.convertedJudgment(TruthValue newTruth,
BudgetValue newBudget,
DerivationContext nal) |
Convert judgment into different relation
|
static BudgetValue |
BudgetFunctions.distributeAmongLinks(BudgetValue b,
int n,
Parameters narParameters) |
Distribute the budget of a task among the links to it
|
static void |
BudgetFunctions.merge(BudgetValue b,
BudgetValue a) |
Merge an item into another one in a bag, when the two are identical
except in budget values
|
Modifier and Type | Method | Description |
---|---|---|
private BudgetValue |
Narsese.parseBudget(String s,
char punctuation,
TruthValue truth) |
react the addInput String into a BudgetValue
|
Modifier and Type | Field | Description |
---|---|---|
private BudgetValue |
Anticipate.expiredBudget |
Modifier and Type | Method | Description |
---|---|---|
static BudgetValue |
Consider.budgetMentalConcept(Operation o) |
Modifier and Type | Method | Description |
---|---|---|
void |
Remind.activate(Memory memory,
Concept c,
BudgetValue b,
BudgetFunctions.Activating mode) |
Modifier and Type | Method | Description |
---|---|---|
Concept |
Memory.conceptualize(BudgetValue budget,
Term term) |
Get the Concept associated to a Term, or create it.
|
Copyright © 2020 OpenNARS. All rights reserved.