| 151 | | The initiator uses the methods of '''pdes_local_time''' classe for managing and interacting his local time and the interval between two consecutive null messages. |
| 152 | | |
| 153 | | The initiator local time is managed contained in a member variable named '''m_local_time''', of type '''sc_core::sc_time'''. The |
| 154 | | local time can be accessed with the following accessors: '''addLocalTime()''', '''setLocalTime()''' |
| 155 | | and '''getLocalTime()'''. |
| | 151 | The initiator uses the '''pdes_local_time''' classe for managing and interacting with his local time and with the interval between two consecutive null messages. |
| | 152 | The '''pdes_local_time''' has the following access functions: |
| 159 | | void addLocalTime(sc_core::sc_time t); // add an increment to the local time |
| 160 | | void setLocalTime(sc_core::sc_time& t); // set the local time |
| 161 | | sc_core::sc_time getLocalTime(void); // get the local time |
| | 158 | |
| | 159 | pdes_local_time( sc_core::sc_time time_quantum ); //constructor |
| | 160 | void add(const sc_core::sc_time& t); // add an increment to the local time |
| | 161 | void set(sc_core::sc_time t); // set the local time |
| | 162 | sc_core::sc_time get(); // get the local time |
| | 163 | bool need_sync(); // Checks if a synchronization is required |