hicosim.components.backend.processor
Class PluginManager
java.lang.Object
hicosim.components.backend.processor.PluginManager
- All Implemented Interfaces:
- IPluginManager
public class PluginManager
- extends java.lang.Object
- implements IPluginManager
The class PluginManager connects the hicovec-memory with plugins.
All plugins have to register themselves with the pluginmanager in order to get access to
memory. The pluginmanager is responsible to call the notify-method on
plugins.
- Author:
- Weber
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginManager
public PluginManager(IMemory newMemory)
addPlugin
public void addPlugin(IPlugin newPlugin,
int startAt,
int endAt)
- Specified by:
addPlugin
in interface IPluginManager
delPlugin
public void delPlugin(IPlugin oldPlugin)
- Specified by:
delPlugin
in interface IPluginManager
pluginGetMemory
public int pluginGetMemory(IPlugin plugin,
int address)
throws java.lang.Exception
- Specified by:
pluginGetMemory
in interface IPluginManager
- Throws:
java.lang.Exception
pluginSetMemory
public void pluginSetMemory(IPlugin plugin,
int address,
int value)
- Specified by:
pluginSetMemory
in interface IPluginManager
notifyPlugins
public void notifyPlugins(int adr,
int value)
- Specified by:
notifyPlugins
in interface IPluginManager
reFreshPlugins
public void reFreshPlugins()
- Specified by:
reFreshPlugins
in interface IPluginManager
checkPlugin
public boolean checkPlugin(IPlugin plugin)
- Specified by:
checkPlugin
in interface IPluginManager
setNewRange
public void setNewRange(IPlugin plugin,
int newStart,
int newEnd)
- Specified by:
setNewRange
in interface IPluginManager