Changes between Version 6 and Version 7 of PTVS_Ideas


Ignore:
Timestamp:
Dec 27, 2009, 9:35:00 AM (14 years ago)
Author:
mihaela.teler
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PTVS_Ideas

    v6 v7  
    1515For 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]]
    1616 
    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]]
     17The 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]]
     18This 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]]
    1819
    1920In 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]]