|
NetLogo API version 3.0.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nlogo.api.DefaultReporter
Partial implementation of Reporter provides common implentations
of some methods.
Implements every method except report(...)
.
Constructor Summary | |
DefaultReporter()
|
Method Summary | |
String |
getAgentClassString()
Indicates that this primitive can be used by any agent. |
Syntax |
getSyntax()
Indicates that this reporter takes no arguments and returns a number. |
Reporter |
newInstance(String name)
Returns a new instance of this class, created by invoking the empty constructor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nlogo.api.Reporter |
report |
Constructor Detail |
public DefaultReporter()
Method Detail |
public String getAgentClassString()
getAgentClassString
in interface Primitive
"OTP"
public Syntax getSyntax()
getSyntax
in interface Primitive
Syntax.reporterSyntax( Syntax.TYPE_NUMBER )
Syntax
public Reporter newInstance(String name)
newInstance
in interface Reporter
name
- the name that was found in the code (without the JAR identifer)
(Reporter) this.getClass().newInstance()
|
NetLogo API version 3.0.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |