Subject: RE: [jade-develop] AbsAgentAction OntologyException
tluthra@att.net
Date: Tue Aug 20 2002 - 14:24:10 MET DST
It's Jade 2.6
I'm trying to define my ontology again as when I change
some to Predicates instead on Concept, some other agents
work out of whack.
Thanks for you help.
---- Original Message:
------------------------
> Hi,
>
> Which version of JADE are you using?
> If it is 2.5, I suggest moving to 2.6 where some bugs where fixed in the
> ontology support related to AgentActions.
>
> Let me know and bye
>
> Giovanni
>
> > ----------
> > From: Teji Luthra[SMTP:tluthra@att.net]
> > Sent: luned́ 19 agosto 2002 2.57
> > To: jade-develop@sharon.cselt.it
> > Subject: [jade-develop] AbsAgentAction OntologyException
> >
> > Hello Jaders,
> >
> > I'm receiving an error from the ontology stating that a particular
> performative is not an AbsAgentAction. From the exception stack it appears that
> the error occurs at the BuyAt object which extends AgentAction and is defined as
> AgentActionSchema in the ontology.
> >
> > The time when this error occurs is when this agent receives an INFORM from
> another agent and the content is extracted using ContentElement.
> >
> > Would any of you have an idea about what might be wrong here or what the
> AbsAgentAction error is about? Thanks in advance for your help
> > Tej
> >
> >
> > The complete message being retrieved is:
> > ((Research (Analysis :type BuyAt :confidence High :BuyAt (BuyAt :stock (Stock
> :stock-name XYZ) :price (Price :value 40.0)))))
> >
> >
> > Where the classes have been defined as follows:
> > Research: Predicate
> > Analysis: Concept
> > BuyAt: AgentAction
> > Stock: Concept
> > Price: Concept
> >
> >
> > The exception that I receive is as follows:
> >
> > jade.content.onto.OntologyException: (BuyAt :price (Price :value 40.0) :stock
> (Stock :stock-name XYZ)) is not an AbsAgentAction
> > at
> jade.content.schema.AgentActionSchema.validate(AgentActionSchema.java:107)
> > at
> jade.content.schema.ObjectSchemaImpl.validate(ObjectSchemaImpl.java:382)
> > at
> jade.content.schema.ObjectSchemaImpl.validateSlots(ObjectSchemaImpl.java:327)
> > at jade.content.schema.ConceptSchema.validate(ConceptSchema.java:151)
> > at
> jade.content.schema.ObjectSchemaImpl.validate(ObjectSchemaImpl.java:382)
> > at
> jade.content.schema.ObjectSchemaImpl.validateSlots(ObjectSchemaImpl.java:327)
> > at
> jade.content.schema.PredicateSchema.validate(PredicateSchema.java:137)
> > at jade.content.ContentManager.validate(ContentManager.java:322)
> > at jade.content.ContentManager.extractContent(ContentManager.java:265)
> > at
> jade.simulation.MarketParticipant.GetResearchAgent$IncomingResearchBehaviour.act
> ion(GetResearchAgent.java:211)
> > at jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:258)
> > at jade.core.Agent.mainLoop(Agent.java:1690)
> > at jade.core.Agent.run(Agent.java:1511)
> > at java.lang.Thread.run(Thread.java:536)
> >
> >
>
>
> ====================================================================
> CONFIDENTIALITY NOTICE
> This message and its attachments are addressed solely to the persons
> above and may contain confidential information. If you have received
> the message in error, be informed that any use of the content hereof
> is prohibited. Please return it immediately to the sender and delete
> the message. Should you have any questions, please contact us by
> replying to MailAdmin@tilab.com. Thank you
> ====================================================================
This archive was generated by hypermail 2a22 : Tue Aug 20 2002 - 14:21:54 MET DST