Table of Contents

Class Activity

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

An Activity is the specification of parameterized Behavior as the coordinated sequencing of subordinate units. <p>From package UML::Activities.</p>

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

Constructors

Activity()

Creates a new instance

public Activity()

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

Edge

ActivityEdges expressing flow between the nodes of the Activity. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("edge")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("activity")]
public IOrderedSetExpression<IActivityEdge> Edge { get; }

Property Value

IOrderedSetExpression<IActivityEdge>

IsReadOnly

If true, this Activity must not make any changes to objects. The default is false (an Activity may make nonlocal changes). (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the Activity, then the model is ill-formed.) <p>From package UML::Activities.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isReadOnly")]
[XmlAttribute(true)]
public bool IsReadOnly { get; set; }

Property Value

bool

IsSingleExecution

If true, all invocations of the Activity are handled by the same execution. <p>From package UML::Activities.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isSingleExecution")]
[XmlAttribute(true)]
public bool IsSingleExecution { get; set; }

Property Value

bool

OwnedNode

The ownedNode property

[Browsable(false)]
[XmlElementName("node")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IActivityNode> OwnedNode { get; }

Property Value

IOrderedSetExpression<IActivityNode>

Partition

Top-level ActivityPartitions in the Activity. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("partition")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IActivityPartition> Partition { get; }

Property Value

IOrderedSetExpression<IActivityPartition>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

StructuredNode

Top-level StructuredActivityNodes in the Activity. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("structuredNode")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IStructuredActivityNode> StructuredNode { get; }

Property Value

IOrderedSetExpression<IStructuredActivityNode>

Variable

Top-level Variables defined by the Activity. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("variable")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("activityScope")]
public IOrderedSetExpression<IVariable> Variable { get; }

Property Value

IOrderedSetExpression<IVariable>

Methods

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

Returns

object

The attribute value or null if it could not be found

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

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

GetExpressionForAttribute(string)

Gets the property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The requested attribute in upper case

Returns

INotifyExpression<object>

An incremental property expression

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

Maximum_one_parameter_node(object, object)

A Parameter with direction other than inout must have exactly one ActivityParameterNode in an Activity. ownedParameter->forAll(p | p.direction <> ParameterDirectionKind::inout implies node->select( oclIsKindOf(ActivityParameterNode) and oclAsType(ActivityParameterNode).parameter = p)->size()= 1)

public bool Maximum_one_parameter_node(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

Maximum_two_parameter_nodes(object, object)

A Parameter with direction inout must have exactly two ActivityParameterNodes in an Activity, at most one with incoming ActivityEdges and at most one with outgoing ActivityEdges. ownedParameter->forAll(p | p.direction = ParameterDirectionKind::inout implies let associatedNodes : Set(ActivityNode) = node->select( oclIsKindOf(ActivityParameterNode) and oclAsType(ActivityParameterNode).parameter = p) in associatedNodes->size()=2 and associatedNodes->select(incoming->notEmpty())->size()<=1 and associatedNodes->select(outgoing->notEmpty())->size()<=1 )

public bool Maximum_two_parameter_nodes(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

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature