Subject: RE: [jade-develop] AbsAgentAction OntologyException
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Tue Aug 20 2002 - 10:17:49 MET DST
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.action(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)
>
>
This archive was generated by hypermail 2a22 : Tue Aug 20 2002 - 10:17:56 MET DST