|
NetLogo API version 3.0.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Top-level interface for primitives (commands or reporters).
Not to be implemented directly; the Command
or Reporter
interface should be used instead.
Command
,
Reporter
Method Summary | |
String |
getAgentClassString()
Returns a String which specifies in which context this primitive is allowed. |
Syntax |
getSyntax()
Returns Syntax which specifies the syntax that is acceptable for this primitive. |
Method Detail |
public String getAgentClassString()
Examples:
For a primitive that is allowed in all contexts,
String getAgentClassString() { return "OTP"; }
For a primitive that is allowed only in a turtle context,
String getAgentClassString() { return "T"; }
public Syntax getSyntax()
Syntax
|
NetLogo API version 3.0.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |