I will ask some question about agent's creation. Can you give me any response? Thank you!!!!
1)Can I use response time for agent smaller than 400-500 msec in my agent’s application? In fact, I think that, for example, I can get best “ping-pong” time in a sender-receiver application using small response time for agent ; the time between send message by a sender, receive message by receiver and finally “resend” message to a sender is reduced if I use small response time for agent during agent’s creation.
2) When I create a new agent, is response time for agent the only parameter that I can specify for agent? Can I specify other parameters (for examples string arrays, integer arrays double arrays) that I can retrieve later in my application?
3) It is possible to specify in the .af file that an agent have to create another agent during its execution? If I can’t specify this in .af file, how can I modify code generated from “afme compilator” in order to create another agent during agent’s execution?
I hope that these questions are clear….If aren’t clear, please tell me, thank you
Best regards
lucignolo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. Yes, you can experiment with the response time to see what works best. Although, the faster the response time, the more resource will be used up.
2. Yes, you can add parameters as beliefs when you are creating an agent or you can use initial commitments to set values witin an object using an actuator. Alternatively, you can pass the values as parameters when you are creating a service.
3. No you cannot specify that in the .af file. You will need to modify the template that is used to generate the agent platform and pass a reference to the platform to a service from which the create agent method will be invoked.
Best regards,
C
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I will ask some question about agent's creation. Can you give me any response? Thank you!!!!
1)Can I use response time for agent smaller than 400-500 msec in my agent’s application? In fact, I think that, for example, I can get best “ping-pong” time in a sender-receiver application using small response time for agent ; the time between send message by a sender, receive message by receiver and finally “resend” message to a sender is reduced if I use small response time for agent during agent’s creation.
2) When I create a new agent, is response time for agent the only parameter that I can specify for agent? Can I specify other parameters (for examples string arrays, integer arrays double arrays) that I can retrieve later in my application?
3) It is possible to specify in the .af file that an agent have to create another agent during its execution? If I can’t specify this in .af file, how can I modify code generated from “afme compilator” in order to create another agent during agent’s execution?
I hope that these questions are clear….If aren’t clear, please tell me, thank you
Best regards
lucignolo
hi lucignolo,
1. Yes, you can experiment with the response time to see what works best. Although, the faster the response time, the more resource will be used up.
2. Yes, you can add parameters as beliefs when you are creating an agent or you can use initial commitments to set values witin an object using an actuator. Alternatively, you can pass the values as parameters when you are creating a service.
3. No you cannot specify that in the .af file. You will need to modify the template that is used to generate the agent platform and pass a reference to the platform to a service from which the create agent method will be invoked.
Best regards,
C