Command

org.nlogo.api.Command
trait Command extends PrimitiveCommand

Interface for NetLogo extension commands. Commands are primitives that do not return a value. All new commands must implement this interface.

Attributes

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

Members list

Value members

Abstract methods

def perform(args: Array[Argument], context: Context): Unit

Executes this Command. Called by NetLogo when this Command is called at run-time.

Executes this Command. Called by NetLogo when this Command is called at run-time.

Value parameters

args

the Arguments that were passed to the command. (May be a Reporter or a constant.) To evaluate arguments, use the typesafe methods in the Argument interface.

context

the current Context allows access to NetLogo internal methods

Attributes

Throws
ExtensionException

(if an extension-related problem occurs)

LogoException

(if one of the evaluated arguments throws a LogoException)

Source
Command.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