I'm stuck in a problem and would appreciate any input/suggestion:
I've an agent for my test bench which has following components: a base class A- it defines two static variables- X and Y two new classes B and C, BOTH extended from A. They both use the static variable declared in base class. Another class D which utilizes B and C to do something.
Lets say class D is my top agent and I call it bfm_agent. This bfm_agent can be instantiated multiple times in my test bench. Now the problem is, X and Y will be shared to all bfm_agent. I don't want that. I just want X and Y to be static so that class B and C inside each bfm_agent can use these two variables to do some work.
How can I achieve this? I just want the scope of these two static variable to be valid only within each instance of bfm_agent.