Table of Contents

Class Node

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

A Node is computational resource upon which artifacts may be deployed for execution. Nodes can be interconnected through communication paths to define network structures. <p>From package UML::Deployments.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Node")]
public class Node : Class, INode, IDeploymentTarget, IClass, IBehavioredClassifier, IEncapsulatedClassifier, IStructuredClassifier, IClassifier, ITemplateableElement, IType, IPackageableElement, IParameterableElement, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Node
Implements
Derived
Inherited Members

Constructors

Node()

Creates a new instance

public Node()

Properties

Children

Gets the child model elements of this model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Deployment

The set of Deployments for a DeploymentTarget. <p>From package UML::Deployments.</p>

[Browsable(false)]
[XmlElementName("deployment")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("location")]
public IOrderedSetExpression<IDeployment> Deployment { get; }

Property Value

IOrderedSetExpression<IDeployment>

NestedNode

The Nodes that are defined (nested) within the Node. <p>From package UML::Deployments.</p>

[Browsable(false)]
[XmlElementName("nestedNode")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<INode> NestedNode { get; }

Property Value

IOrderedSetExpression<INode>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

CreateCommunicationPath(bool, AggregationKind, string, int, object, INode, bool, AggregationKind, string, int, object)

Creates a (binary) communication path between this node and the specified other node, with the specified navigabilities, aggregations, names, lower bounds, and upper bounds, and owned by this node's nearest package.

public ICommunicationPath CreateCommunicationPath(bool end1IsNavigable, AggregationKind end1Aggregation, string end1Name, int end1Lower, object end1Upper, INode end1Node, bool end2IsNavigable, AggregationKind end2Aggregation, string end2Name, int end2Lower, object end2Upper)

Parameters

end1IsNavigable bool

The navigability for the first end of the new communication path.

end1Aggregation AggregationKind

The aggregation for the first end of the new communication path.

end1Name string

The name for the first end of the new communication path.

end1Lower int

The lower bound for the first end of the new communication path.

end1Upper object

The upper bound for the first end of the new communication path.

end1Node INode

The type for the first end of the new communication path.

end2IsNavigable bool

The navigability for the second end of the new communication path.

end2Aggregation AggregationKind

The aggregation for the second end of the new communication path.

end2Name string

The name for the second end of the new communication path.

end2Lower int

The lower bound for the second end of the new communication path.

end2Upper object

The upper bound for the second end of the new communication path.

Returns

ICommunicationPath

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

GetCommunicationPaths()

Retrieves the communication paths in which this node is involved.

public ISetExpression<ICommunicationPath> GetCommunicationPaths()

Returns

ISetExpression<ICommunicationPath>

GetCompositionName(object)

Gets the property name for the given container

protected override string GetCompositionName(object container)

Parameters

container object

The container object

Returns

string

The name of the respective container reference

GetDeployedElements()

Derivation for DeploymentTarget::/deployedElement result = (deployment.deployedArtifact->select(oclIsKindOf(Artifact))->collect(oclAsType(Artifact).manifestation)->collect(utilizedElement)->asSet()) <p>From package UML::Deployments.</p>

public ISetExpression<IPackageableElement> GetDeployedElements()

Returns

ISetExpression<IPackageableElement>

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

GetRelativePathForNonIdentifiedChild(IModelElement)

Gets the relative URI fragment for the given child model element

protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)

Parameters

element IModelElement

The element that should be looked for

Returns

string

A fragment of the relative URI

Internal_structure(object, object)

The internal structure of a Node (if defined) consists solely of parts of type Node. part->forAll(oclIsKindOf(Node))

public bool Internal_structure(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool