Please consider this structure for the below question -
top_env -sub_env0 -foo_agent -sub_env1 -foo_agent
I have a top_env in which there are two instances of the sub_env.
In each sub_env, there is a foo_agent. I set a config object for the foo_agent as -
set_config_object(“foo_agent”, “foo_agent_config_name”, foo_agent_config_object)
There will be two config objects created in the global table for “foo_agent_config_name”, one by each sub_env
In this case I have two questions -
- Will the foo_agent under sub_env0 be only able to access the agent config by its parent env(sub_env0) and not by the other sub_env(sub_env1)?
- In general, when you provide the inst_name in the set_config_object(foo_agent in this case), is the path to the entity it is being set in automatically prepended to the inst_name? basically, even though I wrote “foo_agent”, is the object stored with inst_name “top_env.sub_env0.foo_agent”?