|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.component.adl.vnexportation.ExportedVirtualNodesList
A static container of exported / composed virtual nodes. It could be refactored as a standard Fractal component.
The virtual nodes are organized in a set of linked list, where the base structural unit
is a LinkedVirtualNode
.
Field Summary | |
static java.lang.String |
COMPOSING_VIRTUAL_NODES_REGEX
|
static java.lang.String |
EMPTY_COMPOSING_VIRTUAL_NODES
|
Method Summary | |
void |
addExportedVirtualNode(java.lang.String componentName,
java.lang.String virtualNode,
java.lang.String composingVirtualNodes)
Adds to the composition an exported virtual node with its composing virtual nodes as a String. |
static void |
checkComposingVirtualNodesSyntax(java.lang.String composingVirtualNodes)
Checks the syntax of the given String of composing virtual nodes |
void |
compose(java.lang.String componentName,
ExportedVirtualNode exportedVN,
ComposingVirtualNode composingVN,
boolean composingVNIsMultiple)
Links virtual nodes to composing nodes and to exporting node |
void |
compose(java.lang.String exportedVNComponent,
java.lang.String exportedVN,
java.lang.String baseVNComponent,
java.lang.String baseVN,
boolean composingVNIsMultiple)
Links virtual nodes to composing nodes and to exporting node |
void |
empty()
Empties the current composition |
java.util.List |
getComposingVirtualNodes(java.lang.String componentName,
java.lang.String virtualNodeName)
Returns the list of composing virtual nodes for the given exported virtual node as a list of linked virtual nodes |
java.util.List |
getExportedVirtualNodes(java.lang.String componentName)
Builds a list of the exported (and only exported) linked virtual nodes for the component whose name is given |
java.lang.String |
getExportedVirtualNodesAsString(java.lang.String componentName)
Returns a String representation of the exported virtual nodes for the named component. |
java.util.List |
getInconsistentExportedVirtualNodes()
This method helps recognizing the exported virtual nodes causing problem in the composition |
java.util.Map |
getList()
|
LinkedVirtualNode |
getNode(java.lang.String componentName,
java.lang.String virtualNodeName,
boolean createIfNotFound)
Returns the linked virtual node corresponding to the given parameters. |
static ExportedVirtualNodesList |
instance()
Returns the unique instance |
void |
removeExportedVirtualNode(java.lang.String componentName,
java.lang.String virtualNodeName)
Removes a virtual node from the composition |
void |
setComposingVirtualNodes(java.lang.String componentName,
java.lang.String virtualNodeName,
java.lang.String composingVirtualNodes)
Sets the composing virtual nodes for a given exported virtual node |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COMPOSING_VIRTUAL_NODES_REGEX
public static final java.lang.String EMPTY_COMPOSING_VIRTUAL_NODES
Method Detail |
public static ExportedVirtualNodesList instance()
public java.util.Map getList()
public void compose(java.lang.String exportedVNComponent, java.lang.String exportedVN, java.lang.String baseVNComponent, java.lang.String baseVN, boolean composingVNIsMultiple) throws org.objectweb.fractal.adl.ADLException
exportedVNComponent
- the name of the component of the exported virtual nodeexportedVN
- the name of the exported virtual nodebaseVNComponent
- the name of a component of the base (composing) virtual nodebaseVN
- the name of a base (composing) virtual nodecomposingVNIsMultiple
- true if the virtual node is multiple, false if it is single
org.objectweb.fractal.adl.ADLException
public void compose(java.lang.String componentName, ExportedVirtualNode exportedVN, ComposingVirtualNode composingVN, boolean composingVNIsMultiple) throws org.objectweb.fractal.adl.ADLException
componentName
- the name of the current component defining the exportationexportedVN
- the name of the exported virtual nodecomposingVN
- the name of the component containing a composing virtual nodecomposingVNIsMultiple
- the name of the composing virtual node inside the
org.objectweb.fractal.adl.ADLException
public LinkedVirtualNode getNode(java.lang.String componentName, java.lang.String virtualNodeName, boolean createIfNotFound)
componentName
- the name of the componentvirtualNodeName
- the name of the linked virtual nodecreateIfNotFound
- if true, a LinkedVirtualNode
is created with the given component name
and virtual node name. Exportation and composition is still empty for this newly created virtual node.
public java.util.List getExportedVirtualNodes(java.lang.String componentName)
componentName
- the name of the component whose exported virtual nodes we want
public java.lang.String getExportedVirtualNodesAsString(java.lang.String componentName)
componentName
- the name of the component we are interested in
public void addExportedVirtualNode(java.lang.String componentName, java.lang.String virtualNode, java.lang.String composingVirtualNodes)
componentName
- the name of the componentvirtualNode
- the name of the virtual nodecomposingVirtualNodes
- a String of composing virtual nodes, which should match the following
regular expression : [^.;]+[.][^.;]+[;]? (example : comp1.VN1 ; comp2.VN2)public void removeExportedVirtualNode(java.lang.String componentName, java.lang.String virtualNodeName)
componentName
- the name of the componentvirtualNodeName
- the name of the virtual nodepublic java.util.List getComposingVirtualNodes(java.lang.String componentName, java.lang.String virtualNodeName)
componentName
- the name of the componentvirtualNodeName
- the name of the exported virtual node
public void setComposingVirtualNodes(java.lang.String componentName, java.lang.String virtualNodeName, java.lang.String composingVirtualNodes)
componentName
- the name of the componentvirtualNodeName
- the name of the exported virtual nodecomposingVirtualNodes
- the list of composing virtual nodes as a String matching the following
regular expression : "[^.;]+[.][^.;]+[;]?" (example : comp1.VN1 ; comp2.VN2)public static void checkComposingVirtualNodesSyntax(java.lang.String composingVirtualNodes)
composingVirtualNodes
- a String of composing virtual nodespublic java.util.List getInconsistentExportedVirtualNodes()
public void empty()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |