Package com.sodius.mdw.metamodel.uml21
Interface TimeEvent
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,Event
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
public interface TimeEvent extends Event
A representation of the model object 'Time Event'. A time event specifies a point in time. At the specified time, the event occurs. A time event can be defined relative to entering the current state of the executing state machine.The following features are supported:
- See Also:
UMLPackage.getTimeEvent()
-
-
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 ValueSpecification
createWhen(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification
, with the specified 'Name', and 'Type', and sets the 'When' containment reference.ValueSpecification
getWhen()
Returns the value of the 'When' containment reference.boolean
isRelative()
Returns the value of the 'Is Relative' attribute.void
setIsRelative(boolean value)
Sets the value of the 'Is Relative
' attribute.void
setWhen(ValueSpecification value)
Sets the value of the 'When
' containment reference.boolean
validateStartingTime(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The starting time for a relative time event may only be omitted for a time event that is the trigger of a state machine.boolean
validateWhenNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The ValueSpecification when must return a non-negative Integer.-
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
-
isRelative
boolean isRelative()
Returns the value of the 'Is Relative' attribute. The default value is"false"
. Specifies whether it is relative or absolute time.- Returns:
- the value of the 'Is Relative' attribute.
- See Also:
setIsRelative(boolean)
,UMLPackage.getTimeEvent_IsRelative()
-
setIsRelative
void setIsRelative(boolean value)
Sets the value of the 'Is Relative
' attribute.- Parameters:
value
- the new value of the 'Is Relative' attribute.- See Also:
isRelative()
-
getWhen
ValueSpecification getWhen()
Returns the value of the 'When' containment reference. Specifies the corresponding time deadline.- Returns:
- the value of the 'When' containment reference.
- See Also:
setWhen(ValueSpecification)
,UMLPackage.getTimeEvent_When()
-
setWhen
void setWhen(ValueSpecification value)
Sets the value of the 'When
' containment reference.- Parameters:
value
- the new value of the 'When' containment reference.- See Also:
getWhen()
-
createWhen
ValueSpecification createWhen(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification
, with the specified 'Name', and 'Type', and sets the 'When' containment reference.- Parameters:
name
- The 'Name' for the newValueSpecification
, ornull
.type
- The 'Type' for the newValueSpecification
, ornull
.eClass
- The Ecore class of theValueSpecification
to create.- Returns:
- The new
ValueSpecification
. - See Also:
getWhen()
-
validateWhenNonNegative
boolean validateWhenNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The ValueSpecification when must return a non-negative Integer. true
-
validateStartingTime
boolean validateStartingTime(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The starting time for a relative time event may only be omitted for a time event that is the trigger of a state machine. true
-
-