agents-jade

Java Eclipse - How do I change the classpath?

我只是一个虾纸丫 提交于 2020-01-14 03:17:06
问题 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

Creata Jade Agent with another agent

谁都会走 提交于 2020-01-06 15:52:35
问题 please , I need help. How to create a JADE agent in the body of another agent ? Profile p = new ProfileImpl(); p.setParameter(Profile.MAIN_HOST, "localhost"); p.setParameter(Profile.MAIN_PORT, "1099"); AgentContainer ac = rt.createMainContainer(p); AgentController agent ac.createNewAgent ("agentBD", "agents.AgentBD"); agent.start(); 回答1: try something like this ("agent" is you current agent from whitch you create other agent): private static Codec codec = new SLCodec(); private static

JADE Leap Android App unable to receive topic messages

大兔子大兔子 提交于 2019-12-25 01:37:35
问题 The problem involves using two android handsets that send messages between them using topic messages. They can receive messages from each other fine if they both use send and have each other's AID. But when a send of a Topic Message function is used, it fails to work. However, I have a desktop application that can receive the messages from the android platform without a problem. But the android platform can't receive messages from them. Is there any special step I need to do with Android to

JADE action() not working

让人想犯罪 __ 提交于 2019-12-24 08:29:07
问题 I think I am missing something in my project. I need agents to perform specific task that I assign. I am using JADE. Inside the action() I wrote a for loop to display numbers 1 to 10. While running no error is showing and also the loop is not getting executed. When I run: java -cp jade.jar jade.Boot -gui agent:TestAgent I get a classNotFound Exception and also shows agent can't be created. When I run: java -cp jade.jar jade.Boot -gui -agent agent:TestAgent I get info as agent ready, but the

How to interface JADE with any other Front End?

我与影子孤独终老i 提交于 2019-12-22 18:17:32
问题 I am working on a project which uses JADE over a network. Visit http://jade.tilab.com for more details. However, I want the JADE to interface with some normal GUI, say HTML. My aime is that I want a Computer which doesn't have JADE installed, to be accessing the JADE network, say via RPC or any other non-JADE interface. Hope I have framed the Q correctly and thanks for the answers! 回答1: We have a GWT front end to our JADE network. The front end uses the JadeGateway class as the interface to

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

时光怂恿深爱的人放手 提交于 2019-12-21 17:31: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? 回答1: Groovy is its own programming language, but runs on a Java Virtual Machine. Grails is a web

Jade Agent Containers

泪湿孤枕 提交于 2019-12-21 02:38:22
问题 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). 回答1: 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

java.lang.UnsatisfiedLinkError - Native method issue

﹥>﹥吖頭↗ 提交于 2019-12-13 00:07:16
问题 I am experiencing a problem in Java (Eclipse) regarding the usage of dlls. Until now, I am experiencing the following problem: Uncaught Exception for agent SomeAgent java.lang.UnsatisfiedLinkError: SomePackage.SomeClass.SomeNativeMethod(II)Z [...] at jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:344) at jade.core.Agent$ActiveLifeCycle.execute(Agent.java:1532) at jade.core.Agent.run(Agent.java:1471) at java.lang.Thread.run(Thread.java:745) I don't know if this will help to figure

how capture the main method trace from jade using AspectJ?

空扰寡人 提交于 2019-12-12 04:54:52
问题 i am using Jade in eclipse IDE, i want to capture the main method from jade, because the main method is the starting point for every application, i want to test if it is also right with the running of the JADE middleware (ie: i want to check if the main method is executed when i start the jade middleware or not) i already did this : public aspect MainAspect { pointcut main() : execution(public static void main(..)); before() : main(){ System.out.println("main is executed"); } } but it is not

Jade Java Agent Communication

。_饼干妹妹 提交于 2019-12-11 06:46:10
问题 I am working on jade for multiple agent platform in my project. I have a main container and agent container which contains agents. I want to send data from agent to agent container or main container .. Since my agent is a client and my main container will be a server . In the jade architecture i understood that agent container will contain agents. Is that possible? I was wondering there are apis to send data among agents. Thanks in advance 回答1: I am not sure what it is that you are trying to