i don't mean to be a jerk, but did you consider
for (i=5; i<11; i++)
{
modelSchedule.at$createFAction(i, init ());
}
I have to take your word for the claims about the java scheduling, but
I am absolutely sure it works in objc because in the ASM model
(http;//artstkmkt.sourceforge.net) I have this thing to initialize
the model conditions
{
int i;
for (i = 0; i < 501; i++)
[startupSchedule at: 0 createActionTo: self
message:M(doWarmupStep)];
}
that puts 500 things onto the schedule at 0, but you can spread them
out if you want.
pj
Mervin Chan wrote:
I understand that to schedule an Agent's Event,
I write:
modelSchedule.at$createFAction(0, init ());
in my modelswarm.
The abovce means that to run the method init() every time stamp.
similarly, writing
modelSchedule.at$createFAction(5, init ());
would mean that to run init() from T=5 onwards.
My question is, is there a way to define the schedule such that, I
can make it run only in a range of timestamps i define, such as from
T=5 to T=10.
--
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
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support