Table of Contents

Class InteractionConstraint

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

An InteractionConstraint is a Boolean expression that guards an operand in a CombinedFragment. <p>From package UML::Interactions.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//InteractionConstraint")]
public class InteractionConstraint : Constraint, IInteractionConstraint, IConstraint, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
InteractionConstraint
Implements
Inherited Members

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

Maxint

The maximum number of iterations of a loop <p>From package UML::Interactions.</p>

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

Property Value

IValueSpecification

Minint

The minimum number of iterations of a loop <p>From package UML::Interactions.</p>

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

Property Value

IValueSpecification

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

Dynamic_variables(object, object)

The dynamic variables that take part in the constraint must be owned by the ConnectableElement corresponding to the covered Lifeline.

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

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

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

Global_data(object, object)

The constraint may contain references to global data or write-once data.

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

Maxint_greater_equal_minint(object, object)

If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint. maxint->notEmpty() implies (minint->notEmpty() and maxint->asSequence()->first().integerValue() >= minint->asSequence()->first().integerValue() )

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

Maxint_positive(object, object)

If maxint is specified, then the expression must evaluate to a positive integer. maxint->notEmpty() implies maxint->asSequence()->first().integerValue() > 0

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

Minint_maxint(object, object)

Minint/maxint can only be present if the InteractionConstraint is associated with the operand of a loop CombinedFragment. maxint->notEmpty() or minint->notEmpty() implies interactionOperand.combinedFragment.interactionOperator = InteractionOperatorKind::loop

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

Minint_non_negative(object, object)

If minint is specified, then the expression must evaluate to a non-negative integer. minint->notEmpty() implies minint->asSequence()->first().integerValue() >= 0

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