On 05/04/2014 08:19 PM, Tobias Doerffel wrote: > Hi, > > Thanks for your work and your input! IMHO we should take a more > generic approach on the model level like adding support for > validator/fitter classes directly into the AutomatableModels. The > current fitting (i.e. adjusting to step size) could be moved into a > StepSizeFitter class which would the automatically chosen/instantiated > default fitter. At the same time we could introduce another fitter > class which fits values in the 2^n-series. This fitter would be set > for the denominator model. > > Alternatively add a specialization of IntModel which overrides getter > and setter functions in order to gain the desired functionality. > > Opinions? >
I thought about the second option... problem is that setValue() in AutomatableModel is non-virtual, so we'd have to make that virtual in order to be able to override it... right? Or are there some other, already overridable setter functions that I'm missing here? The StepSizeFitter seems like a good idea and a much more flexible solution, but I'm afraid I won't have time to work on it right now - I'll be busy with school entrance exams all of next week... but if anyone wants to in the meanwhile take my Denominator branch and continue the work to make it into a more complete solution, they'd be welcome to do so. ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ LMMS-devel mailing list LMMS-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lmms-devel