org.eclipse.uml2.uml
Interface GeneralOrdering

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

public interface GeneralOrdering
extends NamedElement

A representation of the model object 'General Ordering'. A GeneralOrdering represents a binary relation between two OccurrenceSpecifications, to describe that one OccurrenceSpecification must occur before the other in a valid trace. This mechanism provides the ability to define partial orders of OccurrenceSpecifications that may otherwise not have a specified order.

From package UML::Interactions.

The following features are supported:

See Also:
UMLPackage.getGeneralOrdering()

Field Summary
 
Fields inherited from interface org.eclipse.uml2.uml.NamedElement
SEPARATOR
 
Method Summary
 OccurrenceSpecification getAfter()
          Returns the value of the 'After' reference.
 OccurrenceSpecification getBefore()
          Returns the value of the 'Before' reference.
 void setAfter(OccurrenceSpecification value)
          Sets the value of the 'After' reference
 void setBefore(OccurrenceSpecification value)
          Sets the value of the 'Before' reference
 boolean validateIrreflexiveTransitiveClosure(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          An occurrence specification must not be ordered relative to itself through a series of general orderings.
 
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.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

getBefore

OccurrenceSpecification getBefore()
Returns the value of the 'Before' reference. It is bidirectional and its opposite is 'To After'. The OccurrenceSpecification referenced comes before the OccurrenceSpecification referenced by after.

From package UML::Interactions.

Returns:
the value of the 'Before' reference.
See Also:
setBefore(OccurrenceSpecification), UMLPackage.getGeneralOrdering_Before(), OccurrenceSpecification.getToAfters()

setBefore

void setBefore(OccurrenceSpecification value)
Sets the value of the 'Before' reference.

Parameters:
value - the new value of the 'Before' reference.
See Also:
getBefore()

validateIrreflexiveTransitiveClosure

boolean validateIrreflexiveTransitiveClosure(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,java.lang.Object> context)
An occurrence specification must not be ordered relative to itself through a series of general orderings. (In other words, the transitive closure of the general orderings is irreflexive.) after->closure(toAfter.after)->excludes(before)

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

getAfter

OccurrenceSpecification getAfter()
Returns the value of the 'After' reference. It is bidirectional and its opposite is 'To Before'. The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before.

From package UML::Interactions.

Returns:
the value of the 'After' reference.
See Also:
setAfter(OccurrenceSpecification), UMLPackage.getGeneralOrdering_After(), OccurrenceSpecification.getToBefores()

setAfter

void setAfter(OccurrenceSpecification value)
Sets the value of the 'After' reference.

Parameters:
value - the new value of the 'After' reference.
See Also:
getAfter()

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