Package cmion.level3

Class AgentMindConnector

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void architectureReady()
      informs the mind that the architecture is ready for the mind executing actions
      abstract void awakeMind()
      sends a command to the mind telling it to resume decision making and action execution
      void cancel​(MindAction mindAction)
      cancels a currently executing mind action (if such an action is currently running)
      abstract boolean isMindSleeping()
      returns whether the mind is sleeping or not
      void newAction​(MindAction mindAction)
      call this if the mind decides to execute a new action, this will schedule an ION request with the competency manager to execute the action
      void onDestroy()
      abstract method overridden from ION.meta.element
      protected abstract void processActionCancellation​(MindAction a)
      informs mind of the success of the cancellation of an executed action
      protected abstract void processActionFailure​(MindAction a)
      informs mind of the failure of a recently executed action
      protected abstract void processActionSuccess​(MindAction a)
      informs mind of the success of a recently executed action
      protected abstract void processEntityAdded​(java.lang.String entityName)
      informs the mind that a new entity (agent or object) has been added to the world model
      protected abstract void processEntityRemoved​(java.lang.String entityName)
      informs the mind that an entity (agent or object) has been removed from the world model
      protected abstract void processPropertyChanged​(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue, boolean persistent)
      informs the mind that a property of an agent or object in the world model has changed
      protected abstract void processPropertyRemoved​(java.lang.String entityName, java.lang.String propertyName)
      informs the mind that a property of an agent or object in the world model has been removed
      protected abstract void processRawMessage​(java.lang.String message)
      in this message a mind can parse raw messages containing specialised communication / perceptions / requests
      protected abstract void processRemoteAction​(MindAction remoteAction)
      sends a remoteAction (an action that another agent/user has performed) to the mind
      void registerHandlers()
      in this method the mind connector registers its request and event handlers with ION
      abstract void sendMindToSleep()
      sends a command to the connected mind, making it pause any decision making processes and action execution, while the mind is paused it should not send any action
      • Methods inherited from class ion.Meta.Element

        destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
      • Methods inherited from class java.lang.Object

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

      • AgentMindConnector

        public AgentMindConnector​(IArchitecture architecture)
        create a new Agent Mind Connector
    • Method Detail

      • sendMindToSleep

        public abstract void sendMindToSleep()
        sends a command to the connected mind, making it pause any decision making processes and action execution, while the mind is paused it should not send any action
      • isMindSleeping

        public abstract boolean isMindSleeping()
        returns whether the mind is sleeping or not
      • awakeMind

        public abstract void awakeMind()
        sends a command to the mind telling it to resume decision making and action execution
      • processRemoteAction

        protected abstract void processRemoteAction​(MindAction remoteAction)
        sends a remoteAction (an action that another agent/user has performed) to the mind
      • processActionSuccess

        protected abstract void processActionSuccess​(MindAction a)
        informs mind of the success of a recently executed action
      • processActionFailure

        protected abstract void processActionFailure​(MindAction a)
        informs mind of the failure of a recently executed action
      • processActionCancellation

        protected abstract void processActionCancellation​(MindAction a)
        informs mind of the success of the cancellation of an executed action
      • processEntityAdded

        protected abstract void processEntityAdded​(java.lang.String entityName)
        informs the mind that a new entity (agent or object) has been added to the world model
      • processEntityRemoved

        protected abstract void processEntityRemoved​(java.lang.String entityName)
        informs the mind that an entity (agent or object) has been removed from the world model
      • processPropertyChanged

        protected abstract void processPropertyChanged​(java.lang.String entityName,
                                                       java.lang.String propertyName,
                                                       java.lang.String propertyValue,
                                                       boolean persistent)
        informs the mind that a property of an agent or object in the world model has changed
      • processPropertyRemoved

        protected abstract void processPropertyRemoved​(java.lang.String entityName,
                                                       java.lang.String propertyName)
        informs the mind that a property of an agent or object in the world model has been removed
      • processRawMessage

        protected abstract void processRawMessage​(java.lang.String message)
        in this message a mind can parse raw messages containing specialised communication / perceptions / requests
      • architectureReady

        protected abstract void architectureReady()
        informs the mind that the architecture is ready for the mind executing actions
      • registerHandlers

        public final void registerHandlers()
        in this method the mind connector registers its request and event handlers with ION
        Specified by:
        registerHandlers in class CmionComponent
      • newAction

        public final void newAction​(MindAction mindAction)
        call this if the mind decides to execute a new action, this will schedule an ION request with the competency manager to execute the action
      • cancel

        public final void cancel​(MindAction mindAction)
        cancels a currently executing mind action (if such an action is currently running)
      • onDestroy

        public void onDestroy()
        abstract method overridden from ION.meta.element
        Overrides:
        onDestroy in class CmionComponent