agents-jade

How to start JADE Gui within another Gui?

为君一笑 提交于 2019-12-10 10:41:53
问题 How to start JADE Gui within another Gui? Let's say I have a button on my Gui. After hitting that button the JADE Gui will started. Is this possible? If yes, how? Thanks in advance. Regards 回答1: I'm assuming by JADE Gui you mean the JADE RMA Since the RMA is itself an Agent, showing the RMA gui is simply a matter of creating and starting the RMA agent. If you were doing this through code (ie. not through the command-line or the gui), you would have to have a reference to the container

JADE in Eclipse ICP exception

删除回忆录丶 提交于 2019-12-10 10:35:28
问题 I want to start writing JADE in Eclipse. To do so I added the following script provided by Java Agent Development Framework - Eclipse and Maven integration. I made an agent: public class Test extends Agent { private static final long serialVersionUID = 1L; String nickname = "Peter"; AID id = new AID(nickname, AID.ISLOCALNAME); protected void setup() { // Printout a welcome message System.out.println("Hello! Buyer-agent " +getAID().getName()+ " is ready."); } } And when I run my JadeBootThread

Getting a list of all JADE containers

谁说胖子不能爱 提交于 2019-12-09 22:35:02
问题 I want to get a list of all containers in the current platform. This question is similar, but the answer is obsolete and the method is by querying to the AMS agent. Is there any simpler way out than to communicate via ACL messages which I think is complex, there should be a way out to get a simple list of containers. Thanks for your help 回答1: You can achieve this by using the AMSSubscriber class and listen to the events when a container is added or removed. See sample code below: public class

Java Eclipse - How do I change the classpath?

六月ゝ 毕业季﹏ 提交于 2019-12-08 19:51:29
I copied an Eclipse project from my PC (eclipse is on drive D) to the laptop (eclipse is on drive c) but when I try to deploy the agents I have in my project I keep getting the following error: The archive **D**:/eclipse/plugins/it.fbk.sra.ejade_0.9.0/lib/libjade4/commons-codec-1.3.jar which is referenced by the classpath does not exist. I changed all the libraries' addresses to the correct ones ( C:/eclipse/plugins/it.fbk.sra.ejade_0.9.0/lib/libjade4/__etc__ ) for all of them by right clicking the project > build path > configure build path... but that doesn't work. I also tried to refresh

How to start JADE Gui within another Gui?

纵然是瞬间 提交于 2019-12-06 06:33:47
How to start JADE Gui within another Gui? Let's say I have a button on my Gui. After hitting that button the JADE Gui will started. Is this possible? If yes, how? Thanks in advance. Regards I'm assuming by JADE Gui you mean the JADE RMA Since the RMA is itself an Agent, showing the RMA gui is simply a matter of creating and starting the RMA agent. If you were doing this through code (ie. not through the command-line or the gui), you would have to have a reference to the container controller for the container that you would like to start it on, and you would just call the createAgent() method

Getting a list of all JADE containers

こ雲淡風輕ζ 提交于 2019-12-04 19:07:44
I want to get a list of all containers in the current platform. This question is similar, but the answer is obsolete and the method is by querying to the AMS agent. Is there any simpler way out than to communicate via ACL messages which I think is complex, there should be a way out to get a simple list of containers. Thanks for your help You can achieve this by using the AMSSubscriber class and listen to the events when a container is added or removed. See sample code below: public class myAgent extends Agent { private ArrayList<ContainerID> availableContainers = new ArrayList<ContainerID>();

What are Groovy/Grails/Hibernate/JBoss/Jade in very simple terms?

一笑奈何 提交于 2019-12-04 07:30:44
I am new to Java. Its only been six months but I do understand Java. While reading about it sometimes, I come across these terms - Groovy, Grails, Hibernate, JBoss, Jade and many more. I know I can read all about them individually. But can somebody give me a treetop view of what is happening here? What is all this? We have Java and these are based on Java? Why so many things? Why do we need them? Groovy is its own programming language, but runs on a Java Virtual Machine. Grails is a web application framework for Groovy (build websites with database support). Hibernate is a tool for mapping

Jade Agent Containers

可紊 提交于 2019-12-03 08:38:00
Can anyone tell me how to find available agent containers through java code? I am using the JADE agent framework and I have figured out how to create new containers but not find existing containers (so that agents can be deployed in them). There are two ways of doing this, depending on whether you want to receive the information via an ongoing service or the current snapshot in a message. To get a snapshot of the IDs of the currently available agent containers, send a Request message to the Agent Management Service (AMS) and wait for its reply. Using the JADE Management Ontology and the

Java Agent Development Framework - Eclipse and Maven integration

混江龙づ霸主 提交于 2019-12-01 10:11:17
问题 I created a maven project with JADE framework as a dependency but this framework requires different commands to execute the jar than ordinary java applications. Build: javac –classpath <JADE-classes> Class_name.java Run: java –classpath <JADE-classes> jade.Boot <agent-local-name>:<fully-qualified-agent-class> Where <fully-qualified-agent-class> is package_name.Class_name or java –cp lib\jade.jar jade.Boot [options] [AgentSpecifierlist] Is it possible to build a runnable jar using maven

Passing ACL messages between jade remote platforms

ぃ、小莉子 提交于 2019-11-30 04:08:15
I need to pass an ACL message between 2 jade platforms. I implemented my code to pass messages between agents in the same container. That works fine. But I could not develop that code to pass messages between remote platforms. Below is what I implemented for the agents in the same container. In the sender agent code the result[] only gets the agents in the same platform. What am I missing? Is there any method to get the list of agents in the remote platform? Sender agent DFAgentDescription temp = new DFAgentDescription(); try { //DFAgentDescription[] result = DFService.search(this,temp);