Re: [eclipse-clp-users] Get information from query

From: Christian Wirth <tyrion_at_geek-squad.de>
Date: Sat, 27 Mar 2010 21:13:12 +0100
The result of a query is an object. The stuff you copied, is this object 
serialized to a string. The object is normaly a CompoundTerm or a 
Collection of CompoundTerms.
You can extract the information you want with the arg/functor functions 
of this object.

soei85_at_virgilio.it schrieb:
>  Hi, my ask is this : 
>
> If i have as result of query in java this : 
>
> [com.parctechnologies.eclipse.CompoundTermImpl with [functor=ricovero 
> arity=2 arg(1)=2341 arg(2)=9], 
> com.parctechnologies.eclipse.CompoundTermImpl with 
> [functor=spostaInParallela arity=7 arg(1)=2341 arg(2)=3111 arg(3)=11 
> arg(4)=106 arg(5)=108 arg(6)=107 arg(7)=111], 
> com.parctechnologies.eclipse.CompoundTermImpl with 
> [functor=spostaInParallela arity=7 arg(1)=2341 arg(2)=3111 arg(3)=14 
> arg(4)=112 arg(5)=120 arg(6)=118 arg(7)=130]]
>
> how can i get every information?For example..how can i get information 
> on "ricovero" ?
>
> Thanks for reply.
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users
>   
Received on Sat Mar 27 2010 - 20:13:18 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET