I'm figuring out how a 'formulas' extension could best be built.
At the moment, I'm thinking of something like:
A 'Formula' abstract class that extends 'DataObjectSet'. This class can have any number of methods that represent particular calculations which might be done recusively on each object in the set, or summarizing particular properties in the set.
It would have some standard methods such as:
which would return a value based on applying the method 'sum' to the an array of all property 'qty' of child objects
whilch return an array of values based on applying the method 'area' to each property 'diameter'.
Just looking for thoughts and ideas about how to improve it etc. if I build it I'd like it to be as versatile as possible, and if it already exists that would save me lots of time :D