RE: [jade-develop] Pb with the Ontology generator


Subject: RE: [jade-develop] Pb with the Ontology generator
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Mon Aug 12 2002 - 13:53:50 MET DST


Hi,

The Beangenerator generates code that you can use with the NEW ontology support provided by JADE (included in the jade.content package).
The Agent.registerOntology() method, on the other hand, belongs to the OLD ontology support (that will likely be deprecated). You should use Agent.getContentManager().registerOntology() instead. See the tutorial on content languages and ontologies (available on the JADE site) for details.

Bye

Giovanni

-----Original Message-----
From: Abdelkader GOUAICH [mailto:gouaich@lirmm.fr]
Sent: venerd́ 9 agosto 2002 17.59
To: aart@swi.psy.uva.nl
Cc: jade-develop@sharon.cselt.it
Subject: [jade-develop] Pb with the Ontology generator

Hi there,

I am trying to use protege/jade bean generator tool to generate my
ontology and concepts, however i fail when compiling my code.

I have the following error:

./../projects/test/src/test/Pong.java:44:
registerOntology(java.lang.String,jade.onto.Ontology) in jade.core.Agent
cannot be applied to (java.lang.String,jade.content.onto.Ontology)

this.registerOntology(BallOntology.ONTOLOGY_NAME,BallOntology.getInstance());

In fact the generated class inherits form jade.content.onto.Ontology
class and the Jade API allows only: jade.onto.Ontology class to be
passed as an argument for the ontology registration!

So, what can I do to solve this problem....?

Config: Jade 2.5

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Mon Aug 12 2002 - 13:53:59 MET DST