org.ow2.clif.scenario.isac.egui.plugins
Class PluginManager

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.plugins.PluginManager

public class PluginManager
extends java.lang.Object

Manage the list of available ISAC plug-ins

Author:
JC Meillaud, A Peyrard, Joan Chaumont, Bruno Dillenseger

Constructor Summary
PluginManager()
          Constructor
 
Method Summary
 NodeDescription createNodeDescription(java.lang.String plugin, java.lang.String type, java.lang.String name)
          Create a new node description for a selected action of a selected plug-in
 java.util.Vector<NodeDescription> createNodesDescriptions(java.lang.String type)
          Create a new vector with an entry for each actions, parameters values will be set to null
 java.util.Vector<NodeDescription> createNodesDescriptionsByPlugins(java.util.Vector<java.lang.String> pluginsName, java.lang.String type)
          Create a new vector with an entry for each actions, parameters values will be set to null But only action of the plug-in define in the vector which is given
 PluginDescription getDescription(java.lang.String pluginName)
          Return the plug-in description for a given name
 java.lang.String getPluginActionGUIKey(java.lang.String plugin, java.lang.String type, java.lang.String action)
          This method return the GUI key of a specified action of a specified plug-in
 java.util.Vector<java.lang.String> getPluginActionHelp(java.lang.String plugin, java.lang.String type, java.lang.String action)
          This method return the help lines of the action of a selected plugin
 java.lang.String[] getPluginsName()
           
 void initialisePluginsTable(PluginGUIManager pluginGUIManager)
          This method build the table which store the plug-ins descriptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager()
Constructor

Method Detail

initialisePluginsTable

public void initialisePluginsTable(PluginGUIManager pluginGUIManager)
This method build the table which store the plug-ins descriptions

Parameters:
pluginGUIManager -

createNodesDescriptions

public java.util.Vector<NodeDescription> createNodesDescriptions(java.lang.String type)
Create a new vector with an entry for each actions, parameters values will be set to null

Parameters:
type - The type of the action searched
Returns:
The nodes descriptions

createNodeDescription

public NodeDescription createNodeDescription(java.lang.String plugin,
                                             java.lang.String type,
                                             java.lang.String name)
Create a new node description for a selected action of a selected plug-in

Parameters:
plugin - The name of the plug-in
type - The type of the action
name - The name of the action
Returns:
The node description for this action

createNodesDescriptionsByPlugins

public java.util.Vector<NodeDescription> createNodesDescriptionsByPlugins(java.util.Vector<java.lang.String> pluginsName,
                                                                          java.lang.String type)
Create a new vector with an entry for each actions, parameters values will be set to null But only action of the plug-in define in the vector which is given

Parameters:
pluginsName - The names of the plug-ins
type - The type of the action searched
Returns:
The nodes descriptions

getPluginActionHelp

public java.util.Vector<java.lang.String> getPluginActionHelp(java.lang.String plugin,
                                                              java.lang.String type,
                                                              java.lang.String action)
This method return the help lines of the action of a selected plugin

Parameters:
plugin - The plug-in name
type - The type of the action
action - The name of the action
Returns:
The help lines of the action

getPluginActionGUIKey

public java.lang.String getPluginActionGUIKey(java.lang.String plugin,
                                              java.lang.String type,
                                              java.lang.String action)
This method return the GUI key of a specified action of a specified plug-in

Parameters:
plugin - The plug-in name
type - The action type
action - The action name
Returns:
The GUI key, or null if the specified plug-in name/type/action could not be found

getPluginsName

public java.lang.String[] getPluginsName()
Returns:
String[] plug-ins names

getDescription

public PluginDescription getDescription(java.lang.String pluginName)
Return the plug-in description for a given name

Parameters:
pluginName - the plug-in name
Returns:
PluginDescription