[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A matter of execution time.
From: |
Fabio Mascelloni |
Subject: |
Re: A matter of execution time. |
Date: |
Tue, 16 Mar 1999 17:59:20 +0100 |
"Marcus G. Daniels" wrote:
> >>>>> "FM" == Fabio Mascelloni <address@hidden> writes:
>
> FM> In my simulation the actions each Agent have to perform are so
> FM> complex that at each simulation step,the schedule in which they
> FM> are inserted in the ModelSwarm take some seconds to complete.As a
> FM> consequence, the user interface gets updated with an annoying
> FM> delay. So for example,if I push the 'Stop' button on the
> FM> processContol panel,the simulation stops after about 10 seconds!
> FM> Could you suggest me a solution to this problem?
>
> Break out each step into scheduled sub-steps. Swarm is intended to
> support fine-grained actions..
>
>
Sorry, but because of my still superficial knowledge of Swarm, often I
don't understand.
this's the schedule of actions in my ModelSwarm:
msActionGroup=[ActionGroup create:[self getZone]];
[msActionGroup createActionForEach: agentList message:
M(processMessage)]; //this is the action that takes a lot to complete
[msActionGroup createActionTo : self message:
M(formCoalitions)];
[msActionGroup createActionForEach: agentList message:
M(decideAction)];
[msActionGroup createActionTo : self message:
M(shareTotalProduct)];
msSchedule=[Shedule createBegin:[self getZone]];
[msSchedule setRepeatInterval:1];
msSchedule[msSchedule createEnd];
[msSchedule at: 0 createAction: msActionGroup];
ObserverSwarm schedule is simply:
obActionGroup=[ActionGroup create:[self getZone]];
[obActionGroup createActionTo:actionCache message: M(doTkEvents)];
obSchedule=[Schedule createBegin:[self getZone]];
[obSchedule setRepeatInterval: displayFrequency]; //displayFrequency = =1
obSchedule=[obSchedule createEnd];
[obSchedule at:0 createActionTo: obActionGroup];
What do I have to change or add?
Thanks,Fabio.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- A matter of execution time., Fabio Mascelloni, 1999/03/16
- Re: A matter of execution time., Marcus G. Daniels, 1999/03/16
- Re: A matter of execution time.,
Fabio Mascelloni <=
- Re: A matter of execution time., Marcus G. Daniels, 1999/03/16
- R package on IRIX 6.5, Jayshree Sarma, 1999/03/16
- Re: R package on IRIX 6.5, Marcus G. Daniels, 1999/03/16
- Re: R package on IRIX 6.5, Jayshree Sarma, 1999/03/18
- Re: R package on IRIX 6.5, Marcus G. Daniels, 1999/03/18
- Swarm-1.4.1 on IRIX 6.5, Jayshree Sarma, 1999/03/18
- Re: Swarm-1.4.1 on IRIX 6.5, Marcus G. Daniels, 1999/03/18
- Re: Swarm-1.4.1 on IRIX 6.5, Jayshree Sarma, 1999/03/18
- Re: Swarm-1.4.1 on IRIX 6.5, Marcus G. Daniels, 1999/03/18
- Re: Swarm-1.4.1 on IRIX 6.5, Jayshree Sarma, 1999/03/18