Subject: RE: [jade-develop] Simple Question: negative expression
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Tue Nov 05 2002 - 14:43:10 MET
Hi,
You can use the NOT operator of the SL language. Something like:
Predicate p = // construct the predicate you want to negate
AbsPredicate not = new AbsPredicate(SLVocabulary.NOT);
not.set(SLVocabulary.NOT_WHAT, myOntology.fromObject(p));
myContentManager.fillContent(msg, not);
Note that, since there are a lot of SL operators, we diceded not to implement a Java class for each of them --> This is why you have to use abstract descriptors.
Bye
Giovanni
-----Original Message-----
From: Marco Alessi [mailto:alessi@eng.it]
Sent: marted́ 5 novembre 2002 12.06
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Simple Question: negative expression
Hi All!!!
I apologize for my english!!!!
I'm doing Seller-Buyer example, and I'm wondering how to express,in java language using SL-Language ,a negative expression of a predicate like "to own" some Item, that is "NOT OWN ITEM", as for example using SL:
:content(( not (owns (item))))
I have to define a generic Class FalseProposition() that implements a method that gets the content message and sets it false ???
Any ideas?
Sorry about my ignorance!!!
-----Original Message-----
From: Marco Alessi [mailto:alessi@eng.it]
Sent: marted́ 5 novembre 2002 12.06
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Simple Question: negative expressionHi All!!!I apologize for my english!!!!I'm doing Seller-Buyer example, and I'm wondering how to express,in java language using SL-Language ,a negative expression of a predicate like "to own" some Item, that is "NOT OWN ITEM", as for example using SL::content(( not (owns (item))))I have to define a generic Class FalseProposition() that implements a method that gets the content message and sets it false ???Any ideas?Sorry about my ignorance!!!
This archive was generated by hypermail 2a22 : Tue Nov 05 2002 - 16:04:30 MET