Class HelloWorld2


  • public class HelloWorld2
    extends java.lang.Object
    Hello World with goal driven print out. class is checked for annotations goal, plan type declarations from annotations or inline plans are added to the agent type and conditions to eca rule system class is rewritten to announce belief changes (field accesses and annotated methods)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The bdi agent.
    • Constructor Summary

      Constructors 
      Constructor Description
      HelloWorld2()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void body()
      The agent body.
      • Methods inherited from class java.lang.Object

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

      • HelloWorld2

        public HelloWorld2()
    • Method Detail

      • body

        public void body()
        The agent body. body is executed changes variable value (sayhello=true) notification is sent to eca rule system rule system finds creation condition of goal and executes it right hand side creates goal and executes it Plan is selected and executed (hello is printed out)