java.lang.Objectorg.nlogo.api.DefaultClassManager
public abstract class DefaultClassManager
| Constructor Summary | |
|---|---|
DefaultClassManager()
|
|
| Method Summary | |
|---|---|
List<String> |
additionalJars()
|
void |
clearAll()
Default does nothing |
StringBuilder |
exportWorld()
Default exports nothing |
void |
importWorld(List<String[]> lines,
ExtensionManager reader,
ImportErrorHandler handler)
Default loads nothing |
abstract void |
load(PrimitiveManager primManager)
Loads the primitives in the extension. |
ExtensionObject |
readExtensionObject(ExtensionManager em,
String typeName,
String value)
Default defines no extension objects, thus, we cannot read any extension objects |
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 |
|---|
public DefaultClassManager()
| Method Detail |
|---|
public void runOnce(ExtensionManager em)
throws ExtensionException
runOnce in interface ClassManagerExtensionException
public abstract void load(PrimitiveManager primManager)
throws ExtensionException
load in interface ClassManagerprimManager - The manager to transport the primitives to NetLogo
ExtensionException
public void unload()
throws ExtensionException
unload in interface ClassManagerExtensionExceptionpublic StringBuilder exportWorld()
exportWorld in interface ClassManager
public void importWorld(List<String[]> lines,
ExtensionManager reader,
ImportErrorHandler handler)
throws ExtensionException
importWorld in interface ClassManagerlines - A list of lines exported by this extension the lines are broken up into an array delimited by commasreader - An interface that allows the extension to read NetLogo objectshandler - An interface that allows the extensions to report non-fatal errors during the import
ExtensionExceptionpublic void clearAll()
clearAll in interface ClassManager
public ExtensionObject readExtensionObject(ExtensionManager em,
String typeName,
String value)
throws ExtensionException,
CompilerException
readExtensionObject in interface ClassManagerem - An interface that allows the extension to read NetLogo objectstypeName - The type of ExtensionObject to be returnedvalue - The string representation of the object
ExtensionException
CompilerExceptionpublic List<String> additionalJars()
additionalJars in interface ClassManager