Table of Contents

Class Action

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

An Action is the fundamental unit of executable functionality. The execution of an Action represents some transformation or processing in the modeled system. Actions provide the ExecutableNodes within Activities and may also be used within Interactions. <p>From package UML::Actions.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Action")]
public abstract class Action : ExecutableNode, IAction, IExecutableNode, IActivityNode, IActivityContent, IRedefinableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Action
Implements
Derived
Inherited Members

Constructors

Action()

Creates a new instance

public Action()

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

IsLocallyReentrant

If true, the Action can begin a new, concurrent execution, even if there is already another execution of the Action ongoing. If false, the Action cannot begin a new execution until any previous execution has completed. <p>From package UML::Actions.</p>

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

Property Value

bool

LocalPostcondition

A Constraint that must be satisfied when execution of the Action is completed. <p>From package UML::Actions.</p>

[Browsable(false)]
[XmlElementName("localPostcondition")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IConstraint> LocalPostcondition { get; }

Property Value

IOrderedSetExpression<IConstraint>

LocalPrecondition

A Constraint that must be satisfied when execution of the Action is started. <p>From package UML::Actions.</p>

[Browsable(false)]
[XmlElementName("localPrecondition")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IConstraint> LocalPrecondition { get; }

Property Value

IOrderedSetExpression<IConstraint>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

AllActions()

Return this Action and all Actions contained directly or indirectly in it. By default only the Action itself is returned, but the operation is overridden for StructuredActivityNodes. result = (self->asSet()) <p>From package UML::Actions.</p>

public ISetExpression<IAction> AllActions()

Returns

ISetExpression<IAction>

AllOwnedNodes()

Returns all the ActivityNodes directly or indirectly owned by this Action. This includes at least all the Pins of the Action. result = (input.oclAsType(Pin)->asSet()->union(output->asSet())) <p>From package UML::Actions.</p>

public ISetExpression<IActivityNode> AllOwnedNodes()

Returns

ISetExpression<IActivityNode>

ContainingBehavior()

result = (if inStructuredNode<>null then inStructuredNode.containingBehavior() else if activity<>null then activity else interaction endif endif ) <p>From package UML::Actions.</p>

public IBehavior ContainingBehavior()

Returns

IBehavior

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

GetContext()

The derivation for the context property. result = (let behavior: Behavior = self.containingBehavior() in if behavior=null then null else if behavior.'context' = null then behavior else behavior.'context' endif endif) <p>From package UML::Actions.</p>

public IClassifier GetContext()

Returns

IClassifier

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

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