[MOBY-dev] findService java api question
Andreas Groscurth
groscurt at mpiz-koeln.mpg.de
Tue Aug 7 14:14:51 UTC 2007
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" );
service.addOutput( dataObject );
MobyService[] services = central.findService( service );
for ( MobyService service2 : services ) {
System.out.println(service2.getName());
}
System.out.println("-------------------------------");
services = central.findService( service, null, false, false );
for ( MobyService service2 : services ) {
System.out.println(service2.getName());
}
System.out.println("-------------------------------");
services = central.findService( service, null, true, false );
for ( MobyService service2 : services ) {
System.out.println(service2.getName());
}
System.out.println("-------------------------------");
services = central.findService( service, null, false, true );
for ( MobyService service2 : services ) {
System.out.println(service2.getName());
}
Calling this I get
getNASCinsertByAGI
getNASCstockCodeByAGI
getCorrelationByAGI
getNASC_codebyAGI_locus
getAthImageByAGI
Locus2GeneAliases
Echo3
getNASCphenotypeByAGI
NASCArraysGeneswingerByAGI
getAGRISTFFamilyNameByAGI
getNASCstockNameByAGI
and also - what ever kind of true / false combination i use in findService...
its always the same result.
so 1. I dont understand the find service result at all
and 2. why doesnt it matter to use different true / false values in the
findservice call ?
thanks
Andreas
More information about the MOBY-dev
mailing list