Package org.nlogo.nvm

Examples of org.nlogo.nvm.Procedure


  public Procedure compileForRun(String source, org.nlogo.nvm.Context context,
                                 boolean reporter)
      throws CompilerException {
    String key = source + "@" + context.activation.procedure.args.size() +
        "@" + context.agentBit;
    Procedure proc = codeBits.get(key);
    if (proc == null) {
      proc = evaluator.compileForRun(source, context, reporter);
      codeBits.put(key, proc);
    }
    return proc;
View Full Code Here


      if(modelPath == null) {
        throw new EngineException(context, this, "no model loaded");
      }
      String previewPath = modelPath.substring(0, modelPath.lastIndexOf(".nlogo")) + ".png";
      String escaped = org.nlogo.api.StringUtils.escapeString(previewPath);
      Procedure procedure =
          workspace.compileForRun
              ("random-seed 0 " + workspace.previewCommands() +
                  "\nexport-view \"" + escaped + "\"" +
                  "\nprint \"GENERATED: " + escaped + "\"",
                  context, false);
View Full Code Here

TOP

Related Classes of org.nlogo.nvm.Procedure

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.