public interface ClassManager
Method Summary | |
---|---|
List<String> |
additionalJars()
|
void |
clearAll()
Clear any stored state |
StringBuilder |
exportWorld()
Write any state needed to restore the world. |
void |
importWorld(List<String[]> lines,
ExtensionManager reader,
ImportErrorHandler handler)
Reload any state saved in an export world file |
void |
load(PrimitiveManager primManager)
Loads the primitives in the extension. |
ExtensionObject |
readExtensionObject(ExtensionManager reader,
String typeName,
String value)
Return a new NetLogo ExtensionObject |
void |
runOnce(ExtensionManager em)
Initializes the extension. |
void |
unload()
Cleans up the extension. |
Method Detail |
---|
void runOnce(ExtensionManager em) throws ExtensionException
ExtensionException
void load(PrimitiveManager primManager) throws ExtensionException
primManager
- The manager to transport the primitives to NetLogo
ExtensionException
void unload() throws ExtensionException
load
is called and once
before NetLogo is closed or another model is opened.
ExtensionException
ExtensionObject readExtensionObject(ExtensionManager reader, String typeName, String value) throws ExtensionException, CompilerException
reader
- An interface that allows the extension to read NetLogo objectstypeName
- The type of ExtensionObject to be returnedvalue
- The string representation of the object
ExtensionException
CompilerException
StringBuilder exportWorld()
void importWorld(List<String[]> lines, ExtensionManager reader, ImportErrorHandler handler) throws ExtensionException
lines
- 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
ExtensionException
void clearAll()
List<String> additionalJars()