//swarm-support 8-2-1999 //this shows list creation, but I thought it was novel because it shows what xprint is for #import // initSwarm #import @interface CellModelSwarm: Swarm { id compList; } - createCompList; - getCompList; @end @implementation CellModelSwarm - createCompList { [super buildObjects]; compList = [List create: self]; return self; } - getCompList { return compList; } @end int main (int argc, const char **argv) { id obj; initSwarmBatch (argc, argv); obj = [CellModelSwarm create: globalZone]; [obj createCompList]; xprint ([obj getCompList]); } /* Local Variables: compile-command: "/opt/gnu/bin/gcc -o aboyd -g -Wno-import -L/opt/SUNWtcl/8.0/sun4/lib -R/opt/SUNWtcl/8.0/sun4/lib -L/opt/SDGblt/2.4g/lib -R/opt/SDGblt/2.4g/lib -L/opt/SDGlibffi/1.20/lib -R/opt/SDGlibffi/1.20/lib -L/opt/SDGswarm/1.4.1/lib -L/opt/SDGzlib/1.1.3/lib -L/usr/local/X11/lib -R/usr/local/X11/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/opt/SDGhdf5/1.0.1/lib -I/opt/SDGswarm/1.4.1/include aboyd.m -lanalysis -lsimtools -lsimtoolsgui -lactivity -ltkobjc -lrandom -lobjectbase -ldefobj -lcollections -lmisc -ltclobjc -ltk8.0 -ltcl8.0 -lBLT -lsocket -ldl -lnsl -L/usr/openwin/lib -lhdf5 -lpng -lz -lXpm -lX11 -lffi -lm -lobjc -lpthread -lposix4" End: */