QUOTE
If I was to do this the way I usually do I would create a data structure that would hold the indexes of a Factor and Value (assuming Factors were stored in an array in Experiment, and Values were stored in an array in Factor)
Sounds a bit convoluted and too coupled. Why not just store a structure of Factors (e.g. an array of Factors). Each factor type is responsible for how it stores values.
QUOTE
Is this correct from an object-oriented design point of view?
Correctness is hard to define. But people can take potshots at an idea and you can see how many problems are flagged. In other words, how much does an idea smell? Your mechanism sounds a bit fishy already to me.
EDIT: Also to note, there isn't much to note on OO. It's more of just general design and approach. Storing indices and the like sounds a bit convoluted.
This post has been edited by Oler1s: 28 Jun, 2009 - 03:25 PM