Class 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
      class  FAtiMAListenerThread.LookAtThread  
      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAgentName()
      returns the name of the FAtiMA agent that is connected to this thread
      java.lang.String getDisplayName()
      returns the display name of the FAtiMA agent that is connected to this thread
      java.lang.String getRole()
      returns the role (personality profile) of the FAtiMA agent that is connected to this thread
      protected void processMessage​(java.lang.String msg)
      this method processes messages that FAtiMA has sent
      boolean send​(java.lang.String msg)  
      void sendLookAtPerception​(java.lang.String target)  
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        send in class SocketListener
      • processMessage

        protected void processMessage​(java.lang.String msg)
        this method processes messages that FAtiMA has sent
        Specified by:
        processMessage in class SocketListener
      • 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