|
||||||||||
| 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.TermLink
nars.entity.TaskLink
public class TaskLink
Reference to a Task.
The reason to separate a Task and a TaskLink is that the same Task can be linked from multiple Concepts, with different BudgetValue.
| Field Summary | |
|---|---|
private java.util.ArrayList<java.lang.String> |
record
Remember the TermLinks that has been used recently with this TaskLink |
private Task |
targetTask
The Task linked. |
| Fields inherited from class nars.entity.TermLink |
|---|
COMPONENT, COMPONENT_CONDITION, COMPONENT_STATEMENT, COMPOUND, COMPOUND_CONDITION, COMPOUND_STATEMENT, index, SELF, TRANSFORM, type |
| Fields inherited from class nars.entity.Item |
|---|
key |
| Fields inherited from class nars.entity.BudgetValue |
|---|
durability, priority, quality |
| Constructor Summary | |
|---|---|
TaskLink(Task t,
TermLink template,
BudgetValue v)
Constructor |
|
| Method Summary | |
|---|---|
(package private) java.util.ArrayList<java.lang.String> |
getRecord()
Get the TermLink record |
Task |
getTargetTask()
Get the target Task |
void |
merge(Item that)
Merge one TaskLink into another |
boolean |
novel(TermLink termLink)
To check whether a TaskLink should use a TermLink, return false if they interacted recently |
| Methods inherited from class nars.entity.TermLink |
|---|
getIndex, getIndices, getTarget, getType, setKey, toString, toString2 |
| 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 Task targetTask
private java.util.ArrayList<java.lang.String> record
| Constructor Detail |
|---|
public TaskLink(Task t,
TermLink template,
BudgetValue v)
only called in Memory.continuedProcess
t - The target Tasktemplate - The TermLink templatev - The budget| Method Detail |
|---|
public Task getTargetTask()
java.util.ArrayList<java.lang.String> getRecord()
public void merge(Item that)
that - The other TaskLinkpublic boolean novel(TermLink termLink)
called in TermLinkBag only
termLink - The TermLink to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||