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, toString
public 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 Thought
initialize
in class BasicThought
public 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 Thought
think
in class BasicThought
public void awake()
BasicThought
awake
in interface Thought
awake
in class BasicThought
public void migrateProperties()
migrateProperties
in interface Thought
migrateProperties
in class BasicThought
public void saveProperties()
saveProperties
in interface Thought
saveProperties
in class BasicThought