Class BDIXLifecycleAgentFeature

  • All Implemented Interfaces:
    jadex.bdiv3.features.impl.IInternalBDILifecycleFeature, IComponentFeature, ILifecycleComponentFeature

    public class BDIXLifecycleAgentFeature
    extends jadex.bridge.component.impl.ComponentLifecycleFeature
    implements jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
    Feature that ensures the bdi behavior is started. Differs from pojo BDILifecycleAgentFeature by extending ComponentLifecycleFeature.
    • Field Detail

      • inited

        protected boolean inited
        Is the agent inited and allowed to execute rules?
      • shutdown

        protected boolean shutdown
        Is the agent in shutdown?.
    • Method Detail

      • body

        public IFuture<java.lang.Void> body()
        Execute the functional body of the agent. Is only called once.
        Specified by:
        body in interface IComponentFeature
        Overrides:
        body in class jadex.bridge.component.impl.ComponentLifecycleFeature
      • shutdown

        public IFuture<java.lang.Void> shutdown()
        Start the end state.
        Specified by:
        shutdown in interface IComponentFeature
        Overrides:
        shutdown in class jadex.bridge.component.impl.ComponentLifecycleFeature
      • isInited

        public boolean isInited()
        Get the inited.
        Specified by:
        isInited in interface jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
        Returns:
        The inited.
      • setInited

        public void setInited​(boolean inited)
        The inited to set.
        Specified by:
        setInited in interface jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
        Parameters:
        inited - The inited to set
      • isShutdown

        public boolean isShutdown()
        Get the shutdown.
        Specified by:
        isShutdown in interface jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
        Returns:
        The shutdown
      • setShutdown

        public void setShutdown​(boolean shutdown)
        Set the shutdown.
        Specified by:
        setShutdown in interface jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
        Parameters:
        shutdown - The shutdown to set