NetLogo API
version 2.0.1

org.nlogo.api
Class PrimitiveManager

java.lang.Object
  extended byorg.nlogo.api.PrimitiveManager

public class PrimitiveManager
extends Object

PrimitiveManager ships extension primitives and associated names to NetLogo.


Constructor Summary
PrimitiveManager()
           
 
Method Summary
 void addConfigurable(Configurable config)
          Internal use only.
 void addPrimitive(String name, Primitive prim)
          Adds a new primitive.
 Iterator getConfigurables()
          Internal use only.
 Primitive getPrimitive(String name)
          Returns the primitive associated with a name.
 Iterator getPrimitiveNames()
          Returns the names of all imported primitives.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveManager

public PrimitiveManager()
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

getPrimitive

public Primitive getPrimitive(String name)
Returns the primitive associated with a name.

Parameters:
name - the name of the primitive
Returns:
the primitive associated with name, or null if there isn't on

getPrimitiveNames

public Iterator getPrimitiveNames()
Returns the names of all imported primitives.


addConfigurable

public void addConfigurable(Configurable config)
Internal use only.


getConfigurables

public Iterator getConfigurables()
Internal use only.


NetLogo API
version 2.0.1