[MOBY-dev] findService java api question
    Andreas Groscurth 
    groscurt at mpiz-koeln.mpg.de
       
    Tue Aug  7 15:10:14 UTC 2007
    
    
  
Hi,
right... I though of the MobyDataComposite object in a different way...
ok... its getting better :)
Thanks
andreas
On Tuesday 07 August 2007 16:32, Paul Gordon wrote:
> Hi Andreas,
>
> > Hi,
> >
> > I still dont get the findService api .... hope again, someone can help me
> > out
> >
> >  Central central = new CentralImpl();
> >  MobyService service = new MobyService();
> >  service.setCategory( "" );
> >
> > // create an input object... the service shall consume an AGI_LocusCode
> > MobyDataObject inputObject = new MobyDataObject( "" );
> > inputObject.setPrimaryNamespace( MobyNamespace.getNamespace(
> > "AGI_LocusCode" ) ); service.addInput( inputObject );
> >
> > // I want services which have a NucleotideSequence as output
> > MobyDataObject dataObject = new MobyDataObject( "NucleotideSequence" );
>
> What you actually want is a new
> MobyDataComposite("NucleotideSequence").  From the MobyDataObject javadocs:
>
> A class representing a *base* MOBY object (i.e. just a namespace and id)
> that has been instantiated. If you are looking to represent an object
> with members (e.g. DNASequence), look at MobyDataComposite.
>
> Hope this helps!
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
-- 
Andreas Groscurth
Diplom Bioinformatik - PhD Student
Max Planck Institute for Plant Breeding Research
Carl-von-Linné-Weg 10
50829 Cologne
Germany
E-mail:    groscurt at mpiz-koeln.mpg.de
Phone:    +49(0)221-5062-447
    
    
More information about the MOBY-dev
mailing list