|
|||||||||||
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.LinkedVirtualNode
This class is a link of a chained list of virtual nodes. An instance specifies :
- the name of the component which defines it
- the name of this virtual node
- if it is part of a virtual node composition (i.e. a "composingVirtualNode in the ADL) :
a reference on a "composer" virtual node
- if it is a composer of other virtual nodes (i.e. an "exportedVirtualNode" in the ADL) :
references on "composing" virtual nodes
The highest virtual node in the hierarchy of composed virtual nodes gives its name to all underlying
virtual nodes. This name can be retreived by the method getExportedVirtualNodeNameAfterComposition()
.
LinkedVirtualNode elements inherit from the multiplicity of their composing nodes : if at least one of them is multiple, then this LinkedVirtualNode is multiple
Field Summary | |
static java.lang.String |
EMPTY_COMPONENT_NAME
|
static java.lang.String |
EMPTY_VIRTUAL_NODE_NAME
|
Constructor Summary | |
LinkedVirtualNode(java.lang.String componentName,
java.lang.String virtualNodeName)
Constructor |
Method Summary | |
boolean |
addComposingVirtualNode(LinkedVirtualNode vn)
Adds a composing virtual node |
java.lang.String |
getCompleteNameBeforeComposition()
|
LinkedVirtualNode |
getComposer()
|
java.util.List |
getComposingVirtualNodes()
Getter for the composing virtual nodes |
java.lang.String |
getComposingVirtualNodesAsString()
Returns a String representation of the composing virtual nodes |
java.lang.String |
getDefiningComponentName()
Returns the component that defined this linked virtual node |
java.lang.String |
getExportedNameBeforeComposition()
|
java.lang.String |
getExportedVirtualNodeNameAfterComposition()
|
java.lang.String |
getVirtualNodeNameBeforeComposition()
|
boolean |
isComposedFrom(java.lang.String componentName,
java.lang.String virtualNodeName)
|
boolean |
isExported()
Checks whether this virtual node is exported |
boolean |
isMultiple()
Getter for cardinality |
boolean |
isSelfExported()
|
void |
setMultiple(boolean yes)
Setter for cardinality |
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 EMPTY_COMPONENT_NAME
public static final java.lang.String EMPTY_VIRTUAL_NODE_NAME
Constructor Detail |
public LinkedVirtualNode(java.lang.String componentName, java.lang.String virtualNodeName)
componentName
- the name of the component which defines this virtual nodevirtualNodeName
- the name of the virtual nodeMethod Detail |
public boolean addComposingVirtualNode(LinkedVirtualNode vn)
vn
- a composing virtual node
public java.util.List getComposingVirtualNodes()
public java.lang.String getComposingVirtualNodesAsString()
public java.lang.String getVirtualNodeNameBeforeComposition()
public java.lang.String getCompleteNameBeforeComposition()
public java.lang.String getExportedVirtualNodeNameAfterComposition()
public java.lang.String getExportedNameBeforeComposition()
public void setMultiple(boolean yes)
yes
- if true the cardinality is set to multiplepublic boolean isMultiple()
public boolean isExported()
public java.lang.String getDefiningComponentName()
public boolean isSelfExported()
public boolean isComposedFrom(java.lang.String componentName, java.lang.String virtualNodeName)
componentName
- name of the componentvirtualNodeName
- name of the virtual node
public LinkedVirtualNode getComposer()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |