public interface TimeEvent extends Event
The following features are supported:
UMLPackage.getTimeEvent()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createWhen(String name,
Type type,
EClass eClass)
Creates a new
ValueSpecification , 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(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(DiagnosticChain diagnostics,
Map context)
The ValueSpecification when must return a non-negative Integer.
|
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
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
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
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
boolean isRelative()
"false"
.
Specifies whether it is relative or absolute time.
setIsRelative(boolean)
,
UMLPackage.getTimeEvent_IsRelative()
void setIsRelative(boolean value)
Is Relative
' attribute.
value
- the new value of the 'Is Relative' attribute.isRelative()
ValueSpecification getWhen()
setWhen(ValueSpecification)
,
UMLPackage.getTimeEvent_When()
void setWhen(ValueSpecification value)
When
' containment reference.
value
- the new value of the 'When' containment reference.getWhen()
ValueSpecification createWhen(String name, Type type, EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type',
and sets the 'When' containment reference.
name
- The 'Name' for the new ValueSpecification
, or null
.type
- The 'Type' for the new ValueSpecification
, or null
.eClass
- The Ecore class of the ValueSpecification
to create.ValueSpecification
.getWhen()
boolean validateWhenNonNegative(DiagnosticChain diagnostics, Map context)
boolean validateStartingTime(DiagnosticChain diagnostics, Map context)