Why does the CallSequence also have a bag of matchedCalls? It seems a
needless complication to make a sequence be both a sequence and a bag at the
same time, and to break the "class has only one responsibility" and "reuse
through composition" guidelines. Putting a sequence into a bag would have
the same effect and would allow us to remove the matchedCalls from the
sequence.
Cheers,
Nat.
_______________________
Dr. Nathaniel Pryce
B13media Ltd.
http://www.b13media.com
+44 (0)7712 526 661
|