Community

hi, I have several environments to group a number (thousands) of people and apply them an initial network type and layout. How do I migrate agents from environment to environment? is this possible? in the documentation I read setEnvironment method "Must be called during the startup of the agent and provide the environment where the agent belongs to as a parameter." If it is possible do I have to recalculate the layout and network? can't I do something like "insert this agent in this network without recalculating all connections again"? thanks
Hello, Rui! It is not possible to migrate agents from environment to environment. The environment is assigned to an agent during agent's startup only. In your case, I can suggest two solutions: First one is to use the only environment and additional variables to organize agents into logical groups. Algorithms of establishing connections between agents can also depend on those variables. If, for some reason, you need to have several environments, I can advise you the following. Whenever you need to migrate an agent between environments, you (1) remove the agen from first environment, (2) create a new agent with same parameter values and (2) assign it to the second environment. You will probably need to perform some recalculations, depending on environment type and your connection establishing logic. I hope my advice helped you.