nars.storage
Class TermLinkBag

java.lang.Object
  extended by nars.storage.Bag<TermLink>
      extended by nars.storage.TermLinkBag

public class TermLinkBag
extends Bag<TermLink>

Contains TermLinks to relevant (compound or component) Terms.


Field Summary
 
Fields inherited from class nars.storage.Bag
capacity, currentCounter, currentLevel, DISTRIBUTOR, itemTable, levelIndex, LOAD_FACTOR, mass, nameTable, RELATIVE_THRESHOLD, showing, THRESHOLD, TOTAL_LEVEL, window
 
Constructor Summary
TermLinkBag()
           
 
Method Summary
protected  int capacity()
          Get the (constant) capacity of TermLinkBag
protected  int forgetRate()
          Get the (adjustable) forget rate of TermLinkBag
 TermLink takeOut(TaskLink taskLink)
          Replace defualt to prevent repeated inference, by checking TaskLink
 
Methods inherited from class nars.storage.Bag
averagePriority, contains, get, outOfBase, pickOut, play, putBack, putIn, refresh, startPlay, stop, takeOut, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TermLinkBag

public TermLinkBag()
Method Detail

capacity

protected int capacity()
Get the (constant) capacity of TermLinkBag

Specified by:
capacity in class Bag<TermLink>
Returns:
The capacity of TermLinkBag

forgetRate

protected int forgetRate()
Get the (adjustable) forget rate of TermLinkBag

Specified by:
forgetRate in class Bag<TermLink>
Returns:
The forget rate of TermLinkBag

takeOut

public TermLink takeOut(TaskLink taskLink)
Replace defualt to prevent repeated inference, by checking TaskLink

Parameters:
taskLink - The selected TaskLink
Returns:
The selected TermLink