Published on: Mar 26, 2012
I need to update some files just at the end of my simulation. The Outputters have given me a lot of problems and I need more functionality to gather and compute data. The problem is that, at that point, I only know that my simulation finishes when the stop button is pushed. Unfortunately, the official information given by Repast Simphony about the Scheduler doesn’t say too much.
I checked in the API the classes related to the Scheduler and I found that there is a method in the class Schedule called executeEndActions() which executes all the actions scheduled to execute at simulation end. However how can I indicate that an action should be executed at the end?