I am developing a project that takes several command line arguments and uses them as parameters for subsequent simulations. (I want to run a large number of experiments in a batch).
What is the best way to set global variables at runtime? Global in terms: variables can vary over the duration of a run, but must be accessible through a large number of classes.
I am currently reading them in a Config object, which I am including in other classes. If anyone has any better ideas (xml?), I'm all ears.
Thanks!
source share