/** * The translation agent A1. * * Empty agent that can be loaded and started. */ @Agent @Description("The translation agent A1. <br> Empty agent that can be loaded and started.") public class TranslationBDI { }
/** * Chat micro agent. */ @Description("This agent offers a chat service.") @Agent public class ChatB2Agent { }
/** * Agent that produces an exception during init. */ @Description("Agent that produces an exception during init.") @Agent public class BrokenInitAgent { /** * Init the agent. */ @AgentCreated public IFuture<Void> agentCreated() { throw new RuntimeException("Exception in init."); } }
/** * Agent that produces an exception during init. */ @Description("Agent that produces an exception during init.") @Agent public class PojoBrokenInitAgent { /** * Init the agent. */ @AgentCreated public IFuture<Void> agentCreated() { throw new RuntimeException("Exception in init."); } }
/** * Agent with protected body method. */ @Agent @Description("Agent with protected body method.") public class ProtectedBodyAgent { /** * Init the agent. */ @AgentCreated public void agentCreated() { // System.out.println("invoked created"); } /** * Perform the tests */ @AgentBody protected void executeBody() { System.out.println("invoked body"); } }
@Agent(keepalive=Boolean3.FALSE) @Description("Hello world agent that creates a hello plan.") public abstract class HelloWorldPlan2BDI implements IBDIAgent { /** * The agent body. */ @AgentBody public void body() { adoptPlan("printHello").get(); } /** * Plan that prints out goal text and passes. */ @Plan protected void printHello(IPlan plan) { System.out.println("Hello World."); plan.waitFor(1000).get(); System.out.println("Good bye."); } }
@Description("The clock agent C4. <br> This agent uses a getter/setter non-field belief.") @Agent public class ClockBDI
@Description("The clock agent C3. <br> This agent uses a getter/setter belief.") @Agent public class ClockBDI
@Description("The intermediate invoker agent tests if intermediate futures can be terminated " + "in local and remote cases.") public class IntermediateInvokerAgent extends InvokerAgent
@Description("The clock agent C5. <br> This translation agent uses a belief with update rate.") @Agent public class ClockBDI
@Description("The translation agent C1. <br> This translation agent allows for adding word pairs to extend its dictionary.") @Agent public class TranslationBDI
/** * Chat micro agent with a registry service. */ @Description("This agent provides a registry service.") @Agent @ProvidedServices(@ProvidedService(type=IRegistryServiceE3.class, implementation=@Implementation(RegistryServiceE3.class))) public class RegistryE3Agent { }
@Description("The translation agent B3. <br> Declare and activate an inline plan (declared as method).")
@Description("The translation agent B3. <br> Declare and activate an inline plan (declared as method).")
@Description("The clock agent C3. <br> This agent uses a getter/setter belief.") @Agent public class Clock2BDI
@Description("The translation agent B4. <br> Using other plan methods.") public class TranslationBDI
@Description("User agent that presents a gui for using the translation service of the translation agent.") public class UserBDI
@Description("User agent that presents a gui for using the translation service of the translation agent.") public class UserBDI
@Imports({"java.util.logging.*"}) @Description("Hello world agent that creates a hello plan.") public class HelloWorldPlanBDI
@Description("This agent search the factory for micro agents.") @Agent public class ChatC4Agent