Class DurationConstraint
A DurationConstraint is a Constraint that refers to a DurationInterval. <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#//DurationConstraint")]
public class DurationConstraint : IntervalConstraint, IDurationConstraint, IIntervalConstraint, IConstraint, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
DurationConstraint
- Implements
- Inherited Members
Constructors
DurationConstraint()
Creates a new instance
public DurationConstraint()
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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)]
public ISetExpression<bool> FirstEvent { get; }
Property Value
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
public bool First_event_multiplicity(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe requested feature
Returns
- IList
A non-generic list of elements
Has_one_or_two_constrainedElements(object, object)
A DurationConstraint has either one or two constrainedElements. constrainedElement->size() = 1 or constrainedElement->size()=2
public bool Has_one_or_two_constrainedElements(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.