ExtensionPrimitiveManager

org.nlogo.workspace.ExtensionPrimitiveManager

Attributes

Source
ExtensionPrimitiveManager.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addPrimitive(name: String, prim: Primitive): Unit

Adds a new primitive. The primitive remains effective as long as this model remains loaded.

Adds a new primitive. The primitive remains effective as long as this model remains loaded.

Value parameters

name

the name of the primitive that will be use in NetLogo code

prim

an instance of Primitive to associate with name

Attributes

Source
ExtensionPrimitiveManager.scala

Returns the primitive associated with a name.

Returns the primitive associated with a name.

Value parameters

name

the name of the primitive

Attributes

Returns

the primitive associated with name, or null if there isn't one

Source
ExtensionPrimitiveManager.scala
def getPrimitiveNames(): Iterator[String]

Returns the names of all imported primitives.

Returns the names of all imported primitives.

Attributes

Source
ExtensionPrimitiveManager.scala

Concrete fields

Should the primitives be automatically imported into the top-level NetLogo namespace. If false, they may only be referred to in NetLogo code as "extensionname:primitive". If true, they may also optionally be referred to simply as "primitive". The default is false.

Should the primitives be automatically imported into the top-level NetLogo namespace. If false, they may only be referred to in NetLogo code as "extensionname:primitive". If true, they may also optionally be referred to simply as "primitive". The default is false.

Attributes

Source
ExtensionPrimitiveManager.scala