//  /* Marcus Daniels Dec 24, 1999 
//  In ftp://ftp.santafe.edu/pub/swarm/2.0.1-fixes/diffs the patch
//  java-xprint.diff adds SwarmEnvironment methods for running the Swarm describe: 
//  methods.  The Windows stuff in the directory above is also updated.

//  Below is an example of how to make use of these methods.  In Objective
//  C Swarm `xprint' is a macro that calls the describe method on the
//  object, and `xfprint' calls the describe methods for each member
//  in a collection, where a collection is the argument to xfprint. 

//  Note that if you are using SUN JDK with Windows, you'll need to run
//  your model under the debugger so that the output stream gets set up
//  right.  Like this:

//  $ JAVASWARMGDB=gdb javaswarm TestZonePrint
//  (gdb) run
//  */

import swarm.Globals;
import swarm.defobj.ZoneImpl;
import swarm.defobj.Zone;
import swarm.objectbase.SwarmObjectImpl;

public class TestZonePrint {
  static public void main (String args []) {
    Globals.env.initSwarm ("TestZonePrint", "0.0", "mgd@swarm.org", args);

    Zone newZone = new ZoneImpl (Globals.env.globalZone);

    new SwarmObjectImpl (newZone);
  
    Globals.env.xprint (newZone);
    Globals.env.xfprint (newZone.getPopulation ());
  }
}







