nars.storage
Class TaskBuffer

java.lang.Object
  extended by nars.storage.Bag<Task>
      extended by nars.storage.TaskBuffer

public class TaskBuffer
extends Bag<Task>

New tasks that contain new Term.


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
TaskBuffer()
           
 
Method Summary
protected  int capacity()
          Get the (constant) capacity of TaskBuffer
protected  int forgetRate()
          Get the (constant) forget rate in TaskBuffer
 java.lang.String toString()
          Sepecial treatment: the display also include Tasks in the NewTask list
 
Methods inherited from class nars.storage.Bag
averagePriority, contains, get, outOfBase, pickOut, play, putBack, putIn, refresh, startPlay, stop, takeOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskBuffer

public TaskBuffer()
Method Detail

capacity

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

Specified by:
capacity in class Bag<Task>
Returns:
The capacity of TaskBuffer

forgetRate

protected int forgetRate()
Get the (constant) forget rate in TaskBuffer

Specified by:
forgetRate in class Bag<Task>
Returns:
The forget rate in TaskBuffer

toString

public java.lang.String toString()
Sepecial treatment: the display also include Tasks in the NewTask list

Overrides:
toString in class Bag<Task>
Returns:
New Tasks in the buffer and list for display