Returns a String which specifies which agents can run this primitive.
Returns a String which specifies which agents can run this primitive. To specify observer use "O", to specify Turtle use "T", to specify Patch use "P", to specify link use "L". To use combinations, put them togther.
Example of a primitive allowed for all agents:
String getAgentClassString() { return "OTPL"; }
Example of a primitive allowed only for turtles:
String getAgentClassString() { return "T"; }
a String specifying the acceptable agent types.
Specifies whether NetLogo should "switch" to another turtle after running this command.
Specifies whether NetLogo should "switch" to another turtle after running this command.
Generally, this should be true if this Command
affects the state of the world
(changing a variable, changing graphics, etc.)
true
if a switch should occur, false
otherwise.
Returns Syntax which specifies the syntax that is acceptable for this primitive.
Returns Syntax which specifies the syntax that is acceptable for this primitive. Used by the compiler for type-checking.
the Syntax for the primitive.
Syntax
Executes this Command
.
Executes this Command
. Called by NetLogo when this Command
is called at run-time.
the Argument
s that were passed to
the command. (May be a Reporter
or a constant.)
To evaluate arguments, use the typesafe methods in the Argument
interface.
the current Context
allows access to NetLogo internal methods
(if an extension-related problem occurs)
LogoException(if one of the evaluated arguments throws a LogoException)
Interface for NetLogo extension commands. Commands are primitives that do not return a value. All new commands must implement this interface.