org.nlogo.command
Class Command

java.lang.Object
  extended by org.nlogo.command.Instruction
      extended by org.nlogo.command.Command
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BasicBlockCommand, GeneratedCommand

public abstract class Command
extends Instruction


Field Summary
 boolean switches
           
 
Fields inherited from class org.nlogo.command.Instruction
agentBits, args, blockAgentClassString, chosenEvalMethod, chosenEvalMethodMatchCost, disassembly, userSource, world
 
Constructor Summary
Command(boolean switches, String agentClassString)
           
Command(boolean switches, String agentClassString, String blockAgentClassString)
           
 
Method Summary
abstract  void perform(Context context)
           
 String toString()
           
 
Methods inherited from class org.nlogo.command.Instruction
addProcedureToInliningRecords, agentClassCanPerform, agentClassString, agentClassString, argEvalAgent, argEvalAgentSet, argEvalAgentSet, argEvalBoolean, argEvalBooleanValue, argEvalDouble, argEvalDoubleValue, argEvalIntValue, argEvalLink, argEvalList, argEvalLong, argEvalLongValue, argEvalPatch, argEvalString, argEvalTurtle, assemble, checkAgentClass, checkAgentSetClass, clone, copyFieldsFrom, displayName, dump, dump, getInlinedDepth, getInliningRecords, getPositionAndLength, getSourceEndPosition, getSourceSnippet, getSourceStartPosition, getSyntax, init, newValidDouble, newValidDouble, optimize0, optimize1, optimize2, setSourceSnippet, throwAgentClassException, token, token, tokenLimitingType, tokenLimitingType, validDouble, wasInlined, workspace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

switches

public boolean switches
Constructor Detail

Command

public Command(boolean switches,
               String agentClassString)

Command

public Command(boolean switches,
               String agentClassString,
               String blockAgentClassString)
Method Detail

perform

public abstract void perform(Context context)
                      throws LogoException
Throws:
LogoException

toString

public String toString()
Overrides:
toString in class Instruction