Software Disclaimer

Class UML 2.4.1::DurationConstraint

Description:

A duration constraint is a constraint that refers to a duration interval.

Direct Superclasses: IntervalConstraint

Direct Subclasses:

Class Precedence List: DurationConstraint, IntervalConstraint, Constraint, PackageableElement, ParameterableElement, NamedElement, Element

Properties:

firstEvent : Boolean (0 2); -- source DurationConstraint

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

specification : DurationInterval (1 1); -- source DurationConstraint
constrainedElement : Element (0 *); -- source Constraint
context : Namespace (0 1); -- source Constraint
visibility : VisibilityKind (1 1); -- source PackageableElement

Indicates that packageable elements must always have a visibility, i.e., visibility is not optional.
Redefines: NamedElement.visibility
Default value: PUBLIC

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

Specifies the namespace that owns the NamedElement.
{readonly}
Derived union with sources: (context)
Subsets: Element.owner
Opposite: Namespace.ownedMember

qualifiedName : String (0 1); -- source NamedElement
ownedComment : Comment (0 *); -- source Element
ownedElement : Element (0 *); -- source Element
owner : Element (0 1); -- source Element

Constraints:

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

Operations:

No additional operations.



Send questions or comments to xmi-interop@omg.org.