NetLogo API
version 3.0.2

org.nlogo.api
Interface ExtensionManager


public interface ExtensionManager

ExtensionManager provides some methods that can be used in runOnce


Method Summary
 void initializeHubNet()
          Intializes the HubNetManager, this method should be called if the extension intends to use HubNet.
 Object retrieveObject()
          Returns the stored object.
 void storeObject(Object obj)
          Stores an object for the extension that can be retrieved in runOnce if the extension is loaded again.
 

Method Detail

storeObject

public void storeObject(Object obj)
Stores an object for the extension that can be retrieved in runOnce if the extension is loaded again. This is useful if the extension has initialization it needs to perform that should only happen once, even if the extension is loaded multiple times.

Parameters:
obj - the object to be stored

retrieveObject

public Object retrieveObject()
Returns the stored object.

Returns:
the stored object

initializeHubNet

public void initializeHubNet()
Intializes the HubNetManager, this method should be called if the extension intends to use HubNet.


NetLogo API
version 3.0.2