Table of Contents

Class DurationObservation

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

A DurationObservation is a reference to a duration during an execution. It points out the NamedElement(s) in the model to observe and whether the observations are when this NamedElement is entered or when it is exited. <p>From package UML::Values.</p>

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

Constructors

DurationObservation()

Creates a new instance

public DurationObservation()

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Event

The DurationObservation is determined as the duration between the entering or exiting of a single event Element during execution, or the entering/exiting of one event Element and the entering/exiting of a second. <p>From package UML::Values.</p>

[LowerBound(1)]
[UpperBound(2)]
[XmlElementName("event")]
[XmlAttribute(true)]
public IOrderedSetExpression<INamedElement> Event { get; }

Property Value

IOrderedSetExpression<INamedElement>

FirstEvent

The value of firstEvent[i] is related to event[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 event[i]. If firstEvent[i] is false, then the corresponding observation event is the time instant the execution exits event[i]. <p>From package UML::Values.</p>

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

Property Value

ISetExpression<bool>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

First_event_multiplicity(object, object)

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

public 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

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

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