org.objectweb.proactive.core.component.adl.vnexportation
Class ExportedVirtualNodesBuilderImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.component.adl.vnexportation.ExportedVirtualNodesBuilderImpl
All Implemented Interfaces:
ExportedVirtualNodesBuilder

public class ExportedVirtualNodesBuilderImpl
extends java.lang.Object
implements ExportedVirtualNodesBuilder

An implementation of the ExportedVirtualNodesBuilder interface. This class performs a logical composition of the exported virtual nodes of the components ADL.

Author:
Matthieu Morel

Constructor Summary
ExportedVirtualNodesBuilderImpl()
           
 
Method Summary
 void compose(java.lang.String componentName, ExportedVirtualNode[] exportedVirtualNodes, VirtualNode currentComponentVN)
           Composes exported virtual nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportedVirtualNodesBuilderImpl

public ExportedVirtualNodesBuilderImpl()
Method Detail

compose

public void compose(java.lang.String componentName,
                    ExportedVirtualNode[] exportedVirtualNodes,
                    VirtualNode currentComponentVN)
             throws org.objectweb.fractal.adl.ADLException
Description copied from interface: ExportedVirtualNodesBuilder

Composes exported virtual nodes. This is a way to reorganize the physical deployment of the components.

The exported virtual nodes that do not have parents (they are not themselves exported) *must* correspond to the virtual nodes specified in the proactive deployment descriptor. They must also match cardinalities : if an exported virtual node has a "multiple" cardinality", it must be corresponding to a "multiple" virtual node, i.e. a virtual node that contains several nodes.

This method validates and performs the linkage, keeps it in memory, and allows hierarchical composition of exported virtual nodes.

Specified by:
compose in interface ExportedVirtualNodesBuilder
Parameters:
componentName - the name of the component
exportedVirtualNodes - an array of the exported virtual nodes elements for this component
currentComponentVN - the virtual node to export
Throws:
org.objectweb.fractal.adl.ADLException


Copyright 2001-2005 INRIA All Rights Reserved.