swarm-support
[Top][All Lists]
Advanced

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

Re: Fine grained actions


From: Marcus G. Daniels
Subject: Re: Fine grained actions
Date: 04 May 2000 08:14:46 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "F" == famasce  <address@hidden> writes:

F> Done with filename 'famasce.zip'

In a model with a GUISwarm, it is necessary to use the ControlPanel to
manage the ObserverSwarm, and you can't drop any ObserverSwarm
(sub)activities out from under it.

Instead, you can use an idiom like this:

diff -w -c -r famasce/EconomyModelSwarm.m famasce1/EconomyModelSwarm.m
*** famasce/EconomyModelSwarm.m Thu May  4 09:57:38 2000
--- famasce1/EconomyModelSwarm.m        Thu May  4 09:07:46 2000
***************
*** 24,29 ****
--- 24,31 ----
  #import "EconomyModelSwarm.h"
  #import "RMAgent.h"
  
+ #import <simtoolsgui.h> // getControlPanel, setStateQuit
+ 
  @implementation EconomyModelSwarm
  
  //===================================== Creating =========================//
***************
*** 288,294 ****
           printf("\n\nEnd of simulation. \n\n");
  
           [self closeOutputFiles];
!          [[self getActivity] terminate];
                                                                                
                                        }
   }
  
--- 290,296 ----
           printf("\n\nEnd of simulation. \n\n");
  
           [self closeOutputFiles];
!          [[[getTopLevelActivity () getSwarm] getControlPanel] setStateQuit];
     }
   }
  


                  ==================================
   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.



reply via email to

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