Jon Swanson wrote:Thanks Maxim. It will take me a little while to understand reflections, but I am working on it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Jon Swanson wrote:I thought of a slightly different way to describe what I am puzzling over. Let's say I want to be able describe zoos and start out thinking about the animals that will be in the zoo.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Jon Swanson wrote:I was thinking about what you were saying about interfaces. I could, in theory have an interface StatsTests that defines run and report. I could have the constructor take an argument defined by a StatsTestsParameters interface. For each different run algorithm, I could implement the StatsTest interface. If the parameters were common to all the tests, I could implement the StatsTestsParameters interface as a enum TestType.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Jon Swanson wrote:I'm trying to sort out the best way to handle a situation where I will want to run some subset of operations, where the subset is likely to come from a file. The operations are related, so I was thinking I would define them from a common interface. Then I need to match up the strings in the file to the right implementation of the interface.
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|