MASON-INTEREST-L Archives

August 2007

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Glen E. P. Ropella" <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 15 Aug 2007 15:58:54 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Is the recommended way of programmatically controlling the random seed
for GUI controlled experiments to sub-class sim.display.Console and set
randomSeed, randomField, and incrementSeedOnPlay?  Or is there some
other method I've missed?

If that is the recommended way, it strikes me as a bit of an extra
effort on the programmer's part, since I have to create a mirror java
package within my own source tree called sim.display and put my
sub-classed console in there.  Perhaps a couple of public setters on the
Console are warranted?  Something like:

   sim.display.Console c = new sim.display.Console(guistate);
   c.setRandomSeed(94898989);
   c.setIncrementSeedOnPlay(false);

- --
glen e. p. ropella, 971-219-3846, http://tempusdictum.com
The only way we can win is to leave before the job is done. -- George W.
Bush

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGw4UuZeB+vOTnLkoRAoLXAKDHwZkBDksWDuFnbjdQi4JHF36rwQCg23e/
y3fNrA2lFLKdYzZE/vNXVFQ=
=tnw9
-----END PGP SIGNATURE-----

ATOM RSS1 RSS2