java.lang.Object org.nlogo.api.DefaultReporter
public abstract class DefaultReporter
Partial implementation of Reporter provides common implementations
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
"OTPL"
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()