Table of Contents

Class ActivityEdge

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

An ActivityEdge is an abstract class for directed connections between two ActivityNodes. <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#//ActivityEdge")]
public abstract class ActivityEdge : RedefinableElement, IActivityEdge, IRedefinableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ActivityEdge
Implements
Derived
Inherited Members

Constructors

ActivityEdge()

Creates a new instance

public ActivityEdge()

Properties

Activity

The Activity containing the ActivityEdge, if it is directly owned by an Activity. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("activity")]
[XmlAttribute(true)]
[XmlOpposite("edge")]
public IActivity Activity { get; set; }

Property Value

IActivity

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

Guard

A ValueSpecification that is evaluated to determine if a token can traverse the ActivityEdge. If an ActivityEdge has no guard, then there is no restriction on tokens traversing the edge. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("guard")]
[XmlAttribute(false)]
[Containment]
public IValueSpecification Guard { get; set; }

Property Value

IValueSpecification

InPartition

ActivityPartitions containing the ActivityEdge. <p>From package UML::Activities.</p>

[XmlElementName("inPartition")]
[XmlAttribute(true)]
[XmlOpposite("edge")]
public ISetExpression<IActivityPartition> InPartition { get; }

Property Value

ISetExpression<IActivityPartition>

InStructuredNode

The StructuredActivityNode containing the ActivityEdge, if it is owned by a StructuredActivityNode. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("inStructuredNode")]
[XmlAttribute(true)]
[XmlOpposite("edge")]
public IStructuredActivityNode InStructuredNode { get; set; }

Property Value

IStructuredActivityNode

Interrupts

The InterruptibleActivityRegion for which this ActivityEdge is an interruptingEdge. <p>From package UML::Activities.</p>

[XmlElementName("interrupts")]
[XmlAttribute(true)]
[XmlOpposite("interruptingEdge")]
public IInterruptibleActivityRegion Interrupts { get; set; }

Property Value

IInterruptibleActivityRegion

RedefinedEdge

ActivityEdges from a generalization of the Activity containing this ActivityEdge that are redefined by this ActivityEdge. <p>From package UML::Activities.</p>

[XmlElementName("redefinedEdge")]
[XmlAttribute(true)]
public ISetExpression<IActivityEdge> RedefinedEdge { get; }

Property Value

ISetExpression<IActivityEdge>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Source

The ActivityNode from which tokens are taken when they traverse the ActivityEdge. <p>From package UML::Activities.</p>

[XmlElementName("source")]
[XmlAttribute(true)]
[XmlOpposite("outgoing")]
public IActivityNode Source { get; set; }

Property Value

IActivityNode

Target

The ActivityNode to which tokens are put when they traverse the ActivityEdge. <p>From package UML::Activities.</p>

[XmlElementName("target")]
[XmlAttribute(true)]
[XmlOpposite("incoming")]
public IActivityNode Target { get; set; }

Property Value

IActivityNode

Weight

The minimum number of tokens that must traverse the ActivityEdge at the same time. If no weight is specified, this is equivalent to specifying a constant value of 1. <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("weight")]
[XmlAttribute(false)]
[Containment]
public IValueSpecification Weight { get; set; }

Property Value

IValueSpecification

Methods

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

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

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

Source_and_target(object, object)

If an ActivityEdge is directly owned by an Activity, then its source and target must be directly or indirectly contained in the same Activity. activity<>null implies source.containingActivity() = activity and target.containingActivity() = activity

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