org.pandora.thought.forgetfulness
Class Forgetfulness

java.lang.Object
  extended by org.pandora.thought.BasicThought
      extended by org.pandora.thought.forgetfulness.Forgetfulness
All Implemented Interfaces:
Thought

public class Forgetfulness
extends BasicThought

Forgetfulness is a sub-conscious thought that cleans up the memory to remove unused vertices and reduce relationship size.


Field Summary
static int MAX_RELATIONSHIPS
           
static int MAX_SIZE
           
static int PAGE
           
static int SLEEP
           
 
Constructor Summary
Forgetfulness()
           
 
Method Summary
 void awake()
          Add a listener to the memory to avoid checking if no changes.
 boolean isConscious()
          Thoughts can be conscious or sub-conscious.
 boolean isDirty()
           
 void setDirty(boolean isDirty)
           
 void think()
          Analyse the active memory.
 
Methods inherited from class org.pandora.thought.BasicThought
getName, getPandora, getPrimitive, getShortTermMemory, initialize, log, log, setName, setPandora, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_SIZE

public static int MAX_SIZE

MAX_RELATIONSHIPS

public static int MAX_RELATIONSHIPS

SLEEP

public static int SLEEP

PAGE

public static int PAGE
Constructor Detail

Forgetfulness

public Forgetfulness()
Method Detail

awake

public void awake()
Add a listener to the memory to avoid checking if no changes.

Specified by:
awake in interface Thought
Overrides:
awake in class BasicThought

think

public void think()
Analyse the active memory. Output the active article to the senses.

Specified by:
think in interface Thought
Overrides:
think in class BasicThought

isConscious

public boolean isConscious()
Thoughts can be conscious or sub-conscious. A conscious thought is run by the mind single threaded with exclusive access to the short term memory. A sub-conscious thought is run concurrently, and must run in its own memory space.

Specified by:
isConscious in interface Thought
Overrides:
isConscious in class BasicThought

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean isDirty)