NetLogo API
version 2.1.0

org.nlogo.api
Interface PrimitiveManager


public interface PrimitiveManager

PrimitiveManager ships extension primitives and associated names to NetLogo.


Method Summary
 void addConfigurable(Configurable config)
           
 void addPrimitive(String name, Primitive prim)
          Adds a new primitive.
 Iterator getConfigurables()
           
 

Method Detail

addPrimitive

public void addPrimitive(String name,
                         Primitive prim)
Adds a new primitive. The primitive remains effective as long as this model remains loaded.

Parameters:
name - the name of the primitive that will be use in NetLogo code
prim - an instance of Primitive to associate with name

addConfigurable

public void addConfigurable(Configurable config)

getConfigurables

public Iterator getConfigurables()

NetLogo API
version 2.1.0