Ticket #18 (closed enhancement: fixed)
improve Node task processing
| Reported by: | jordi | Owned by: | nobody |
|---|---|---|---|
| Priority: | major | Milestone: | 3.1 |
| Component: | planetsim | Version: | PlanetSim 3 |
| Keywords: | Node task | Cc: |
Description (last modified by jordi) (diff)
Study and design a new approach to process the Node tasks (planet.generic.commonapi.NodeImpl.processTasks()).
Report from Max:
By the way I think the timer implemtation needs some revison, because it slows down the simulation enormously, I did a simple process(int currentStep ){ ...
if((currentStep-nodeJoinedInStep)%timerTaskPeriod){
timerTask.execute();
}
... } and it runs about three times faster
Report of Jordi: If this is true, I completely agree with you. But your solution seems a little ad-hoc for a specific task. I suppose that this would appear in the planet.generic.commonapi.NodeImpl.process(int), replacing the line "processTasks()". In this way, it is necessary to maintain generic approach, enabling different number of tasks a Node could have. Anyway, I agree with you to improve the current approach of processing all the Node tasks.
