Package com.sodius.mdw.metamodel.uml21
Interface DurationObservation
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,Observation
,PackageableElement
,ParameterableElement
public interface DurationObservation extends Observation
A representation of the model object 'Duration Observation'. 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.The following features are supported:
- See Also:
UMLPackage.getDurationObservation()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamedElement
getEvent(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Event' reference list.NamedElement
getEvent(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Event' reference list.MDWEList<NamedElement>
getEvents()
Returns the value of the 'Event' reference list.MDWEList<Boolean>
getFirstEvents()
Returns the value of the 'First Event' attribute list.boolean
validateFirstEventMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The multiplicity of firstEvent must be 2 if the multiplicity of event is 2.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
-
-
-
Method Detail
-
getEvents
MDWEList<NamedElement> getEvents()
Returns the value of the 'Event' reference list. The list contents are of typeNamedElement
. The observation is determined by the entering or exiting of the event element during execution.- Returns:
- the value of the 'Event' reference list.
- See Also:
UMLPackage.getDurationObservation_Event()
-
getEvent
NamedElement getEvent(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Event' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getEvents()
-
getEvent
NamedElement getEvent(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Event' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getEvents()
-
getFirstEvents
MDWEList<Boolean> getFirstEvents()
Returns the value of the 'First Event' attribute list. The list contents are of typeBoolean
. 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.- Returns:
- the value of the 'First Event' attribute list.
- See Also:
UMLPackage.getDurationObservation_FirstEvent()
-
validateFirstEventMultiplicity
boolean validateFirstEventMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
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)
-
-