|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.entity.BudgetValue
nars.entity.Item
nars.entity.Task
public class Task
A task to be processed, consists of a Sentence and a BudgetValue
| Field Summary | |
|---|---|
private Sentence |
sentence
The sentence of the Task |
protected boolean |
structual
Whether it is derived by a structual rule |
| Fields inherited from class nars.entity.Item |
|---|
key |
| Fields inherited from class nars.entity.BudgetValue |
|---|
durability, priority, quality |
| Constructor Summary | |
|---|---|
Task(Sentence s,
BudgetValue b)
Constructor |
|
| Method Summary | |
|---|---|
Term |
getContent()
Directly get the content of the sentence |
Sentence |
getSentence()
Get the sentence |
TemporalValue |
getTense()
Directly get the tense of the sentence |
boolean |
isStructual()
Check if a Task is derived by a StructuralRule |
void |
merge(Item that)
Merge one Task into another |
void |
setStructual()
Record if a Task is derived by a StructuralRule |
java.lang.String |
toString()
Get a String representation of the Task |
java.lang.String |
toString2()
Get a String representation of the Task, with reduced accuracy |
| Methods inherited from class nars.entity.Item |
|---|
getBudget, getKey |
| Methods inherited from class nars.entity.BudgetValue |
|---|
aboveThreshold, clone, decDurability, decPriority, decQuality, getDurability, getPriority, getQuality, incDurability, incPriority, incQuality, merge, setDurability, setPriority, setQuality, summary |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Sentence sentence
protected boolean structual
| Constructor Detail |
|---|
public Task(Sentence s,
BudgetValue b)
s - The sentenceb - The budget| Method Detail |
|---|
public Sentence getSentence()
public Term getContent()
public TemporalValue getTense()
public boolean isStructual()
public void setStructual()
public void merge(Item that)
that - The other Taskpublic java.lang.String toString()
toString in class BudgetValuepublic java.lang.String toString2()
toString2 in class BudgetValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||