Package cmion.level3.fatima
Class FAtiMAListenerThread
java.lang.Object
java.lang.Thread
cmion.util.SocketListener
cmion.level3.fatima.FAtiMAListenerThread
- All Implemented Interfaces:
Runnable
In this thread we communicate with the FAtiMA mind through a remote connection
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class cmion.util.SocketListener
maxSize, socket, stoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionFAtiMAListenerThread(Socket socket, FAtiMAConnector connector) create a new FAtiMAListenerThread -
Method Summary
Modifier and TypeMethodDescriptionreturns the name of the FAtiMA agent that is connected to this threadreturns the display name of the FAtiMA agent that is connected to this threadgetRole()returns the role (personality profile) of the FAtiMA agent that is connected to this threadprotected voidprocessMessage(String msg) this method processes messages that FAtiMA has sentbooleanvoidsendLookAtPerception(String target) Methods inherited from class cmion.util.SocketListener
close, initialize, runMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
FAtiMAListenerThread
create a new FAtiMAListenerThread
-
-
Method Details
-
send
- Overrides:
sendin classSocketListener
-
processMessage
this method processes messages that FAtiMA has sent- Specified by:
processMessagein classSocketListener
-
sendLookAtPerception
-
getAgentName
returns the name of the FAtiMA agent that is connected to this thread -
getDisplayName
returns the display name of the FAtiMA agent that is connected to this thread -
getRole
returns the role (personality profile) of the FAtiMA agent that is connected to this thread
-