|
NetLogo API version 2.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tells NetLogo how to find new primitives, tells NetLogo what to call them and handles extension initialization and deconstruction. All NetLogo extensions must include a class that implements this interface.
For example:
public class FibonacciManager extends org.nlogo.api.DefaultClassManager { public void load(org.nlogo.api.PrimitiveManager primManager) { primManager.addPrimitive("first-n-fibs", new Fibonacci()); } }
Method Summary | |
void |
load(PrimitiveManager primManager)
Loads the primitives in the extension. |
void |
runOnce()
Initializes the extension. |
void |
unload()
Cleans up the extension. |
Method Detail |
public void runOnce()
public void load(PrimitiveManager primManager)
primManager
- The manager to transport the primitives to NetLogopublic void unload()
load
is called.
|
NetLogo API version 2.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |