public class Forgetfulness extends BasicThought
Modifier and Type | Class and Description |
---|---|
static class |
Forgetfulness.ForgetType |
Modifier and Type | Field and Description |
---|---|
long |
expiry
Min number of days to keep conversation and context data for.
|
static long |
EXPIRY
Min number of days to keep conversation and context data for.
|
static int |
MAX_RELATIONSHIPS |
static int |
MAX_SIZE |
int |
maxRelationships |
int |
maxSize |
static int |
PAGE |
static long |
TIME_TO_LIVE |
Constructor and Description |
---|
Forgetfulness() |
Modifier and Type | Method and Description |
---|---|
int |
forget(Forgetfulness.ForgetType type,
int numberToDelete,
long timeToLive,
Network memory) |
int |
forget(Forgetfulness.ForgetType type,
int numberToDelete,
Network memory) |
void |
forget(Network memory) |
void |
forget(Network memory,
boolean force) |
void |
forget(Network memory,
boolean force,
long timeToLive) |
void |
forgetRelationships(Network memory) |
long |
getExpiry() |
int |
getMaxRelationships() |
int |
getMaxSize() |
boolean |
isConscious()
Thoughts can be conscious or sub-conscious.
|
boolean |
isCritical()
Return if this thought must run even under stress.
|
void |
setExpiry(long expiry) |
void |
setMaxRelationships(int maxRelationships) |
void |
setMaxSize(int maxSize) |
void |
think()
Analyse the active memory.
|
awake, getBot, getName, getPrimitive, getShortTermMemory, initialize, isEnabled, isStopped, log, log, migrateProperties, pool, saveProperties, setBot, setEnabled, setName, setStopped, stop, toString
public static int PAGE
public static long EXPIRY
public static int MAX_SIZE
public static int MAX_RELATIONSHIPS
public static long TIME_TO_LIVE
public long expiry
public int maxSize
public int maxRelationships
public void think()
think
in interface Thought
think
in class BasicThought
public int forget(Forgetfulness.ForgetType type, int numberToDelete, Network memory) throws java.lang.Exception
java.lang.Exception
public int forget(Forgetfulness.ForgetType type, int numberToDelete, long timeToLive, Network memory) throws java.lang.Exception
java.lang.Exception
public void forget(Network memory) throws java.lang.Exception
java.lang.Exception
public void forget(Network memory, boolean force) throws java.lang.Exception
java.lang.Exception
public void forget(Network memory, boolean force, long timeToLive) throws java.lang.Exception
java.lang.Exception
public void forgetRelationships(Network memory) throws java.lang.Exception
java.lang.Exception
public boolean isConscious()
isConscious
in interface Thought
isConscious
in class BasicThought
public boolean isCritical()
isCritical
in interface Thought
isCritical
in class BasicThought
public long getExpiry()
public void setExpiry(long expiry)
public int getMaxSize()
public void setMaxSize(int maxSize)
public int getMaxRelationships()
public void setMaxRelationships(int maxRelationships)