Class ActivityEdge
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
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
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
InPartition
ActivityPartitions containing the ActivityEdge. <p>From package UML::Activities.</p>
[XmlElementName("inPartition")]
[XmlAttribute(true)]
[XmlOpposite("edge")]
public ISetExpression<IActivityPartition> InPartition { get; }
Property Value
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
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
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
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
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
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
Methods
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
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe 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
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
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.