org.eclipse.uml2
Interface Duration
- All Superinterfaces:
- Element, EModelElement, EObject, NamedElement, Notifier, ParameterableElement, TemplateableElement, TypedElement, ValueSpecification
- public interface Duration
- extends ValueSpecification
A representation of the model object 'Duration'.
A duration defines a value specification that specifies the temporal distance between two time expressions that specify time instants.
The following features are supported:
- See Also:
UML2Package.getDuration()
Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwnedElements, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
copyright
public static final String copyright
-
- See Also:
- Constant Field Values
isFirstTime
public boolean isFirstTime()
- Returns the value of the 'First Time' attribute.
The default value is
"True"
.
If the meaning of the 'First Time' attribute isn't clear,
there really should be more of a description here...
If the duration is between times of two NamedElements, there are two Boolean attributes, one for the start of the duration and one for the end of the duration. For each of these it holds that firstTime is true if the time information is associated with the first point in time of the NamedElement referenced by event, and false if it represents the last point in time of the NamedElement. If there is only one NamedElement referenced by event, then this attribute is irrelevant. The default value is true.
- Returns:
- the value of the 'First Time' attribute.
- See Also:
setFirstTime(boolean)
,
UML2Package.getDuration_FirstTime()
setFirstTime
public void setFirstTime(boolean value)
- Sets the value of the '
First Time
' attribute.
- Parameters:
value
- the new value of the 'First Time' attribute.- See Also:
isFirstTime()
getEvents
public EList getEvents()
- Returns the value of the 'Event' reference list.
The list contents are of type
NamedElement
.
If the meaning of the 'Event' reference list isn't clear,
there really should be more of a description here...
Refers to the specification(s) that describes the starting TimeExpression and the ending TimeExpression of the Duration. If only one NamedElement is referenced, the duration is from the first point in time of that NamedElement until the last point in time of that NamedElement.
- Returns:
- the value of the 'Event' reference list.
- See Also:
UML2Package.getDuration_Event()
getEvent
public NamedElement getEvent(String unqualifiedName)
- Retrieves the
NamedElement
with the specified name from the 'Event' reference list.
- Parameters:
unqualifiedName
- The unqualified name of the NamedElement
to retrieve.
- Returns:
- The
NamedElement
with the specified name, or null
. - See Also:
getEvents()