Changes between Version 6 and Version 7 of PTVS_Ideas
- Timestamp:
- Dec 27, 2009, 9:35:00 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PTVS_Ideas
v6 v7 15 15 For the other 2 types of events we use separate processing threads. These are the most numerous events and the time spent to process these events is the biggest.[[BR]] 16 16 17 The engine first starts with an empty event queue. At the moment zero a GPS event is added to the queue: eventQueue.add(new GPSEvent(0)); At the moment one a Cleanup event: eventQueue.add(new CleanupEvent(1)); Then some standard Send events are scheduled. This is done in the initialization area so when we start the simulator there will be events to process and while processing these events new ones are generated and scheduled. [[BR]] 17 The engine first starts with an empty event queue. At the moment zero a GPS event is added to the queue: eventQueue.add(new GPSEvent(0)); At the moment one a Cleanup event: eventQueue.add(new CleanupEvent(1)); Then some standard Send events are scheduled. [[BR]] 18 This is done in the initialization area so when we start the simulator there will be events to process and while processing these events new ones are generated and scheduled. [[BR]] 18 19 19 20 In the method playEvent the events corresponding to the current time are extracted from the queue (e = eventQueue.remove(0) ;) and then processed. The type of event is determined and specific processing is done.[[BR]]