I have a question regarding set_type_override_by_type call.

An agent1 in its new method has used set_type_override_by_type to override class A with class B. I have another agent(agent2) which has to use the original instantiation of Class A instead of class B. Both agents are in the same environment.

How can I turn off the set_type_override_by_type functionality(replacing object creation of A with B) for agent2.

In reply to Hara:

In your case you do not want to override by type you want to override by instance using:
function void set_inst_override( string relative_inst_path,
string original_type_name,
string override_type_name )