Class SuperSimpleMigratingMind


  • public class SuperSimpleMigratingMind
    extends java.lang.Object
    an example mind for migration demonstration puposes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeMigrationBackAction()
      creates a Migrating action to a specific device and attempts to execute it
      java.lang.String getAgentName()
      returns the name of the agent
      boolean isSleeping()
      returns whether the mind is sleeping or not
      void sendAwake()
      this is called to awake the mind
      void sendEntityAdded​(java.lang.String entityName)
      the mind processes added entities in this function
      void sendEntityRemoved​(java.lang.String entityName)
      the mind processes removed entities in this function
      void sendFailure​(MindAction a)
      notify the mind of an action failure
      void sendPropertyChanged​(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue)
      the mind processes changed properties in this function
      void sendPropertyRemoved​(java.lang.String entityName, java.lang.String propertyName)
      the mind processes removed properties in this function
      void sendRemoteAction​(MindAction remoteAction)
      the mind processes remote actions (actions of other agents / users) in this function
      void sendSleep()
      send the mind to sleep
      void sendSuccess​(MindAction a)
      notify the mind of an action success
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAgentName

        public java.lang.String getAgentName()
        returns the name of the agent
      • sendAwake

        public void sendAwake()
        this is called to awake the mind
      • sendFailure

        public void sendFailure​(MindAction a)
        notify the mind of an action failure
      • sendSuccess

        public void sendSuccess​(MindAction a)
        notify the mind of an action success
      • sendSleep

        public void sendSleep()
        send the mind to sleep
      • sendRemoteAction

        public void sendRemoteAction​(MindAction remoteAction)
        the mind processes remote actions (actions of other agents / users) in this function
      • isSleeping

        public boolean isSleeping()
        returns whether the mind is sleeping or not
      • executeMigrationBackAction

        public void executeMigrationBackAction()
        creates a Migrating action to a specific device and attempts to execute it
      • sendEntityAdded

        public void sendEntityAdded​(java.lang.String entityName)
        the mind processes added entities in this function
      • sendEntityRemoved

        public void sendEntityRemoved​(java.lang.String entityName)
        the mind processes removed entities in this function
      • sendPropertyChanged

        public void sendPropertyChanged​(java.lang.String entityName,
                                        java.lang.String propertyName,
                                        java.lang.String propertyValue)
        the mind processes changed properties in this function
      • sendPropertyRemoved

        public void sendPropertyRemoved​(java.lang.String entityName,
                                        java.lang.String propertyName)
        the mind processes removed properties in this function