Table of Contents

Interface IDurationConstraint

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

The public interface for DurationConstraint

[DefaultImplementationType(typeof(DurationConstraint))]
[XmlDefaultImplementationType(typeof(DurationConstraint))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//DurationConstraint")]
public interface IDurationConstraint : IIntervalConstraint, IConstraint, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

FirstEvent

The value of firstEvent[i] is related to constrainedElement[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters constrainedElement[i]. If firstEvent[i] is false, then the corresponding observation event is the last time instant the execution is within constrainedElement[i]. <p>From package UML::Values.</p>

[UpperBound(2)]
[XmlElementName("firstEvent")]
[XmlAttribute(true)]
ISetExpression<bool> FirstEvent { get; }

Property Value

ISetExpression<bool>

Methods

First_event_multiplicity(object, object)

The multiplicity of firstEvent must be 2 if the multiplicity of constrainedElement is 2. Otherwise the multiplicity of firstEvent is 0. if (constrainedElement->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0) endif

bool First_event_multiplicity(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

Has_one_or_two_constrainedElements(object, object)

A DurationConstraint has either one or two constrainedElements. constrainedElement->size() = 1 or constrainedElement->size()=2

bool Has_one_or_two_constrainedElements(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