[Dynamite] Is this working now then?
Ian Holmes
ihh@fruitfly.org
Sun, 5 Mar 2000 13:02:54 -0800 (PST)
Just spotted a gotcha in this...
> module Seq {
>
> struct LightSeq_momento {
> string name;
> string seq;
> };
>
> interface LightSeq {
> attribute string name;
> attribute string seq;
These two should be methods & not attributes I think.
Also I reckon we need a length() method so we don't have to retrieve the
whole sequence (which might, as Ewan pointed out, be a behemoth spanning
several contigs) to find this.
Revised:
> module Seq {
>
> struct LightSeqMomento {
> string name;
> string seq;
> };
>
> interface LightSeq {
> string name();
> string seq();
> int length(); // need a length method because we might not want to retrieve the whole seq()
> string subseq(in long start, in long end);
> LightSeqMomento make_LightSeqMomento();
> };
>
> interface DatabaseSeq : LightSeq {
> attribute string implementation_id; // implementation unique id
> attribute string accession_number; // biological unique id
> };
>
> }