On Aug 28, 2004, at 11:13 AM, John Timmer wrote:
>>> Is it possible to move all the rangeOfSubsequence variants that are
>> now
>> in BCSequeneDNA to BCSequence? I think the same code can be useful for
>> proteins as well.
> Please do!
Already running into one problem here. These methods call
"isRepresentedByBase" a couple of times. But that is only defined in
BCNucleotideSymbol, not in BCSymbol.
I can think of a few solutions:
1. Change the name to isRepresentedBySymbol, and put an empty method in
BCSymbol. I don;t think that the one in BCNucleotideSymbol gets called
then, because I am treating all symbols as BCSymbol
2. Add an extra line that tests if the symbol is a BCNucleotideSymbol,
and then excecute the line containing isRepresentedBySymbol.
3. ...
I think the second one is the way to go, but it might bring additional
problems.
Any other ideas?
thanks,
- Koen.