Hello and thanks again,
After trying remote1.oz it did properly show false for T and true for T2.
For remote2.oz at the end does it lack Inspector before inspect? (I added a
wrapping functor in order to run it externally from Cygwin and
Inspector.inspect instead of Inspect at the very end and after modification
it did show true)

P.S.: Sorry for writing 1.3.8 instead of 1.3.2 (For some reason I was sure
it was 8 not 2, my mistake).

2010/8/12 Wolfgang Meyer <[email protected]>

>
>
> 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
>
>
>
> _________________________________________________________________________________
> 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