Changes between Version 16 and Version 17 of Writing Rules/Tlmt


Ignore:
Timestamp:
Dec 27, 2007, 10:47:50 AM (16 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v16 v17  
    1818= B) Single VCI initiator and single VCI target =
    1919
    20 Figure 1 presents a minimal system containing one single initiator, and one single target. In the proposed example, the '''my_initiator''' module behavior is modeled by the SC_THREAD  '''execLoop()''', that contains an infinite loop.  The member variable '''m_time''' ('''H''' on the figure) represents the PDES process local time. The call-back function '''rspReceived()''' is executed when a VCI response packet is received by the initiator module.
     20Figure 1 presents a minimal system containing one single initiator, and one single target. In the proposed example, the '''my_initiator''' module behavior is modeled by the SC_THREAD  '''execLoop()''', that contains an infinite loop.  The call-back function '''rspReceived()''' is executed when a VCI response packet is received by the initiator module.
    2121
    2222[[Image(tlmt_figure_1.png, nolink)]]
     
    2929= C) VCI initiator Modeling =
    3030
    31 In the proposed example, the initiator module is modeled by the '''my_initiator''' class. This class inherit the '''!BaseModule''' class, that is the basis for all TLM-T modules. As there is only one thread in this module, there is only one member variable '''time''' of type '''tlmt_time'''. This object can be accessed through the '''getTime()''', '''addTime()''' and '''setTime()''' methods.
     31In the proposed example, the initiator module is modeled by the '''my_initiator''' class. This class inherit the '''!BaseModule''' class, that is the basis for all TLM-T modules. As there is only one thread in this module, there is only one member variable '''m_time''' of type '''tlmt_time''', corresponding to the PDES process local time ('''H''' on the figure). This '''m_time''' object can be accessed through the '''getTime()''', '''addTime()''' and '''setTime()''' methods.
    3232
    3333The '''execLoop()''' method, describing the initiator activity must be declared as a member function of the '''my_initiator''' class.