Simulation configuration

To set the general behaviour of a simulation, a config file mechanism is used. The singleton class PRIMASimulationConfig is responsible for reading the config file and providing the other classes with the specified config settings.

How to define a new command

  1. Add the variable(s) containing the settings information to class PRIMASimulationConfig, implementing the corresponding “get” method.
  2. Initialise these variables in the constructor using their default values.
  3. Add an if block in the while loop inside method PRIMASimulationConfig::ReadConfFile, e.g.
    if(key == "macro-file"){
    	macroFileName = value;
    	macroSpecified = 1;
    	cout<<"macro file name set to: "<<macroFileName<<endl;
          }
  4. Document the new command in this wiki page.


List of commands