Class Activity
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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
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
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
OwnedNode
The ownedNode property
[Browsable(false)]
[XmlElementName("node")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IActivityNode> OwnedNode { get; }
Property Value
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
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
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
Methods
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
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
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
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
GetExpressionForAttribute(string)
Gets the property expression for the given attribute
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
attribute
stringThe 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
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
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)