Subject: Re: [jade-develop] sending and switching behaviours
From: Joan Ametller (jamet@abra.uab.es)
Date: Thu Feb 20 2003 - 10:47:40 MET
I think that the proces to send and object inisde an ACL message use the
Serialization mechanism to write it in an array of bytes. You will not have
problems if the two agents are in the same platform, and in the same
container, because the class of the sended behaviour must be loaded when it
is extracted from the message. So if this class is not accessible, you will
get a NoClassDefFoundError exception.
On Wednesday 19 February 2003 04:48, Peng Xu wrote:
> Hi Jaders,
>
> I am planning to do the following. I'm not sure if this can be done in
> Jade.
>
> I have an agent running a behaviour B1, then, during the execution of B1 it
> will receive an ACL message from another agent, the content of the received
> message will be an object of another behaviour, say B2. So is this possible
> to
> do this? Can I send a behaviour via ACL message?
>
> Secondly, I want to suspend B1 and start to execute B2 (the just received
> behaviour).
> And, at the end of B2, I want to go back to B1.
>
> That is, I want to add a new behaviour at run time and switch between the
> behaviours.
> I'd like to hear any suggestions on this.
> Thanks!
>
> Peng
>
>
> _______________________________________________
> 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
-- ------------------------------------------------ Joan Ametller Esquerra Unitat de Combinatòria i Comunicació Digital Universitat Autònoma de Barcelona 08193 Bellaterra, Spain Despatx QC/2041 e-mail: jametller@ccd.uab.es ------------------------------------------------
This archive was generated by hypermail 2a22 : Thu Feb 20 2003 - 10:50:24 MET