Reporter

org.nlogo.api.Reporter
trait Reporter extends PrimitiveReporter

Interface for NetLogo reporters. Reporters are primitives that return a value. All new reporters must implement this interface.

Attributes

Source
Reporter.scala
Graph
Supertypes
trait Primitive
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def report(args: Array[Argument], context: Context): AnyRef

Executes this Reporter. Called by NetLogo when this Reporter is called in a running NetLogo model.

Executes this Reporter. Called by NetLogo when this Reporter is called in a running NetLogo model.

Value parameters

args

The Arguments that were included with the command in the NetLogo code. (May be a Reporter or a constant.)

context

The current Context allows access to NetLogo internal methods.

Attributes

Returns

the object to be reported

Source
Reporter.scala

Inherited and Abstract methods

Returns Syntax which specifies the syntax that is acceptable for this primitive. Used by the compiler for type-checking.

Returns Syntax which specifies the syntax that is acceptable for this primitive. Used by the compiler for type-checking.

Attributes

Returns

the Syntax for the primitive.

See also

Syntax

Inherited from:
Primitive
Source
Primitive.scala