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
Top-level interface for primitives (commands or reporters). Not to be implemented directly; the
Command
orReporter
interface should be used instead.Reporter
,Command