How to do a simulation of mobile station using c++

Hello all
I want to make a block using c++ which work just during a detrnined
and wait about eight others ( this is a simulation of mobile station) so
someone can tell me what are the parameters or the options that I must
and from with class in my block must inherite I will be thinkfull