org.eclipse.uml2.uml
Interface TimeEvent

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, Event, NamedElement, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement

public interface TimeEvent
extends Event

A representation of the model object 'Time Event'. A TimeEvent is an Event that occurs at a specific point in time.

From package UML::CommonBehavior.

The following features are supported:

See Also:
UMLPackage.getTimeEvent()

Field Summary
 
Fields inherited from interface org.eclipse.uml2.uml.NamedElement
SEPARATOR
 
Method Summary
 TimeExpression createWhen(java.lang.String name, Type type)
          Creates a new TimeExpression,with the specified 'Name', and 'Type', and sets the 'When' containment reference
 TimeExpression 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(TimeExpression value)
          Sets the value of the 'When' containment reference
 boolean validateWhenNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The ValueSpecification when must return a non-negative Integer.
 
Methods inherited from interface org.eclipse.uml2.uml.PackageableElement
validateNamespaceNeedsVisibility
 
Methods inherited from interface org.eclipse.uml2.uml.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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.uml2.uml.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.uml2.uml.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 org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

isRelative

boolean isRelative()
Returns the value of the 'Is Relative' attribute. The default value is "false". Specifies whether the TimeEvent is specified as an absolute or relative time.

From package UML::CommonBehavior.

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

TimeExpression getWhen()
Returns the value of the 'When' containment reference.

This feature subsets the following features:

Specifies the time of the TimeEvent.

From package UML::CommonBehavior.

Returns:
the value of the 'When' containment reference.
See Also:
setWhen(TimeExpression), UMLPackage.getTimeEvent_When()

setWhen

void setWhen(TimeExpression value)
Sets the value of the 'When' containment reference.

Parameters:
value - the new value of the 'When' containment reference.
See Also:
getWhen()

createWhen

TimeExpression createWhen(java.lang.String name,
                          Type type)
Creates a new TimeExpression,with the specified 'Name', and 'Type', and sets the 'When' containment reference.

Parameters:
name - The 'Name' for the new TimeExpression, or null.
type - The 'Type' for the new TimeExpression, or null.
Returns:
The new TimeExpression.
See Also:
getWhen()

validateWhenNonNegative

boolean validateWhenNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,java.lang.Object> context)
The ValueSpecification when must return a non-negative Integer. when.integerValue() >= 0

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.