public class Consciousness extends BasicThought
| Modifier and Type | Field and Description |
|---|---|
static int |
IGNORE_RELATIONS_MAX |
static int |
MAX_PROCESS_TIME |
static int |
TRAVERSAL_LIMIT |
| Constructor and Description |
|---|
Consciousness()
Create a new consciousness.
|
| Modifier and Type | Method and Description |
|---|---|
void |
age(Network network)
Age the network, decrease consciousness level by 10%.
|
void |
awake()
Perform any initialization required on startup.
|
Vertex |
getLastContext(Network network)
Return the last conscious point in time.
|
long |
getProcessingTime()
Return the current allowed processing time.
|
int |
getTraversalLevel()
Return the number of levels to traverse a vertex for the current state.
|
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties.
|
void |
migrateProperties()
Migrate to new properties system.
|
void |
saveProperties() |
void |
setLastContext(Vertex lastContext)
Set the last conscious point in time.
|
void |
think()
Analyse the active memory.
|
void |
think(Vertex vertex,
int levels,
java.util.Set<Vertex> recursiveSet,
java.util.Set<Vertex> breadtheSet)
Analyse vertex and traverse its relationships.
|
getBot, getName, getPrimitive, getShortTermMemory, isConscious, isCritical, isEnabled, isStopped, log, log, pool, setBot, setEnabled, setName, setStopped, stop, toStringpublic static int IGNORE_RELATIONS_MAX
public static int TRAVERSAL_LIMIT
public static int MAX_PROCESS_TIME
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize in interface Thoughtinitialize in class BasicThoughtpublic Vertex getLastContext(Network network)
public void setLastContext(Vertex lastContext)
public int getTraversalLevel()
public void age(Network network)
public long getProcessingTime()
public void think()
think in interface Thoughtthink in class BasicThoughtpublic void awake()
BasicThoughtawake in interface Thoughtawake in class BasicThoughtpublic void migrateProperties()
migrateProperties in interface ThoughtmigrateProperties in class BasicThoughtpublic void saveProperties()
saveProperties in interface ThoughtsaveProperties in class BasicThought