Package org.nlogo.nvm

Examples of org.nlogo.nvm.Workspace


    BufferedImage image = null;

    try {

      Workspace ws = workspaceFactory.newInstance();
      String         command = "random-seed 0 " + ws.previewCommands();
      SimpleJobOwner owner   = new SimpleJobOwner("ImageGenerator", ws.world().mainRNG, Observer.class);
      ws.runCompiledCommands(owner, ws.compileCommands(command));

      image = ws.exportView();

      ws.dispose();

      return image;

    } catch(InterruptedException e) {
      //headless.dispose method can potentially throw an InterruptedException
View Full Code Here

TOP

Related Classes of org.nlogo.nvm.Workspace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.