|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.entity.Sentence
nars.entity.Judgment
public class Judgment
A Judgment is an piece of new knowledge to be absorbed.
| Field Summary |
|---|
| Fields inherited from class nars.entity.Sentence |
|---|
bestSolution, content, input, punctuation, stamp, temporalOrder, truth |
| Constructor Summary | |
|---|---|
Judgment(Goal g)
Construct a Judgment to indicate an operation just executed |
|
Judgment(Term term,
char punc,
TruthValue t,
Stamp b)
Constructor |
|
| Method Summary | |
|---|---|
(package private) boolean |
equivalentTo(Judgment that)
Check whether the judgment is equivalent to another one |
boolean |
isFuture()
Check if the judgment predict a future event |
float |
solutionQuality(Sentence problem)
Evaluate the quality of the judgment as a solution to a problem |
| Methods inherited from class nars.entity.Sentence |
|---|
clone, cloneContent, getBestSolution, getContent, getCreationTime, getEventTime, getStamp, getTense, getTruth, isInput, isJudgment, make, make, noOverlapping, setBestSolution, setContent, setInput, tenseToString, toKey, toString, toString2 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Judgment(Term term,
char punc,
TruthValue t,
Stamp b)
term - The contentpunc - The punctuationt - The truth valueb - The stamppublic Judgment(Goal g)
g - The goal that trigger the execution| Method Detail |
|---|
boolean equivalentTo(Judgment that)
The two may have different keys
that - The other judgment
public float solutionQuality(Sentence problem)
problem - A goal or question
public boolean isFuture()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||