posted 13 years ago
I wasnt able to completely grasp your implementation, but have managed to let you know how to go about with your requirement. From what I see- I was thinking if the code structure would be as follows:
The above code is a very basic structure I could think of. You can improvise it. I am thinking if there's some flaw with the design in terms of- loose coupling and high cohesion.