Package org.nlogo.nvm

Examples of org.nlogo.nvm.Activation


    return super.toString() + ":" + procedure.name;
  }

  @Override
  public Object report(Context context) throws LogoException {
    Activation newActivation =
        new Activation(procedure, context.activation, context.ip);
    for (int i = 0; i < (procedure.args.size() - procedure.localsCount); i++) {
      newActivation.args[i] = args[i].report(context);
    }
    Object result = context.callReporterProcedure(newActivation);
    if (result == null) {
View Full Code Here


    return super.toString() + ":" + procedure.name;
  }

  @Override
  public void perform(Context context) throws LogoException {
    Activation newActivation = new Activation(procedure, context.activation, next);
    for (int i = 0; i < (procedure.args.size() - procedure.localsCount); i++) {
      newActivation.args[i] = args[i].report(context);
    }
    context.activation = newActivation;
    context.ip = 0;
View Full Code Here

TOP

Related Classes of org.nlogo.nvm.Activation

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.