public interface Primitive
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 |
|---|
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"; }
Syntax getSyntax()
Syntax