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.
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 Reporter
.
Executes this Reporter
. Called by NetLogo when this Reporter
is
called in a running NetLogo model.
The Argument
s that were included with
the command in the NetLogo code. (May be a Reporter
or a constant.)
The current Context
allows access to NetLogo internal methods.
the object to be reported
Interface for NetLogo reporters. Reporters are primitives that return a value. All new reporters must implement this interface.