Home › Forums › PeerfactSim Forum › parameter in config file › Reply To: parameter in config file
May 21, 2015 at 5:28 pm
#775
Guest
Hey Tobias,
yes, setter-methods are the way to go. For each parameter you add in the config file, the engine searches for a setter-method within the class specified. In your example, you would have to add a method setParam1(<typeOfParameter>). param1 and param2 would be declared private in your class but are modified via the setter-methods anyway.
This works for the host builder and should also work for analyzers. Quite simple. 🙂
regards,
Philipp