1 | while (simulation still in progress) |
2 | invoke Next Event Request (Tlocal = time stamp of next local event) |
3 | RTI delivers next TSO event w/ time stamp Š Tlocal if any exist (+ others w/ same time stamp) |
4 | RTI advances federate's logical time, invokes Time Advance Grant |
5 | if (TSO message(s) delivered in above Next Event Request service call) |
6 | process the remote event(s) delivered to the federate |
7 | else process next local event |
8 | Goal: merge TSO messages (events from other federates) with local events so all events are processed in time stamp order |
9 | RTI |
10 | federate |
11 | TSO |
12 | messages |
13 | local |
14 | events |
15 | logical |
16 | time |
17 | current |
18 | time |
19 | next |
20 | local |
21 | event |
22 | next |
23 | remote |
24 | event |
25 | Tlocal |