|
NetLogo API version 2.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nlogo.api.PrimitiveManager
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 |
public PrimitiveManager()
Method Detail |
public void addPrimitive(String name, Primitive prim)
name
- the name of the primitive that will be use in NetLogo codeprim
- an instance of Primitive
to associate with name
public Primitive getPrimitive(String name)
name
- the name of the primitive
name
, or null
if
there isn't onpublic Iterator getPrimitiveNames()
public void addConfigurable(Configurable config)
public Iterator getConfigurables()
|
NetLogo API version 2.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |