public class ConnectorReification extends Object
Modifier and Type | Field and Description |
---|---|
static org.eclipse.uml2.uml.TemplateBinding |
binding |
Constructor and Description |
---|
ConnectorReification() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.uml2.uml.Port |
getConnectorPort(org.eclipse.uml2.uml.EncapsulatedClassifier connectorType,
org.eclipse.uml2.uml.Port otherPort,
boolean isAssembly)
Find a port that would match a connection
|
static org.eclipse.uml2.uml.ConnectorEnd |
oppositeConnEnd(org.eclipse.uml2.uml.Connector connection,
org.eclipse.uml2.uml.ConnectorEnd myEnd)
Simple helper function
|
static void |
propagateNodeAllocation(org.eclipse.uml2.uml.Class composite,
org.eclipse.uml2.uml.InstanceSpecification compositeIS,
org.eclipse.uml2.uml.Slot partSlot)
Propagate node allocation into a reified connector (identified via its part)
The allocation algorithm works as follows
|
static org.eclipse.uml2.uml.Property |
reifyConnector(LazyCopier copier,
org.eclipse.uml2.uml.Class tmComponent,
org.eclipse.uml2.uml.Property smConnectorPart,
org.eclipse.uml2.uml.InstanceSpecification tmIS)
Reify a connector already represented in form of a part (useful for n-ary connectors)
|
static org.eclipse.uml2.uml.Property |
reifyConnector(LazyCopier copier,
org.eclipse.uml2.uml.Class tmComponent,
String name,
org.eclipse.uml2.uml.Connector smConnector,
org.eclipse.uml2.uml.InstanceSpecification tmIS)
Reify a connector
|
public static org.eclipse.uml2.uml.Port getConnectorPort(org.eclipse.uml2.uml.EncapsulatedClassifier connectorType, org.eclipse.uml2.uml.Port otherPort, boolean isAssembly)
connectorType
- a connector type, i.e. a component with portsthe
- port on the other side of the connectionpublic static org.eclipse.uml2.uml.Property reifyConnector(LazyCopier copier, org.eclipse.uml2.uml.Class tmComponent, org.eclipse.uml2.uml.Property smConnectorPart, org.eclipse.uml2.uml.InstanceSpecification tmIS) throws TransformationException
copier
- a lazy copiertmComponent
- containing composite in target target modelsmConnectorPart
- Part representing the connectortmIS
- target instance specification of the composite passed as 2nd parameter
(required for obtaining node allocation and choosing the right implementation.
Main use: decide whether a distributed implementation of an interaction component needs to be used)TransformationException
public static org.eclipse.uml2.uml.Property reifyConnector(LazyCopier copier, org.eclipse.uml2.uml.Class tmComponent, String name, org.eclipse.uml2.uml.Connector smConnector, org.eclipse.uml2.uml.InstanceSpecification tmIS) throws TransformationException
copier
- The coper from source to target modetmComponent
- containing composite in target targetname
- name of the connectorsmConnector
- connector element within the source modeltmIS
- target instance specification of the composite passed as 2nd parameter
(required for obtaining node allocation and choosing the right implementation.
Main use: decide whether a distributed implementation of an interaction component needs to be used)TransformationException
public static org.eclipse.uml2.uml.ConnectorEnd oppositeConnEnd(org.eclipse.uml2.uml.Connector connection, org.eclipse.uml2.uml.ConnectorEnd myEnd)
part
- connection
- public static void propagateNodeAllocation(org.eclipse.uml2.uml.Class composite, org.eclipse.uml2.uml.InstanceSpecification compositeIS, org.eclipse.uml2.uml.Slot partSlot)
composite
- the composite class (e.g. system) in which a connector is reifiedcompositeIS
- the associated instance specificationpartSlot
- the slot associated with the part for which nodes are
allocated.Copyright © 2016 Eclipse foundation. All rights reserved.