/** * The agent body. */ @AgentBody public void body() { sayhello = "Hello BDI agent V3."; // System.out.println("body end: "+getClass().getName()); }
/** * The agent body. */ @AgentBody public IFuture<Void> executeBody() { // System.out.println("myres: "+myres); // System.out.println("someint: "+someint); someint = "99"; return IFuture.DONE; } }
/** * The agent body. */ @AgentBody public void body() { // Empty overridden. } }
/** * The body. */ @AgentBody public IFuture<Void> executeBody() { return IFuture.DONE; // killAgent(); }
/** * The agent body. */ @AgentBody public void body() { eword = "cat"; eword = "milk"; }
@AgentBody public void body(IInternalAccess agent) { number = 9.4; number = 29.5; }
/** * 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) */ @AgentBody public void body() { // sayhello[0] = "1"; // sayhello[1] = "2"; // sayhello[2] = "3"; sayhello[0] = true; // sayhello[0] = 10; // System.out.println("body end: "+getClass().getName()); }
/** * The agent body. */ @AgentBody public void body() { if(agent==null) { throw new RuntimeException("Agent class was not enhaned but creation was initiated."); } } }
/** * The agent body. */ @AgentBody public void executeBody() { System.out.println("body"); } }
/** * The agent body. */ @AgentBody public void executeBody() { // System.out.println("execute ExceptionTest ..."); throw new RuntimeException("Exception in agent body"); // System.out.println("... finished"); } }
/** * Perform the tests */ @AgentBody protected void executeBody() { System.out.println("invoked body"); } }
/** * The agent body. */ @AgentBody public IFuture<Void> executeBody() { // System.out.println("execute ExceptionTest ..."); throw new RuntimeException("Exception in agent body"); // System.out.println("... finished"); } }
/** * The agent body. */ @AgentBody public void body() { // System.out.println(EnvironmentLocalBDI.class.getClassLoader()); // System.out.println("body: "+getClass().getClassLoader()+" "+agent.getClassLoader()); SwingUtilities.invokeLater(new Runnable() { public void run() { new EnvironmentGui(agent.getExternalAccess()); } }); }
/** * 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) */ @AgentBody public void body() { sayhello = "Hello BDI agent V3."; System.out.println("body end: "+getClass().getName()); }
/** * 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) */ @AgentBody public void body() { sayhello = "Hello BDI agent V3."; System.out.println("body end: "+getClass().getName()); }
/** * 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) */ @AgentBody public void body() { sayhello = "Hello BDI agent V3."; System.out.println("body end: "+getClass().getName()); }
/** * 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) */ @AgentBody public void body() { sayhello = "Hello BDI agent V3."; System.out.println("body end: "+getClass().getName()); }
@AgentBody public void executeBody() { System.out.println("Time for a chat, buddy: "+ new Date(clockservice.getTime())); } }
/** * Plan body. */ @AgentBody public IFuture<Void> body() { System.out.println("Setting success: "+parent); parent.setSuccess(true); return IFuture.DONE; } }
/** * At startup register the agent at the DF. */ @AgentBody public IFuture<Void> executeBody() { this.reports = new ArrayList<TestReport>(); return registerDF(); }