Class WaitBDI


  • public class WaitBDI
    extends java.lang.Object
    Agent that tests plan waiting for fact added and removed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jadex.bridge.IInternalAccess agent  
      protected java.util.List<java.lang.String> names  
      protected jadex.base.test.TestReport[] tr  
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitBDI()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addName​(java.lang.String name)
      Add a name.
      void body()
      The agent body.
      void destroy​(jadex.bridge.IInternalAccess agent)
      Called when agent is killed.
      protected void removeName​(java.lang.String name)
      Remove a name.
      protected jadex.commons.future.IFuture<java.lang.Void> waitPlan​(jadex.bdiv3.runtime.impl.RPlan rplan)
      Plan that waits for addition and removal of a name.
      • Methods inherited from class java.lang.Object

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

      • agent

        protected jadex.bridge.IInternalAccess agent
      • names

        protected java.util.List<java.lang.String> names
      • tr

        protected jadex.base.test.TestReport[] tr
    • Constructor Detail

      • WaitBDI

        public WaitBDI()
    • Method Detail

      • body

        public void body()
        The agent body.
      • destroy

        public void destroy​(jadex.bridge.IInternalAccess agent)
        Called when agent is killed.
      • addName

        protected void addName​(java.lang.String name)
        Add a name.
        Parameters:
        name - The name.
      • removeName

        protected void removeName​(java.lang.String name)
        Remove a name.
        Parameters:
        name - The name.
      • waitPlan

        protected jadex.commons.future.IFuture<java.lang.Void> waitPlan​(jadex.bdiv3.runtime.impl.RPlan rplan)
        Plan that waits for addition and removal of a name.