bkrueger / mocasinns

MOnte-CArlo-SImulations - Neat'N'Simple
Other
4 stars 1 forks source link

Create functions for the algorithms that can be used in the signal handlers. #63

Closed bkrueger closed 10 years ago

bkrueger commented 10 years ago

This can be e.g. a simulation dump (this can be used for all simulations) or printing out simulation information (this is specific for the algorithms).

There be the functionality to log the start of the simulation in the simulation base class in order to access the actual simulation time.

bkrueger commented 10 years ago

Wont fix:

A common class that owns this functions must know all algorithms, this solution cannot be expanded by the user. So the only option is to use static functions in all algorithms.

It is very difficult to write a useful and platform independent function that fits the wishes of the user (does a program with GUI write to std::out?). So the best solution in my opinion is to provide nothing at all and let the user write the functions he want to use in the signals.