Getting simulation result in after block simulation

Hello!

In order to store and compare data between simulation, I want to retrieve statistics information after the simulation run. (first orange block in report)

I want to do that (if possible) in the after{…} simulation hook.

If I understand the code I have to :

val logFileReader = new LogFileReader(blabla)
val total = logFileReader.requestGeneralStats(requestName, group, None)

But I have many questions :

  • How can I retrive the runId in the after hook in order to give him to LogFileReader ?
  • This process parse the simulation.log file, in the after block is he fully written?
  • Is there any better method to achieve my needs?

Many thanks!