class ExtensionPrimitiveManager extends PrimitiveManager
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExtensionPrimitiveManager
- PrimitiveManager
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ExtensionPrimitiveManager(name: String)
Value Members
-
def
addPrimitive(name: String, prim: Primitive): Unit
Adds a new primitive.
Adds a new primitive. The primitive remains effective as long as this model remains loaded.
- name
the name of the primitive that will be use in NetLogo code
- prim
an instance of
Primitive
to associate withname
- Definition Classes
- ExtensionPrimitiveManager → PrimitiveManager
-
var
autoImportPrimitives: Boolean
- Definition Classes
- ExtensionPrimitiveManager → PrimitiveManager
-
def
getPrimitive(name: String): Primitive
Returns the primitive associated with a name.
Returns the primitive associated with a name.
- name
the name of the primitive
- returns
the primitive associated with
name
, ornull
if there isn't one
-
def
getPrimitiveNames(): Iterator[String]
Returns the names of all imported primitives.
- val name: String