Class Node
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
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
boolThe navigability for the first end of the new communication path.
end1Aggregation
AggregationKindThe aggregation for the first end of the new communication path.
end1Name
stringThe name for the first end of the new communication path.
end1Lower
intThe lower bound for the first end of the new communication path.
end1Upper
objectThe upper bound for the first end of the new communication path.
end1Node
INodeThe type for the first end of the new communication path.
end2IsNavigable
boolThe navigability for the second end of the new communication path.
end2Aggregation
AggregationKindThe aggregation for the second end of the new communication path.
end2Name
stringThe name for the second end of the new communication path.
end2Lower
intThe lower bound for the second end of the new communication path.
end2Upper
objectThe upper bound for the second end of the new communication path.
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe 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
GetCompositionName(object)
Gets the property name for the given container
protected override string GetCompositionName(object container)
Parameters
container
objectThe 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
GetModelElementForReference(string, int)
Resolves the given URI to a child model element
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
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
IModelElementThe 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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.