Dear Sebastian.
It's nice to exchange with you again.
Indeed, the new internal implementation of Janus implies changes in the API.
You have found the good approach. And you discovered that creating an uuid prior to the spawn call is the new way.
In order to spawn in the default context/space with the ID, the most simple way is to call spawnInContextWithID with the default context instance:
uses DefaultContextInteractions
uses Lifecyle
def fct {
var id = UUID::randomUUID
typeof(TestAgt_Slave).spawnInContextWithID(id, defaultContext)
// use id as you want
}
Details on the spawning function are there :
I think it may be interesting to add a FAQ entry on big changes in the API that are marked as deprecated but with too few explanation in the API documentation. I will post an issue shortly.
Regards.
Stephane
Prof. Dr. Stéphane GALLANDFull Professor of Computer Science and Multiagent Systems
Co-Founder and Deputy Director of CIAD
Laboratoire Connaissance et Intelligence Artificielle Distribuées
CIAD UMR 7533
Université de Technologie de Belfort-Montbéliard
13 rue Ernest Thierry-Mieg
90010 Belfort cedex, FRANCE
Phone: +33 384 583 418 (work office)
Mobile: +33 662 274 442 (private)
-------- Message d'origine --------
Date : 07/02/2021 21:54 (GMT+01:00)
Objet : [SARL] Spawing in new SARL