MASON-INTEREST-L Archives

June 2005

MASON-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 14 Jun 2005 10:59:49 -0700
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Subject:
From:
"glen e. p. ropella" <[log in to unmask]>
Content-Type:
text/plain; charset=ISO-8859-1; format=flowed
In-Reply-To:
MIME-Version:
1.0
Comments:
To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (28 lines)
Sean Luke wrote:
> Right.  But remember that most of the utility Steppables (MultiStep,
> Sequence, ParallelSequence, RandomSequence, WeakStep, etc.) are our
> attempt to handle the 90% most common needs with some pre-built
> Steppable classes that we found useful.  There's nothing special about
> them.

Yes.  I understand.  That's why I didn't suggest Candy use RandomSequence.

> Note that you have to be careful here because if the Bag does not
> contain Steppables, you'll get a ClassCastException.  Also, if you
> change the Bag from within the step() method of something in the
> BagSequence, it'd effect the for-loop of the step() method in
> BagSequence in ways that you'd have to think carefully about.

Thanks for the code example.  Since most of my structures are dynamic
and are altered during the iteration of the schedule, the safety of the
collection will usually matter.  So, I typically prefer to schedule
individual Steppables.  I use the composite Steppables sparingly.

Thanks to you and the rest of the Mason crowd for your efforts.  I
appreciate them.

--
glen e. p. ropella              =><=                Hail Eris!
H: 503-630-4505                       http://ropella.net/~gepr
M: 503-971-3846                        http://tempusdictum.com

ATOM RSS1 RSS2