|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.util.extension.manager.CoreCPFPluginManager
public class CoreCPFPluginManager
This plugin manager manipulates the panels for
Conditional Probability Function. This is done virtually
by doing the same of CorePluginNodeManager, but
only for pre-existing nodes.
| Field Summary | |
|---|---|
static String |
PARAMETER_CLASS
Name of the extension point parameter for node's class (e.g. |
static String |
PARAMETER_DESCRIPTION
Name of the extension point parameter for this new node type's description (used as tool tip text) |
static String |
PARAMETER_ICON
Name of the extension point parameter for icons of the split button |
static String |
PARAMETER_NAME
Name of the extension point parameter for the name of this new node type (e.g. |
static String |
PARAMETER_PANEL_BUILDER
Name of the extension point parameter for a subclass/implementation of IProbabilityFunctionPanelBuilder @see IProbabilityFunctionPanelBuilder |
| Constructor Summary | |
|---|---|
protected |
CoreCPFPluginManager()
Default constructor is protected, so that it is easier to extend. |
| Method Summary | |
|---|---|
Collection<INodeClassDataTransferObject> |
getAllLoadedPluginNodes()
|
String |
getMainExtensionPointID()
ID of the plugin where we can find panel declarations |
protected Map<String,Collection<INodeClassDataTransferObject>> |
getNodeNameToDtoMap()
this is a map to store the informations associated to nodes and its CPF |
Collection<INodeClassDataTransferObject> |
getPluginInformation(String nodeClassName)
Obtains all plugin informations associated with nodeClassName |
UnBBayesPluginContextHolder |
getUnbbayesPluginContextHolder()
|
void |
loadPlugin()
This is equivalent to reloadPlugin() |
static CoreCPFPluginManager |
newInstance()
Obtains a singleton instance of CoreCPFPluginManager |
void |
reloadPlugin()
UnBBayesPluginContextHolder will be used to load the plugins
and fill the plugin informations that can be obtained by
{@link #getPluginInformation(String) |
protected void |
setMainExtensionPointID(String mainExtensionPointID)
ID of the plugin where we can find panel declarations |
protected void |
setNodeNameToDtoMap(Map<String,Collection<INodeClassDataTransferObject>> nodeNameToDtoMap)
this is a map to store the informations associated to nodes and its CPF |
void |
setUnbbayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_CLASS
ProbabilisticNode, DecisionNode, UtilityNode, ContinuousNode)...
public static final String PARAMETER_NAME
public static final String PARAMETER_DESCRIPTION
public static final String PARAMETER_ICON
public static final String PARAMETER_PANEL_BUILDER
IProbabilityFunctionPanelBuilder @see IProbabilityFunctionPanelBuilder
| Constructor Detail |
|---|
protected CoreCPFPluginManager()
newInstance() in order to create a new instance.
| Method Detail |
|---|
public static CoreCPFPluginManager newInstance()
CoreCPFPluginManager
public UnBBayesPluginContextHolder getUnbbayesPluginContextHolder()
public void setUnbbayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
unbbayesPluginContextHolder - the unbbayesPluginContextHolder to setpublic Collection<INodeClassDataTransferObject> getAllLoadedPluginNodes()
public Collection<INodeClassDataTransferObject> getPluginInformation(String nodeClassName)
nodeClassName -
getNodeNameToDtoMap()
public void loadPlugin()
throws IOException
reloadPlugin()
IOException - : thrown by reloadPlugin()reloadPlugin()
public void reloadPlugin()
throws IOException
UnBBayesPluginContextHolder will be used to load the plugins
and fill the plugin informations that can be obtained by
{@link #getPluginInformation(String)
IOException - : when UnBBayesPluginContextHolder.publishPlugins() failsprotected void setMainExtensionPointID(String mainExtensionPointID)
mainExtensionPointID - protected Map<String,Collection<INodeClassDataTransferObject>> getNodeNameToDtoMap()
protected void setNodeNameToDtoMap(Map<String,Collection<INodeClassDataTransferObject>> nodeNameToDtoMap)
nodeNameToDtoMap - the nodeNameToDtoMap to setpublic String getMainExtensionPointID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||