开发者

JADE (Java) - Changing Agent Container

开发者 https://www.devze.com 2022-12-31 20:16 出处:网络
Is there a way to reassign agents to a different co开发者_C百科ntainer or will I have to create a new container and then create all new instances of the agents within the new container?

Is there a way to reassign agents to a different co开发者_C百科ntainer or will I have to create a new container and then create all new instances of the agents within the new container?

I have done a lot of searching and can't seem to find anything on container reassignment.

Thanks in advance for any info!


Hey I think the code you need is

myAgent.doMove( dest );

with dest being the location name of the new container as registered with the main container.

0

精彩评论

暂无评论...
验证码 换一张
取 消