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.interfaces | |
org.opennars.interfaces.pub | |
org.opennars.main | |
org.opennars.operator | |
org.opennars.operator.mental | |
org.opennars.plugin.mental | |
org.opennars.plugin.perception | |
org.opennars.storage |
Storage management
|
Modifier and Type | Field | Description |
---|---|---|
Timable |
DerivationContext.time |
Constructor | Description |
---|---|
DerivationContext(Memory mem,
Parameters narParameters,
Timable time) |
Modifier and Type | Method | Description |
---|---|---|
static void |
ProcessAnticipation.firePredictions(Task judgementTask,
Concept concept,
DerivationContext nal,
Timable time,
TaskLink tasklink) |
Fire predictictive inference based on beliefs that are known to the concept's neighbours
|
static boolean |
ProcessTask.processTask(Concept concept,
DerivationContext nal,
Task task,
Timable time) |
Directly process a new task within a concept.Here task can either be a judgement, goal, question or quest.The function is called exactly once on each task.Using
local information and finishing in a constant time.
|
Modifier and Type | Method | Description |
---|---|---|
Task |
Concept.selectCandidate(Task query,
List<Task> list,
Timable time) |
Select a belief value or desire value for a given query
|
void |
Task.setBestSolution(Memory memory,
Sentence judg,
Timable time) |
Set the best-so-far solution for a Question or Goal, and report answer
for input question
|
Constructor | Description |
---|---|
Stamp(Timable time,
Memory memory) |
creates a stamp with default Present tense
|
Stamp(Timable time,
Memory memory,
Tense tense) |
Modifier and Type | Method | Description |
---|---|---|
static float |
LocalRules.solutionQuality(boolean rateByConfidence,
Task probT,
Sentence solution,
Memory memory,
Timable time) |
Evaluate the quality of the judgment as a solution to a problem
|
Modifier and Type | Method | Description |
---|---|---|
R |
TaskConsumer.addInput(Task task,
Timable time) |
consumes a task
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
Reasoner |
Implementations implement a full Non-axiomatic-reasoner
|
Modifier and Type | Class | Description |
---|---|---|
class |
Nar |
Non-Axiomatic Reasoner
Instances of this represent a reasoner connected to a Memory, and set of Input and Output channels.
|
Modifier and Type | Method | Description |
---|---|---|
Nar |
Nar.addInput(Task t,
Timable time) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
Operator.call(Operation operation,
Term[] args,
Memory memory,
Timable time) |
The standard way to carry out an operation, which invokes the execute
method defined for the operator, and handles feedback tasks as input
|
boolean |
Operator.call(Operation op,
Memory memory,
Timable time) |
|
protected List<Task> |
FunctionOperator.execute(Operation operation,
Term[] args,
Memory m,
Timable time) |
|
protected List<Task> |
NullOperator.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
called from Operator
|
protected abstract List<Task> |
Operator.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
Required method for every operator, specifying the corresponding
operation
|
Modifier and Type | Method | Description |
---|---|---|
void |
Anticipate.anticipate(Term content,
Memory memory,
long occurenceTime,
Task t,
Timable time) |
|
void |
Anticipate.anticipationFeedback(Term content,
Task t,
Memory memory,
Timable time) |
|
protected List<Task> |
Anticipate.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
|
protected List<Task> |
Believe.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a judgment with a given statement
|
protected List<Task> |
Consider.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To activate a concept as if a question has been asked about it
|
protected List<Task> |
Doubt.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To activate a concept as if a question has been asked about it
|
protected List<Task> |
Evaluate.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a quest with a given statement
|
protected List<Task> |
FeelBusy.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To get the current value of an internal sensor
|
protected List<Task> |
FeelSatisfied.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To get the current value of an internal sensor
|
protected List<Task> |
Hesitate.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To activate a concept as if a question has been asked about it
|
protected List<Task> |
Name.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a judgment with a given statement
|
protected List<Task> |
Register.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To register a new operator
|
protected List<Task> |
Remind.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To activate a concept as if a question has been asked about it
|
protected List<Task> |
Want.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a goal with a given statement
|
protected List<Task> |
Wonder.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a question with a given statement
|
protected List<Task> |
Feel.feeling(float value,
Memory memory,
Timable time) |
To get the current value of an internal sensor
|
Modifier and Type | Method | Description |
---|---|---|
protected List<Task> |
Abbreviation.Abbreviate.execute(Operation operation,
Term[] args,
Memory memory,
Timable time) |
To create a judgment with a given statement
|
static void |
InternalExperience.InternalExperienceFromBelief(Memory memory,
Task task,
Sentence belief,
Timable time) |
|
static void |
InternalExperience.InternalExperienceFromTask(Memory memory,
Task task,
boolean full,
Timable time) |
|
static boolean |
InternalExperience.InternalExperienceFromTaskInternal(Memory memory,
Task task,
boolean full,
Timable time) |
|
static Term |
InternalExperience.toTerm(Sentence s,
Memory mem,
Timable time) |
Modifier and Type | Method | Description |
---|---|---|
void |
SensoryChannel.addInput(String text,
Timable time) |
|
abstract Nar |
SensoryChannel.addInput(Task t,
Timable time) |
|
Nar |
VisionChannel.addInput(Task t,
Timable time) |
|
boolean |
VisionChannel.AddToMatrix(Task t,
Timable time) |
|
void |
SensoryChannel.step_finished(Timable time) |
|
void |
SensoryChannel.step_start(Timable time) |
|
void |
VisionChannel.step_start(Timable time) |
Modifier and Type | Method | Description |
---|---|---|
void |
Memory.executedTask(Timable time,
Operation operation,
TruthValue truth) |
ExecutedTask called in Operator.call
|
void |
Memory.inputTask(Timable time,
Task t) |
|
void |
Memory.inputTask(Timable time,
Task task,
boolean emitIn) |
Input task processing.
|
void |
Memory.localInference(Task task,
Parameters narParameters,
Timable time) |
|
void |
Memory.processNovelTask(Parameters narParameters,
Timable time) |
Select a novel task to process
|
Copyright © 2020 OpenNARS. All rights reserved.