Thank you for the fast response, actually I've already run an example in which only simple calculation is done and it worked, later today I've managed to send my whole environment class (the class in which I create my agents and make them move) to a remote site and it worked (well at least that's what I think beacause nothing works unless the server is open and my .ozf and pictures used for agents are present in the other site). Now I'm trying to modify my environment class in order to send only some agents to a remote site while others remain local hoping this also works. If it doesn't turn out okay I'll ask for help again.
Thanks again 2010/6/21 Wolfgang Meyer <[email protected]> > Hi, > > classes are first-class values in Oz. You can send them to remote sites > just like any other value. > > However, you have to be careful about what kind of code the class has. If > its code uses "resources", it can not simply be moved to other sites. > "Resources" are system modules or modules that use system modules. > > In this case you should encapsulate the class in a functor (i.e. a module > definition). Then you can send the functor to other sites and "apply" it > locally such that the applied functor will use local resources. > > If on the other hand your classes only do pure calculations without using > system modules, you don't need to worry about this. > > If you need a simple example to get started, let us know. > > Cheers, > Wolfgang > > On Mon, Jun 21, 2010 at 10:47 AM, Khadija EL MAHRSI < > [email protected]> wrote: > >> Hello, >> I'm trying to do a distributed multi agent simulator in which I send my >> agents to different remote sites and I was wondering if this is possible. If >> it is, does anyone have any idea how to achieve such a thing. >> I've already read the mozart documentation but I still don't quite get it. >> >> Thanks >> >> >> _________________________________________________________________________________ >> mozart-users mailing list >> [email protected] >> http://www.mozart-oz.org/mailman/listinfo/mozart-users >> > > > > _________________________________________________________________________________ > mozart-users mailing list > [email protected] > http://www.mozart-oz.org/mailman/listinfo/mozart-users >
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
