# Unable to access class properties in a UVM factory overriden class

**URL:** <https://verificationacademy.com/forums/t/unable-to-access-class-properties-in-a-uvm-factory-overriden-class/34344>\
**Category:** UVM\
**Tags:** uvm\_set\_inst\_override, UVM, UVM-Factory-Registration, Bad-handle, connect-sequencer\
**Created:** [April 15, 2018, 10:41pm UTC](https://verificationacademy.com/forums/t/unable-to-access-class-properties-in-a-uvm-factory-overriden-class/34344 "2018-04-15T22:41:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![peterjin](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/p/f05b48/32.png) [@peterjin](https://verificationacademy.com/forums/u/peterjin)\
**Post date:** [April 16, 2018, 3:35am UTC](https://verificationacademy.com/forums/t/unable-to-access-class-properties-in-a-uvm-factory-overriden-class/34344/3 "2018-04-16T03:35:24Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/unable-to-access-class-properties-in-a-uvm-factory-overriden-class/34344/2):_

Hi Dave,

Thanks for your reply!

Actually, that agent is our company’s legacy code. And they used to launch the sequence by setting sequencer’s default\_sequence in the following fashion: (part of my job is to convert the sequence launching method from “default\_sequence associating” to using virtual sequence)

```auto
for (int i=0; i!=NUM_ETH_PORT; i++) begin 
      uvm_config_db #(uvm_object_wrapper)::set(this, $sformatf("ne_buf_nspi_agt_ne_wrch[%0d].m_seqr.main_phase", i), "default_sequence", nebuf_nspi_sequence::get_type());
end

```

I wonder why in the above code (in enviroment component), .m\_seqr is correctly referred to the m\_seqr inside nspi\_master\_agent\_param class?

---

_[View the full topic](https://verificationacademy.com/forums/t/unable-to-access-class-properties-in-a-uvm-factory-overriden-class/34344)._
