Software Disclaimer

Class UML 2.3::DurationObservation


A duration observation is a reference to a duration during an execution. It points out the element(s) in the model to observe and whether the observations are when this model element is entered or when it is exited.

Direct Superclasses: Observation

Direct Subclasses:

Class Precedence List: DurationObservation, Observation, PackageableElement, ParameterableElement, NamedElement, Element


event : NamedElement (1 2); -- source DurationObservation
firstEvent : Boolean (0 2); -- source DurationObservation

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]. Default value is true applied when event[i] refers an element that represents only one time instant.
Default value: TRUE

visibility : VisibilityKind (1 1); -- source PackageableElement
owningTemplateParameter : TemplateParameter (0 1); -- source ParameterableElement
templateParameter : TemplateParameter (0 1); -- source ParameterableElement
clientDependency : Dependency (0 *); -- source NamedElement
name : String (0 1); -- source NamedElement
nameExpression : StringExpression (0 1); -- source NamedElement
namespace : Namespace (0 1); -- source NamedElement
qualifiedName : String (0 1); -- source NamedElement

A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.
{readonly, derived}

ownedComment : Comment (0 *); -- source Element

The Comments owned by this element.
Subsets: Element.ownedElement

ownedElement : Element (0 *); -- source Element

The Elements owned by this element.
{composite, readonly}
Derived union with sources: (ownedComment, nameExpression)
Opposite: Element.owner

owner : Element (0 1); -- source Element


Signature: first_event_multiplicity() : Boolean;
Description: The multiplicity of firstEvent must be 2 if the multiplicity of event is 2. Otherwise the multiplicity of firstEvent is 0.
The OCL used here is not normative.
Editor's notes: Added endif.
Expression: if (event->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0) endif
Original: if (event->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0)


No additional operations.

Send questions or comments to