On Thu, Aug 12, 2010 at 11:24 AM, Khadija EL MAHRSI <
[email protected]> wrote:

> this is what I had in mind too but in order to use "
>
{DP.annotate X stationary}" (which I find easiest to use) I need Mozart
> 1.4.0 which I don't have (basically because (correct me if I'm wrong) I read
> somewhere that Mozart 1.4.0 had a problem with distributed programming. I
> wanted to make sure so I wrote a small code (which I can't remember since
> it's been months ago) and ran it using Mozart 1.3.8 and it worked perfectly
> but using Mozart 1.4.0 it didn't work at all).
>

Yes, distribution on 1.4.0 does not work on Windows, unfortunately. On Linux
it should work fine, though.


> Also, I tried the little code you wrote while connecting to my localhost as
> the remote site and I got false as a result for both T and T2, is this
> result correct or should I try connecting to another machine rather than my
> own? If not then what should I have obtained (for T2 I used the code in the
> link you provided since I'm using Mozart 1.3.8).
>

It should show "true" for T2. But that didn't work because of the
version-specific hack in the isRemote method, sorry. I attached a version
that I tested on 1.3.2. ("remote1.oz").



>
> Anyway, I'm planning to procede in this direction so if you have examples
> that can help me have a better idea on how to write my code I would
> appreciate it (especially how to use Remote in my Environment class in order
> to create (using init method) and execute (using start method) my agents on
> remote sites. Because the functor Remote needs is confusing me (like where
> to write it and how to make it create and start the agents on the remote
> site).
>
> You can basically define such a functor anywhere you want because Oz has a
very compositional syntax. This can be confusing compared to other
languages, but it is really quite powerful.

I attached another example that shows how to create a stationary object on
the remote site and then access it from the local site and call its methods
("remote2.oz").
Hope this helps.

Cheers,
  Wolfgang

Attachment: remote1.oz
Description: Binary data

Attachment: remote2.oz
Description: Binary data

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to