Package cmion.level3.fatima
Class FAtiMAListenerThread
- java.lang.Object
-
- java.lang.Thread
-
- cmion.util.SocketListener
-
- cmion.level3.fatima.FAtiMAListenerThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class FAtiMAListenerThread extends SocketListener
In this thread we communicate with the FAtiMA mind through a remote connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFAtiMAListenerThread.LookAtThread
-
Field Summary
-
Fields inherited from class cmion.util.SocketListener
maxSize, socket, stopped
-
-
Constructor Summary
Constructors Constructor Description FAtiMAListenerThread(java.net.Socket socket, FAtiMAConnector connector)create a new FAtiMAListenerThread
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgentName()returns the name of the FAtiMA agent that is connected to this threadjava.lang.StringgetDisplayName()returns the display name of the FAtiMA agent that is connected to this threadjava.lang.StringgetRole()returns the role (personality profile) of the FAtiMA agent that is connected to this threadprotected voidprocessMessage(java.lang.String msg)this method processes messages that FAtiMA has sentbooleansend(java.lang.String msg)voidsendLookAtPerception(java.lang.String target)-
Methods inherited from class cmion.util.SocketListener
close, initialize, run
-
Methods 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 Detail
-
FAtiMAListenerThread
public FAtiMAListenerThread(java.net.Socket socket, FAtiMAConnector connector)create a new FAtiMAListenerThread
-
-
Method Detail
-
send
public boolean send(java.lang.String msg)
- Overrides:
sendin classSocketListener
-
processMessage
protected void processMessage(java.lang.String msg)
this method processes messages that FAtiMA has sent- Specified by:
processMessagein classSocketListener
-
sendLookAtPerception
public void sendLookAtPerception(java.lang.String target)
-
getAgentName
public java.lang.String getAgentName()
returns the name of the FAtiMA agent that is connected to this thread
-
getDisplayName
public java.lang.String getDisplayName()
returns the display name of the FAtiMA agent that is connected to this thread
-
getRole
public java.lang.String getRole()
returns the role (personality profile) of the FAtiMA agent that is connected to this thread
-
-