swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Replicator.pl and Run number


From: Paul Johnson
Subject: Re: [Swarm-Support] Replicator.pl and Run number
Date: Sun, 26 Sep 2004 20:06:01 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

Do that with the command line arguments framework. if the command line can accept a "run" argument, then you grab that value and use it.

In the tutorial package just now being prepared, there are items "simpleBatchBug1" 2 and 3 that show various aaspects of this idea. If you have access to download things from swarm cvs on Savannah, you can get it there in the apps directory.

I would not find where I put a recent snapshot, so I just make one and put it here. This one has newly added apps I like for conway's game of life, Schelling neigborhood, as well as the thinks in the tutorial, where you find the new batch bug things.

Here:

http://lark.cc.ku.edu/~pauljohn/Swarm/MySwarmCode/swarmapps_snap_20040925.tar.gz

There is also a working example of passing command line arguments in the code for protest:
http://lark.cc.ku.edu/~pauljohn/Swarm/MySwarmCode/Protest/activists-20020412.tar.gz
and opinion formation:

http://lark.cc.ku.edu/~pauljohn/Swarm/MySwarmCode/OpinionFormation/Opinion-2.0.1.tar.gz

Kerimcan Ozcan wrote:
In his useful script replicator.pl, Paul Johnson notes that:

"You have the responsibility of creating output files with the run number
in them if you want separate records for each run of the program.  It will
create new experiment directories every time it runs, but if your program
writes on top of its old files when it repeats itself, it is your own
fault."

My question is: How could I pass the current run number to my Swarm
application and append it to the output file name (e.g. output0, output1,
etc.)?

Kerimcan Ozcan

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700


reply via email to

[Prev in Thread] Current Thread [Next in Thread]