The best thing to do is write your own class which extends SimpleFeature, or 
ignores SimpleFeature and just implements the Feature interface with all-new 
methods written from scratch, plus your new ones.

If the extra methods are pretty generic, you could create a new interface which 
extends Feature and add them there, then make your new class implement the new 
interface.

Why not list out the methods/fields you'd like to add - then we can all offer 
suggestions as to the most appropriate places to make the changes.

The BioJava in Anger book has a few links to how the API works - it's linked 
from biojava.org under the documentation section.

cheer,
Richard


-----Original Message-----
From:   [EMAIL PROTECTED] on behalf of Michael C Gilson
Sent:   Wed 6/29/2005 2:51 AM
To:     biojava-l@biojava.org
Cc:     
Subject:        [Biojava-l] Implementing a Feature

Hello, all.  I am new to BioJava but finding it extremely useful.   
I'd like to add a few extra fields or methods to the SimpleFeature  
class and I'm wondering the best way to go about it?  I have read  
through BioJava in Anger and also am wondering if there are any other  
documents out there that describe how to work with the API (beyond  
just the API javadocs).

Thanks in advance,
Michael C Gilson
Genome Evolution Lab
University of Wisconsin-Madison
_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l




_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to