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

Reply via email to