[Haizea] SlotTable in at_timestep method of AccountingProbe

Mehdi Sheikhalishahi mehdi.alishahi at gmail.com
Tue Oct 19 10:09:35 CDT 2010


Hello:

I would like to use SlotTable and have current time in at_timestep
method of AccountingProbe, are the following additions the best change
to achieve this?

1) Adding slottable as a member of AccountingDataCollection class
2) Adding slottable in manager initialization method:
self.accounting =
AccountingDataCollection(self.config.get("datafile"), attrs,
slottable)
3) For current time, passing current time to at_timestep in run method
of Clock class:
self.manager.accounting.at_timestep(self.manager.scheduler, self.time)

Thanks and Regards,
Mehdi


More information about the Haizea mailing list