Package org.nlogo.api

Examples of org.nlogo.api.Syntax


    this.command = command;
  }

  @Override
  public Syntax syntax() {
    Syntax s = command.getSyntax();
    String[] acs = command.getAgentClassString().split(":");
    if (acs[0].length() < 4) {
      acs[0] = Syntax.convertOldStyleAgentClassString(acs[0]);
    }
    if (acs.length >= 2) {
      if (acs[1].length() < 4) {
        acs[1] = Syntax.convertOldStyleAgentClassString(acs[1]);
      }
      return Syntax.commandSyntax
          (s.right(), s.dfault(), acs[0], acs[1], command.getSwitchesBoolean());
    } else {
      return Syntax.commandSyntax
          (s.right(), s.dfault(), acs[0], null, command.getSwitchesBoolean());
    }
  }
View Full Code Here

TOP

Related Classes of org.nlogo.api.Syntax

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.