org.nlogo.api
Class DefaultClassManager

java.lang.Object
  extended by org.nlogo.api.DefaultClassManager
All Implemented Interfaces:
ClassManager

public abstract class DefaultClassManager
extends Object
implements ClassManager

An abstract, partial implementation of ClassManager that implements runOnce() and unload() with empty methods.

See Also:
ClassManager

Constructor Summary
DefaultClassManager()
           
 
Method Summary
abstract  void load(PrimitiveManager primManager)
          Loads the primitives in the extension.
 ExtensionObject readExtensionObject(ExtensionManager em, String typeName, String value)
          Return a new NetLogo ExtensionObject instance of the specified typeName, initialized by stringrep
 void runOnce(ExtensionManager em)
          Empty implementation.
 void unload()
          Empty implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClassManager

public DefaultClassManager()
Method Detail

runOnce

public void runOnce(ExtensionManager em)
             throws ExtensionException
Empty implementation.

Specified by:
runOnce in interface ClassManager
Throws:
ExtensionException

load

public abstract void load(PrimitiveManager primManager)
                   throws ExtensionException
Loads the primitives in the extension. This is called once per model compilation.

Specified by:
load in interface ClassManager
Parameters:
primManager - The manager to transport the primitives to NetLogo
Throws:
ExtensionException

unload

public void unload()
            throws ExtensionException
Empty implementation.

Specified by:
unload in interface ClassManager
Throws:
ExtensionException

readExtensionObject

public ExtensionObject readExtensionObject(ExtensionManager em,
                                           String typeName,
                                           String value)
                                    throws ExtensionException
Description copied from interface: ClassManager
Return a new NetLogo ExtensionObject instance of the specified typeName, initialized by stringrep

Specified by:
readExtensionObject in interface ClassManager
Throws:
ExtensionException