[Biococoa-dev] Subclass organization

John Timmer jtimmer at bellatlantic.net
Thu Feb 24 11:28:04 EST 2005

I see that Koen (probably long ago) put the ambiguous amino acids in place.
That means that all subclasses of BCSymbol now have ambiguity.  That, in
turn, means that the method "isSingleBase" can be moved to the BCSymbol
class, and renamed to reflect its more broad applicability.  I could either
do "isSimpleSymbol" or "isCompoundSymbol" accordingly.  Any preferences or
alternate suggestions?

Incidentally, this will allow me to get rid of the last warning in the
BCSequenceNucleotide class I'm putting together ;).  The flipside is that
I'm sure it'll break code somewhere else...

A technical question:  I'd like a BCSequenceNucleotide method, when called,
to return an instance of the appropriate subclass.  Is the following syntax
[[self class] sequenceWithSymbolArray: theArray];

Since the method's actually going to be called on a subclass, I figure this
should generate the appropriate one. Is that accurate?



This mind intentionally left blank

More information about the Biococoa-dev mailing list