Reputation: 554
I am very new to Jade Agent
concept. I have been searching around the internet about this question but there is very less material available on this topic. So I decided to ask a question here.
In java
when we run any class by entering java classname
in terminal, JVM
by default calls that class' main()
method. Same way the setup()
method is called when we run the Agent class
(Pardon me if I'm wrong). But the thing I am unable to understand is how does the setup()
method is called and what calls it or how does the execution of an Agent
is started.
Any insight regarding this question is highly appreciated.
Thanks.
Upvotes: 4
Views: 704
Reputation: 66
As a part of my initial research in the field, I have discovered the following answer from some reliable sources.
The setup method is used to perform agent initializations.
The actual job the agent has to perform is typically carried out by behaviours
.
The typical functions that an agent performs in it's setup()
method is:
GUI
Upvotes: 5
Reputation: 399
I am not familiar with jade agent, but the main()
method of the main class, whatever it is called, is the starting point for the jvm. The main class must be managed by jade agent. After it is done doing what it needs to do it will call setup()
Upvotes: 0