|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pandora.thought.BasicThought
org.pandora.thought.consciousness.Consciousness
public class Consciousness
Consciousness monitors active memory and decides what to do.
Field Summary | |
---|---|
static int |
MAX_PROCESS_TIME
|
static int |
TRAVERSAL_LIMIT
|
Constructor Summary | |
---|---|
Consciousness()
Create a new consciousness. |
Method Summary | |
---|---|
void |
age(Network network)
Age the network, decrease consciousness level by 10%. |
Vertex |
getLastContext()
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 |
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. |
Methods inherited from class org.pandora.thought.BasicThought |
---|
awake, getName, getPandora, getPrimitive, getShortTermMemory, isConscious, log, log, setName, setPandora, stop, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int TRAVERSAL_LIMIT
public static int MAX_PROCESS_TIME
Constructor Detail |
---|
public Consciousness()
Method Detail |
---|
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize
in interface Thought
initialize
in class BasicThought
public Vertex getLastContext()
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 think(Vertex vertex, int levels, java.util.Set<Vertex> recursiveSet, java.util.Set<Vertex> breadtheSet)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |