Package | Description |
---|---|
org.opennars.interfaces.pub | |
org.opennars.io |
Input/output management
|
org.opennars.main |
Modifier and Type | Method | Description |
---|---|---|
Reasoner |
Reasoner.ask(String termString,
AnswerHandler answered) |
ask reasoner a eternal question
|
Reasoner |
Reasoner.askNow(String termString,
AnswerHandler answered) |
ask reasoner a now question
|
Concept |
Reasoner.concept(String concept) |
returns the concept by name/term or creates it if it doesn't exist
|
Modifier and Type | Method | Description |
---|---|---|
private static String |
Narsese.getBudgetString(StringBuilder s) |
Return the prefix of a task symbol that contains a BudgetValue
|
private static String |
Narsese.getTruthString(StringBuilder s) |
Return the postfix of a task symbol that contains a TruthValue
|
private List<Term> |
Narsese.parseArguments(String s0) |
Parse a String into the argument get of a CompoundTerm.
|
private Term |
Narsese.parseAtomicTerm(String s0) |
Parse a term that has no internal structure.
|
private BudgetValue |
Narsese.parseBudget(String s,
char punctuation,
TruthValue truth) |
react the addInput String into a BudgetValue
|
private Term |
Narsese.parseCompoundTerm(String s0) |
Parse a String to create a CompoundTerm.
|
private Statement |
Narsese.parseStatement(String s0) |
Parse a string to create a statement.
|
Task |
Narsese.parseTask(String s) |
Enter a new Task in String into the memory, called from InputWindow or
locally.
|
Task |
Parser.parseTask(String narsese) |
|
Term |
Narsese.parseTerm(String s) |
Top-level method that react a Term in general, which may recursively call itself.
|
Modifier and Type | Method | Description |
---|---|---|
Nar |
Nar.ask(String termString,
AnswerHandler answered) |
|
Nar |
Nar.askNow(String termString,
AnswerHandler answered) |
|
Concept |
Nar.concept(String concept) |
gets a concept if it exists, or returns null if it does not
|
Copyright © 2020 OpenNARS. All rights reserved.