Hey, i have a few questions about jadex - performance. More precisely about service search. How expensive is a local service search? What happens there? Is there a network based search? or is it just simulated (iteration over a container maybe)? How are service-calls technically handled? Are they stored in a queue? Multithreading? 2.1 what if the calls have different priority? e.g. send position updates vs log data using the same provided service. Let's say each platform-internal-agent communicates...
Hey, i have a few questions about jadex - performance. More precisely about service search. How expensive is a local service search? What happens there? Is there a network based search? or is it just simulated (iteration over a container maybe)? How are service-calls technically handled? Are they stored in a queue? Multithreading? 2.1 what if the calls have different priority? e.g. send position updates vs log data using the same provided service. Question 1 to 2.2 are important for the following...
Hey, i have a few questions about jadex - performance. More precisely about service search. How expensive is a local service search? What happens there? Is there a network based search? or is it just simulated (iteration over a container maybe)? 2.1 How are service-calls technically handled? Are they stored in a queue? Multithreading? 2.2 what if the calls have different priority? e.g. send position updates vs log data using the same provided service. Question 1 to 2.2 are important for the following...
Hey, i just need a little code snippet The code is below my description. Please have a look at A_Agent.java method:body(). Description: On agent-creation: first register yourself with the other agents. So, search for IRegistryService and call register and pass your ComponentIdentifier. The other agents store your ComponentIdentifier. At the same time save the cid of the found services. So you know each existing component who provides the IRegistryService. (now the other agents know that your existing...
Thank you very much KaiJ. It works :) Jobi
Hey, i just need a little code snippet The code is below my description. Please have a look at A_Agent.java method:body(). Description: On agent-creation: first register yourself with the other agents. So, search for IRegistryService and call register and pass your ComponentIdentifier. The other agents store your ComponentIdentifier. At the same time save the cid of the found services. So you know each existing component who provides the IRegistryService. (now the other agents know that your existing...
Hey, i just need a little code snippet The code is below my description. Please have a look at A_Agent.java method:body(). Description: On agent-creation: first register yourself with the other agents. So, search for IRegistryService and call register and pass your ComponentIdentifier. The other agents store your ComponentIdentifier. At the same time save the cid of the found services. So you know each existing component who provides the IRegistryService. (now the other agents now that your existing...
Hey, i extended my solution. Now you can perform a subcomponent service-search (scope = SCOPE_COMPONENT). The subcomponent only provides the service to its parent (scope = SCOPE_PARENT) Maybe it's useful for someone :) jobi
Hey, i solved my problem. I uploaded the solution. The parentcomponent needs a configuration. In the configuration you can select the component by its type. The type of the subcomponent must be defined in the ComponentTypes annotation. Jadex Control Center: Applications -> Parent -> Child you can see that it worked :) jobi
Hey, i solved my problem. I uploaded the solution. The parentcomponent needs a configuration. In the configuration you can select the component by its type. The type of the subcomponent must be defined in the ComponentTypes annotation. jobi
Hey, basically i just want to know how to create subcomponents. @Agent @ComponentTypes(@ComponentType(name="ChildAgent", filename=".../ChildAgent.class")) public class ParentAgent { // how can i create the subcomponent micro agent ChildAgent ?? } @Agent public class ChildAgent{ } jadex.micro.annotation Annotation Type ComponentTypes https://download.actoron.com/docs/releases/latest/javadoc/ : Define component types that can be instantiated as subcomponents of the declaring component. This components...
Hey, basically i just want to know how to create subcomponents. @Agent @ComponentTypes(@ComponentType(name="ChildAgent", filename=".../ChildAgent.class")) public class ParentAgent { // how can i create the subcomponent micro agent ChildAgent ?? } @Agent public class ChildAgent{ } Annotation Type ComponentTypes https://download.actoron.com/docs/releases/latest/javadoc/ : Define component types that can be instantiated as subcomponents of the declaring component. This components can be instantiated...
Hey, how can i compose components by code? My case: I have two independent agents. But one agent should be a subcomponent of the other agent. I know how to start agents but i dont know how to compose them correctly. I uploaded an example. First, "ParentAgent" is started. Then "ParentAgent" starts "ChildAgent" and tries to access the ITestService, but it throws an Exception: ServiceNotFound. (Hint: scope = COMPONENT) So, how can i compose them correctly? Best regards jobi
Hey, how can i compose components by code? My case: I have two independent agents. But one agent should be a subcomponent of the other agent. I know how to start agents but i dont know how to compose them correctly. A code snippet would be nice. Best regards jobi
Hey, how can i composite components by code? My case: I have two independent agents. But one agent should be a subcomponent of the other agent. I know how to start agents but i dont know how to compose them correctly. A code snippet would be nice. Best regards jobi
Hey community, maybe the output of my example-code is not clear enough. So i modified the output a bit. Now it should be clear what i mean. Execute Starter.java. Wait until platform started. Then start it again(second platform). Then look at the output of the second process. To clarify it more: Platform1 FIRSTAgent(provides service with scope=global, and requires service with scope=global) SECONDAgent (provides service with scope=platform) Platform2 FIRSTAgent(provides service with scope=global,...
Hey, thank you for your responses. I am sorry for my late answer. I attached source code. Just start it one time. Wait until platform started. Then start second time. Then look on the command output. SECONDAgent is listed while performing a global search i8n FIRSTAgent although the provided service scope of SECONDAgent is set to SCOPE_PLATFORM. jobi
Hey community, maybe the output of my example-code is not clear enough. So i modified the output a bit. Now it should be clear what i mean. Execute Starter.java. Wait until platform started. Then start it again(second platform). Then look at the output of the second process. To clarify it more: Platform one FIRSTAgent(provides service with scope=global, and requires service with scope=global) SECONDAgent (provides service with scope=platform) Platform two FIRSTAgent(provides service with scope=global,...
Hey, thank you for your responses. I am sorry for my late answer. I attached source code. Just start it one time. Wait until platform started. Then start second time. Then look on the command output. SECONDAgent is listed while performing a global search i8n FIRSTAgent although the provided service scope of SECONDAgent is set to SCOPE_PLATFORM. Thank you and sorry again jobi
Hey, thank you for your responses. I am sorry for my late answer. I attached source code. Just start it one time. Wait until platform started. Then start second time. Then look on the command output. SECONDAgent is listed while performing a global search although the provided service scope of SECONDAgent is set to SCOPE_PLATFORM. Thank you and sorry again jobi
Further question: How can i avoid self-finding while service-search?
Hey, thank you for your responses. I am sorry for my late answer. I attached source code. Just start it one time. Wait until platform started. Then start second time. Then look on the command output. SECONDAgent is listed while performing a global search although the provided service scope of SECONDAgent is set to SCOPE_PLATFORM. Thank you and sorry again jobi
Hey, current state: 1. platform has one agent. Agent searches globally for service A. 2. platform has two agents. The first one provides service A globally(scope), the second one provides service A only on platform(scope) Problem: Search of service A by agent in platform 1 finds both provided services of 2. platform. Why? Desired Behaviour: agents of platform 2 should use service A for inner-platform-communication(both can see the others service A). but only one specific agent of platform 2 should...