|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.companycontrol.plugin.PluginLoader
The Loader Class for the Plugins. On Construction the Loader Class searches for plugins and loads them.
| Field Summary | |
private int |
anzahl
Actual Amount of Plugins |
private CompanyControlClient |
client
The CompanyControlClient used to send Messages from the Plugins |
private int |
companyID
The Company ID |
private java.util.HashMap |
plugins
HashMap to Store the Plugins |
| Constructor Summary | |
PluginLoader(CompanyControlClient client)
Constructor |
|
| Method Summary | |
private void |
addPackagePlugin(java.lang.String name,
java.lang.String path)
Manually adds a Plugin |
int |
getCompanyID()
accessor method for the Company ID. |
PluginBase[] |
getPlugins()
Returns all Plugins |
PluginBase |
loadPlugin(java.lang.String path)
loads a Plugin (fails silently) |
void |
setCompanyID(int ID)
Sets the Company ID |
void |
setIDHashMap(java.util.HashMap kerneltoshuttle)
Sets the KernelIDtoShuttleAgentID HashMap for all Plugins. |
void |
shuttleChosen(int ID)
Invoced when the User selects a Shuttle. |
void |
stationChosen(int ID)
Invoced when the User select a Station. |
void |
updateAllPlugins(de.upb.swtpra.kernel.visualisation.RemoteObj msg)
Invoces the Method update on all Plugins with the given Messge |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.HashMap plugins
private int anzahl
private CompanyControlClient client
private int companyID
| Constructor Detail |
public PluginLoader(CompanyControlClient client)
client - | Method Detail |
private void addPackagePlugin(java.lang.String name,
java.lang.String path)
name - The Namepath - the path of the Pluginpublic PluginBase loadPlugin(java.lang.String path)
path -
public PluginBase[] getPlugins()
public void setCompanyID(int ID)
ID - public int getCompanyID()
public void updateAllPlugins(de.upb.swtpra.kernel.visualisation.RemoteObj msg)
msg - The Message for Invocationpublic void shuttleChosen(int ID)
ID - public void stationChosen(int ID)
ID - public void setIDHashMap(java.util.HashMap kerneltoshuttle)
kerneltoshuttle -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||