How to pass parameterized class handle as argument

In reply to jishan_bukhari:

I highly recommend removing REPEAT_COUNT as a parameter and making it a member of your transaction class. A parameter should only be used for an item that affects the physical implementation of the interface associated with the agent. Examples would be ADDRESS_WIDTH or DATA_WIDTH. Items that affect the behavior should be a member of the class, since you want the ability to change them on a per-transaction basis.