Sending classes to a remote site

2010-06-21 Thread Khadija EL MAHRSI
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.

Re: Sending classes to a remote site

2010-06-21 Thread Khadija EL MAHRSI
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

Re: can not reach some of the documentation that is shown online...

2010-07-27 Thread Khadija EL MAHRSI
Hello, I can access them just fine. 2010/7/27 Gautam Thaker gautam.h.tha...@lmco.com http://www.mozart-oz.org/download/view.cgi?action=printversion=1.3.2 shows http://www.mozart-oz.org/download/mozart-ftp/store/1.3.2-2006-06-15-print/tutorial/FiniteDomainProgramming.pdf.gz and

Re: Sending classes to a remote site

2010-08-11 Thread Khadija EL MAHRSI
Hello, I have a problem which I've been trying to solve for quite some time now but to no avail (I'm still very new to Oz/Mozart). I have a class Environment in which I created 2 lists containing each a numbre of a determined type of agents (Let us say a list of red agents and a list of blue

Re: Sending classes to a remote site

2010-08-12 Thread Khadija EL MAHRSI
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 wolfgang.m.me...@googlemail.com On Thu, Aug 12, 2010 at 11:24 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote

Re: Sending classes to a remote site

2010-08-13 Thread Khadija EL MAHRSI
to possibilities: 1. import Inspector and call inspect qualified: {Inspector.inspect...} 2. or import it like this: functor import Inspector(inspect:Inspect) define ... Then you can use Inspect unqualified. Cheers, Wolfgang On Thu, Aug 12, 2010 at 4:29 PM, Khadija EL MAHRSI khadija.elmah

Re: Sending classes to a remote site

2010-08-16 Thread Khadija EL MAHRSI
= A self.b = B end meth get(Feature $) self.Feature end end T = {New Test init(13 17)} {Show {T get(a $)}} {Show {T get(b $)}} Cheers, Wolfgang On 8/13/10, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, I have another question, in the remote2.oz

Re: Sending classes to a remote site

2010-08-16 Thread Khadija EL MAHRSI
Hello and thanks, after taking a nap and resting a bit I could finally see what was wrong which is really easy (you explaining the problem really made it easier for me to know exactly where to look and what to look for). I was writing: meth init(X Y) . . {self.x = X}

Re: Linking classes

2010-08-24 Thread Khadija EL MAHRSI
Thanks anyway. 2010/8/25 Lyle Kopnicky li...@qseep.net I would like to help but have no idea about that stuff... still finishing Chapter 6 of CTM, so I haven't got to the OO or GUI chapters yet. - Lyle _

Re: Linking classes

2010-08-24 Thread Khadija EL MAHRSI
Hello, * As I understand, the PicClass instances run on a different site than the MainClass, correct? I also assume that both MainClass and PicClass instances are stationary objects, i.e. their methods are executed at the site where the instances were originally created. (Correct me if my

Re: Linking classes

2010-08-25 Thread Khadija EL MAHRSI
Hello, do you think that if I create the image in the MainClass and pass its tag to the PicClass as parameter I will be able to use move on this tag and have it move on my main GUI? Thanks 2010/8/25 Wolfgang Meyer wolfgang.m.me...@googlemail.com Hi, I think it fails before the creation of

Re: Linking classes

2010-08-27 Thread Khadija EL MAHRSI
Hi, On Aug 25, 2010 6:13pm, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, do you think that if I create the image in the MainClass and pass its tag to the PicClass as parameter I will be able to use move on this tag and have it move on my main GUI? No, this will not work (I

Executing OS on a remote site

2010-09-04 Thread Khadija EL MAHRSI
Hello, I was wondering if it is possible to have a class running on a remote site execute OS.(something) and put the result in a feature of this class (like self.x=OS.rand for example). Thanks _ mozart-users mailing

Execution warning

2010-09-04 Thread Khadija EL MAHRSI
Hello, I was wondering if anyone had any idea about the following execution warning and can explain it to me: Warning: marshaling a variable as a resource! Thanks. _ mozart-users mailing list

Re: Executing OS on a remote site

2010-09-05 Thread Khadija EL MAHRSI
Hello, Correct me if I'm wrong, after some research I came to the conclusion that since OS is sited it is not possible to achieve the idea I had so instead I will have the result of OS.something passed to this class as parameter through a method. Thanks. 2010/9/4 Khadija EL MAHRSI khadija.elmah

Instance creation problem

2010-09-05 Thread Khadija EL MAHRSI
Hello, I have encountered a problem and I was wondering if anyone had an explanation to it. I have the following hierarchy: class grandParent class parent from grandParent class child from parent If I try to create an instance of the child class on a remote site, the creation fails. If I write

Re: Instance creation problem

2010-09-06 Thread Khadija EL MAHRSI
for example usage of a sited module in the constructor of parent. Hard to say without more details. Is there any error message? Can you show the code of class parent? Cheers, Wolfgang On Sun, Sep 5, 2010 at 5:12 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, I have

Re: Instance creation problem

2010-09-06 Thread Khadija EL MAHRSI
Hello, I need to clarify something. In this application I don't get the warning it is in another application that I'm writing that the marshalling warning occurs. Thanks. 2010/9/6 Boriss Mejias boris.mej...@uclouvain.be On 06/09/10 10:32, Khadija EL MAHRSI wrote: Hello, the weird thing

Re: Instance creation problem

2010-09-06 Thread Khadija EL MAHRSI
Hello, you were right I get the warning in this application too but I didn't notice it. I will review my code and try to find out what's wrong otherwise I will write the code in my next message. Thanks a lot. 2010/9/6 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, I need to clarify

Re: Instance creation problem

2010-09-06 Thread Khadija EL MAHRSI
created from the Parent class cause no problem and changing class Child from Parent into class Child from GrandParent makes everything work. Any explanation? Thanks. 2010/9/6 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, you were right I get the warning in this application too but I didn't

Re: Instance creation problem

2010-09-07 Thread Khadija EL MAHRSI
. 2010/9/6 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello again, I have to admit I'm really puzzled. The warning disappeared (apparently it doesn't appear each time that's why I didn't notice it earlier) and yet the error is here to stay. The code is basically something like this: class

Re: Executing OS on a remote site

2010-09-08 Thread Khadija EL MAHRSI
, that is not necessary. Hope this helps, Wolfgang On Mon, Sep 6, 2010 at 10:25 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, using this information I wanted to do the following: Create a stationary instance of a class (let's call it MyClass) on a remote site (thanks to the code

Re: Executing OS on a remote site

2010-09-08 Thread Khadija EL MAHRSI
with a new seed at every run, typically the current time. You can do this by calling {OS.srand 0} at the beginning of your program. Subsequent calls to OS.rand will look more random ;-) Cheers, Raphael On Wed, Sep 8, 2010 at 11:02 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote

Re: Execution warning

2010-09-10 Thread Khadija EL MAHRSI
) and see whether the warning goes away. This is just a wild guess, though. Not sure whether there is any relation. Cheers, Wolfgang On Thu, Sep 9, 2010 at 4:01 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, could this warning be caused by the use of threads? I read

Re: Instance creation problem

2010-09-10 Thread Khadija EL MAHRSI
will do. * The good thing is that such a server is relatively easy to implement in Oz.* I hope so because I can't afford to spend much time on this. Thanks. 2010/9/9 Wolfgang Meyer wolfgang.m.me...@googlemail.com Hi, On Wed, Sep 8, 2010 at 7:38 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com

Re: Execution warning

2010-09-10 Thread Khadija EL MAHRSI
because Mozart 1.4, distibuted programming and Windows don't go well together even though I used the patch). So I guess I will have to find the problem on my own but if you have any suggestions please feel free to share them with me. Thanks. 2010/9/10 Khadija EL MAHRSI khadija.elmah...@gmail.com

Execution error

2010-09-13 Thread Khadija EL MAHRSI
Hello, I was wondering if anyone can tell me what the following execution error means: requesting the class of a ClassVar?!? Thanks. _ mozart-users mailing list

Re: Execution warning

2010-09-13 Thread Khadija EL MAHRSI
Hello, I finally got rid of the warning which was caused by one of my classes that used IOFile. Thanks 2010/9/10 Wolfgang Meyer wolfgang.m.me...@googlemail.com Hi again, On Fri, Sep 10, 2010 at 9:59 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, making the change you

Communication using ports

2010-09-20 Thread Khadija EL MAHRSI
Hello, I was wondering if I could have an example where two classes each running on different sites communicate using ports and streams. In case one of the classes is stationary while the other isn't would it change anything? And if both classes are stationary each in its site would it still be

Re: Linking classes

2010-09-20 Thread Khadija EL MAHRSI
:'NewText')} the picture changed and obviously the text didn't. How can I make it work? Thanks 2010/8/27 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, I adapted the code you gave me to the one I had and it worked like a charm (just like you said without MakeStat move doesn't work but when

Re: Communication using ports

2010-09-21 Thread Khadija EL MAHRSI
Hello, I just wanted to say that I managed to make an example by myself but if I get an example maybe I could compare it to what I have and make sure that I did things right. Thanks 2010/9/20 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, I was wondering if I could have an example where

Re: Execution error

2010-09-22 Thread Khadija EL MAHRSI
line: 138 origin: procedureFrame vars:v('G':nil 'Y':nil)) entry( 'PC': 20309468 column: 6 data:P/10 MyClass,init/fast file:'./MyClassesss.oz' frameID:33 kind: call line:123 origin:procedureFrame)])) What does this mean? Thanks. 2010/9/13 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello

Re: Execution error

2010-09-26 Thread Khadija EL MAHRSI
to disable the firewall(s) for testing purposes. Are there maybe multiple ssh exes in the path and Oz is accidentally using the wrong one? Cheers, Wolfgang On Fri, Sep 24, 2010 at 2:36 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, maybe I forgot to mention that I used

Re: I need help

2011-04-28 Thread Khadija EL MAHRSI
Hello, Did you add the OZEMACS Environment Variable? Take a look at this link: http://www.cse.iitk.ac.in/users/hk/cs350/2010/sw/readme.html/ I saw this link more than a year ago but when I took a look at it lately I found it lacks the pictures used for explanation. Hope this helps. 2011/4/28 Ali

Distribution Warning

2011-04-29 Thread Khadija EL MAHRSI
Hello, I've been trying to run a distributed application (to no avail) and I keep getting the following line: ***Warning: HashTable reusing entry So, does this have anything to do with why my application wouldn't work? Thanks

Re: Distribution Warning

2011-05-04 Thread Khadija EL MAHRSI
Hi, I've tried running the exact same application on another computer and it worked just fine. What could have been the cause of the problem? Thanks 2011/4/30 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, my application is kind of complicated so I'll try writing a smaller one which

Re: Distribution Warning

2011-05-04 Thread Khadija EL MAHRSI
version 1.3.2. That version does not have the code that prints the warning and might work more robustly in your scenario. Whether this is feasible, depends on how much Mozart 1.4 features you have used, of course. Regards, Wolfgang On Wed, May 4, 2011 at 4:17 PM, Khadija EL MAHRSI

Knowing CPU and memory usage

2011-07-10 Thread Khadija EL MAHRSI
Hello, I was wondering if there was a way using Oz to know the CPU and memory usage of a machine so that I could compare them to a certain threshold. Thanks _ mozart-users mailing list

Re: MOzart Global User Library

2011-08-16 Thread Khadija EL MAHRSI
Thank you for the fast response, I will check it out. Le 16 août 2011 14:32, Peter Van Roy peter.van...@uclouvain.be a écrit : On 16/8/2011 2:29 PM, Khadija EL MAHRSI wrote: Hello, I was wondering if there were any additional information about the packages and how to use them (like some

Re: Agent Server

2011-12-14 Thread Khadija EL MAHRSI
? Thanks 2011/12/13 Khadija EL MAHRSI khadija.elmah...@gmail.com Hello, I've been trying to do the Agent Server example from the Mobile agents part in the following link ( http://graubart.rz.ifi.lmu.de/programming/mozart/print/tutorial/DistributedProgramming.pdf) but for some reason couldn't

Re: Agent Server

2011-12-14 Thread Khadija EL MAHRSI
AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hi, I've been doing some more tests and any use of D1 after the functor is sent to the server results in an endless wait. Instead of using {Wait D1}, I used another variable D2 that uses D1 and the block still remains (since D2 waits

Re: Agent Server

2011-12-15 Thread Khadija EL MAHRSI
Hello, I just wanted to add that I think the code for the remote agent server is also incorrect. I'm doing the same previous example but with a remote agent server and trying to correct the provided code so if anyone can help me with it I'd appreciate it. Thanks. 2011/12/14 Khadija EL MAHRSI

Pickles URL

2011-12-15 Thread Khadija EL MAHRSI
Hi, I wanted to know how to properly write the URL for loading pickles. I've read the documentation but I'm afraid it still isn't clear enough for me. In case I had 2 connected machines and one of them is trying to load a pickle which exists on the other, how do I write the URL? Thanks.

Re: Re: Pickles URL

2011-12-21 Thread Khadija EL MAHRSI
error messages? Maybe something in the nginx logs? (access.log / error.log) Cheers, Wolfgang On Dec 21, 2011 8:27pm, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hi, I've tried nginx like you suggested and managed to serve the file at a given URL. I can access the .ozf file from

Re: Re: Pickles URL

2011-12-22 Thread Khadija EL MAHRSI
at 11:08 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, When I used nginx, I made sure the firewall was disabled (both Windows' and the antivirus'). I used another example to load a pickle and the same thing happened: I can access the file with my browser but the Pickle.load

Re: Agent Server

2012-01-16 Thread Khadija EL MAHRSI
. 2011/12/23 Khadija EL MAHRSI khadija.elmah...@gmail.com Hi, I've been working on the remote agent server and I think I managed to correct the given code (hopefully). However, I keep getting the exception serverUnavailable even though the creation of the server is done successfully. Maybe I'm

Re: Agent Server

2012-01-17 Thread Khadija EL MAHRSI
should create a local version of AgentServer, for example by simply adding Agents to the toplevel imports section and then using Agents.getserver. Hope this helps, Wolfgang On Mon, Jan 16, 2012 at 11:55 AM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, Since I still

Writing in a file on a remote machine

2012-02-27 Thread Khadija EL MAHRSI
Hi, I'm trying to create a distributed system with central log files. By central I mean that the log files are to be created on one machine only while the remote elements of the system access the log files on this machine and write in them. Is it possible to achieve this? Thanks

Re: Writing in a file on a remote machine

2012-03-01 Thread Khadija EL MAHRSI
Hi, I tried the code you gave me and it worked the way I wanted it to. I really appreciate your help. 2012/2/27 Yves Jaradin yves.jara...@uclouvain.be Le 27/02/12 14:21, Khadija EL MAHRSI a écrit : Hi, I'm trying to create a distributed system with central log files. By central I mean

Virtual String

2012-03-28 Thread Khadija EL MAHRSI
Hi, I was working with virtual strings and tried to have the string displayed on the screen using {TextHandler set(text:VirtualStr)}; however, it didn't work. I also tried to convert the virtual string to a string but this seems to make things worse: I can't use anything related to VirtualString

Re: Virtual String

2012-03-29 Thread Khadija EL MAHRSI
, 2012 at 19:17, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hi, I was working with virtual strings and tried to have the string displayed on the screen using {TextHandler set(text:VirtualStr)}; however, it didn't work. I also tried to convert the virtual string to a string

Re: Virtual String

2012-04-02 Thread Khadija EL MAHRSI
. It could appear that, for some reason, it does not contain what you think it contains. Sébastien On Fri, Mar 30, 2012 at 20:49, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, After a number of tests, it became clear that the problem comes indeed from the feature which

QTk Widgets

2012-05-03 Thread Khadija EL MAHRSI
Hello, I was experimenting with QTk and wanted to use the Dropdownlistbox. First of all, the documentation page is weirdly displayed compared to the other widgets and secondly (and more importantly), it's not working. The part where the label is supposed to display the selected value from the list

Re: QTk Widgets

2012-05-04 Thread Khadija EL MAHRSI
are very distorted. Best wishes, Torsten On 3 May 2012, at 22:41, Khadija EL MAHRSI wrote: Hi, Thank you for trying to help. I managed to solve the problem which was caused by a silly mistake actually. When I was about to put the part of the code which caused the problem, I noticed

Re: QTk Widgets

2012-05-04 Thread Khadija EL MAHRSI
, Sébastien On Fri, May 4, 2012 at 5:23 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hi, I'm having another problem with the Dropdownlist. The value returned by the command: {List.nth {D get($)} {D get(firstselection:$)}} is a list of numbers (which I suppose represents the selected

Re: QTk Widgets

2012-05-04 Thread Khadija EL MAHRSI
What if I wanted to use the content of Var as an argument? 2012/5/4 Sébastien Doeraene sjrdoera...@gmail.com Use {System.showInfo Var} instead. Sébastien On Fri, May 4, 2012 at 6:21 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: Hello, Yes, I've figured that much and I

Re: QTk Widgets

2012-05-04 Thread Khadija EL MAHRSI
I tried both and none of them worked. 2012/5/4 Sébastien Doeraene sjrdoera...@gmail.com 'Application' is not a string, it's an atom. Application is a string. Sébastien On Fri, May 4, 2012 at 6:59 PM, Khadija EL MAHRSI khadija.elmah...@gmail.com wrote: The called procedure compares Var

Re: QTk Widgets

2012-05-04 Thread Khadija EL MAHRSI
Sorry, you were right it's just that when I tried Application before, I missed the message that said true because there were so many other tests. Thanks. 2012/5/4 Khadija EL MAHRSI khadija.elmah...@gmail.com I tried both and none of them worked. 2012/5/4 Sébastien Doeraene sjrdoera

Class creation

2012-06-14 Thread Khadija EL MAHRSI
Hi, I was reading the documentation about classes and noticed that there was no possibility to have something similar to multiple constructors. Is this correct? If so, is there a way to create a class which can be initialized in more than one way? Thanks.

Re: Class creation

2012-06-14 Thread Khadija EL MAHRSI
2012, at 18:49, Khadija EL MAHRSI wrote: Hi, I was reading the documentation about classes and noticed that there was no possibility to have something similar to multiple constructors. Is this correct? If so, is there a way to create a class which can be initialized in more than one way

Re: Class creation

2012-06-14 Thread Khadija EL MAHRSI
Hi, after going through my code, I've noticed that I had forgotten to change the path to the pickle I was using to load the class and consequently, the older version I was using to create my instances didn't have the new method defined. Sorry for the trouble. 2012/6/14 Khadija EL MAHRSI

Problem with try and catch

2012-06-29 Thread Khadija EL MAHRSI
Hi, I'm working with Pickles in my application and when trying to load them, the application fails and I have no idea why. I tried using try and catch to see what exceptions I might be getting but for some reason, I can't seem to be able to do so. The catch part is working properly because I can

Re: Problem with try and catch

2012-06-29 Thread Khadija EL MAHRSI
know the problem :-( 2012/6/29 jorge.pelizz...@gmail.com jorge.pelizz...@gmail.com What if you don't try to catch the exception? Normally the system itself will print it for you. Cheers, Jorge. Enviado por Samsung Mobile Khadija EL MAHRSI ** escreveu: Hi, I'm working with Pickles

Re: Problem with try and catch

2012-06-29 Thread Khadija EL MAHRSI
not be pickling a TICKET to that thing. Jorge. 2012/6/29 Khadija EL MAHRSI khadija.elmah...@gmail.com: I get a *** Warning: marshaling a variable as a resource! which is not very specific and I'm not sure what could be the cause of this warning so I figured that maybe displaying

Property Module

2012-07-03 Thread Khadija EL MAHRSI
Hi, my question concerning this module is as follows: can a remote stationary class use this module to read the memory usage of the remote site where it resides? Thanks. _ mozart-users mailing list