Package com.sodius.mdw.metamodel.uml21
Interface ActivityEdge
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,org.eclipse.emf.common.notify.Notifier,RedefinableElement
- All Known Subinterfaces:
ControlFlow,ObjectFlow
public interface ActivityEdge extends RedefinableElement
A representation of the model object 'Activity Edge'. An activity edge is an abstract class for directed connections between two activity nodes. Activity edges can be contained in interruptible regions.The following features are supported:
- See Also:
UMLPackage.getActivityEdge()
-
-
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 ValueSpecificationcreateGuard(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Guard' containment reference.ValueSpecificationcreateWeight(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Weight' containment reference.ActivitygetActivity()Returns the value of the 'Activity' container reference.ValueSpecificationgetGuard()Returns the value of the 'Guard' containment reference.MDWEList<ActivityGroup>getInGroups()Returns the value of the 'In Group' reference list.ActivityPartitiongetInPartition(String name)Retrieves the firstActivityPartitionwith the specified 'Name' from the ' In Partition' reference list.ActivityPartitiongetInPartition(String name, boolean ignoreCase)Retrieves the firstActivityPartitionwith the specified 'Name' from the ' In Partition' reference list.MDWEList<ActivityPartition>getInPartitions()Returns the value of the 'In Partition' reference list.StructuredActivityNodegetInStructuredNode()Returns the value of the 'In Structured Node' container reference.InterruptibleActivityRegiongetInterrupts()Returns the value of the 'Interrupts' reference.ActivityEdgegetRedefinedEdge(String name)Retrieves the firstActivityEdgewith the specified 'Name' from the ' Redefined Edge' reference list.ActivityEdgegetRedefinedEdge(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstActivityEdgewith the specified 'Name' from the ' Redefined Edge' reference list.MDWEList<ActivityEdge>getRedefinedEdges()Returns the value of the 'Redefined Edge' reference list.ActivityNodegetSource()Returns the value of the 'Source' reference.ActivityNodegetTarget()Returns the value of the 'Target' reference.ValueSpecificationgetWeight()Returns the value of the 'Weight' containment reference.voidsetActivity(Activity value)Sets the value of the 'Activity' container reference.voidsetGuard(ValueSpecification value)Sets the value of the 'Guard' containment reference.voidsetInStructuredNode(StructuredActivityNode value)Sets the value of the 'In Structured Node' container reference.voidsetInterrupts(InterruptibleActivityRegion value)Sets the value of the 'Interrupts' reference.voidsetSource(ActivityNode value)Sets the value of the 'Source' reference.voidsetTarget(ActivityNode value)Sets the value of the 'Target' reference.voidsetWeight(ValueSpecification value)Sets the value of the 'Weight' containment reference.booleanvalidateOwned(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Activity edges may be owned only by activities or groups.booleanvalidateSourceAndTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The source and target of an edge must be in the same activity as the edge.booleanvalidateStructuredNode(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Activity edges may be owned by at most one structured node.-
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.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
-
-
-
Method Detail
-
getActivity
Activity getActivity()
Returns the value of the 'Activity' container reference. It is bidirectional and its opposite is 'Edge'. Activity containing the edge.- Returns:
- the value of the 'Activity' container reference.
- See Also:
setActivity(Activity),UMLPackage.getActivityEdge_Activity(),Activity.getEdges()
-
setActivity
void setActivity(Activity value)
Sets the value of the 'Activity' container reference.- Parameters:
value- the new value of the 'Activity' container reference.- See Also:
getActivity()
-
getInGroups
MDWEList<ActivityGroup> getInGroups()
Returns the value of the 'In Group' reference list. The list contents are of typeActivityGroup. It is bidirectional and its opposite is 'Contained Edge'. Groups containing the edge.- Returns:
- the value of the 'In Group' reference list.
- See Also:
UMLPackage.getActivityEdge_InGroup(),ActivityGroup.getContainedEdges()
-
getInPartitions
MDWEList<ActivityPartition> getInPartitions()
Returns the value of the 'In Partition' reference list. The list contents are of typeActivityPartition. It is bidirectional and its opposite is 'Edge'. Partitions containing the edge.- Returns:
- the value of the 'In Partition' reference list.
- See Also:
UMLPackage.getActivityEdge_InPartition(),ActivityPartition.getEdges()
-
getInPartition
ActivityPartition getInPartition(String name)
Retrieves the firstActivityPartitionwith the specified 'Name' from the ' In Partition' reference list.- Parameters:
name- The 'Name' of theActivityPartitionto retrieve, ornull.- Returns:
- The first
ActivityPartitionwith the specified 'Name', ornull. - See Also:
getInPartitions()
-
getInPartition
ActivityPartition getInPartition(String name, boolean ignoreCase)
Retrieves the firstActivityPartitionwith the specified 'Name' from the ' In Partition' reference list.- Parameters:
name- The 'Name' of theActivityPartitionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
ActivityPartitionwith the specified 'Name', ornull. - See Also:
getInPartitions()
-
getInStructuredNode
StructuredActivityNode getInStructuredNode()
Returns the value of the 'In Structured Node' container reference. It is bidirectional and its opposite is 'Edge'. Structured activity node containing the edge.- Returns:
- the value of the 'In Structured Node' container reference.
- See Also:
setInStructuredNode(StructuredActivityNode),UMLPackage.getActivityEdge_InStructuredNode(),StructuredActivityNode.getEdges()
-
setInStructuredNode
void setInStructuredNode(StructuredActivityNode value)
Sets the value of the 'In Structured Node' container reference.- Parameters:
value- the new value of the 'In Structured Node' container reference.- See Also:
getInStructuredNode()
-
getTarget
ActivityNode getTarget()
Returns the value of the 'Target' reference. It is bidirectional and its opposite is 'Incoming'. Node to which tokens are put when they traverse the edge.- Returns:
- the value of the 'Target' reference.
- See Also:
setTarget(ActivityNode),UMLPackage.getActivityEdge_Target(),ActivityNode.getIncomings()
-
setTarget
void setTarget(ActivityNode value)
Sets the value of the 'Target' reference.- Parameters:
value- the new value of the 'Target' reference.- See Also:
getTarget()
-
getRedefinedEdges
MDWEList<ActivityEdge> getRedefinedEdges()
Returns the value of the 'Redefined Edge' reference list. The list contents are of typeActivityEdge. Inherited edges replaced by this edge in a specialization of the activity.- Returns:
- the value of the 'Redefined Edge' reference list.
- See Also:
UMLPackage.getActivityEdge_RedefinedEdge()
-
getRedefinedEdge
ActivityEdge getRedefinedEdge(String name)
Retrieves the firstActivityEdgewith the specified 'Name' from the ' Redefined Edge' reference list.- Parameters:
name- The 'Name' of theActivityEdgeto retrieve, ornull.- Returns:
- The first
ActivityEdgewith the specified 'Name', ornull. - See Also:
getRedefinedEdges()
-
getRedefinedEdge
ActivityEdge getRedefinedEdge(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstActivityEdgewith the specified 'Name' from the ' Redefined Edge' reference list.- Parameters:
name- The 'Name' of theActivityEdgeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theActivityEdgeto retrieve, ornull.- Returns:
- The first
ActivityEdgewith the specified 'Name', ornull. - See Also:
getRedefinedEdges()
-
getGuard
ValueSpecification getGuard()
Returns the value of the 'Guard' containment reference. Specification evaluated at runtime to determine if the edge can be traversed.- Returns:
- the value of the 'Guard' containment reference.
- See Also:
setGuard(ValueSpecification),UMLPackage.getActivityEdge_Guard()
-
setGuard
void setGuard(ValueSpecification value)
Sets the value of the 'Guard' containment reference.- Parameters:
value- the new value of the 'Guard' containment reference.- See Also:
getGuard()
-
createGuard
ValueSpecification createGuard(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Guard' containment reference.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getGuard()
-
getWeight
ValueSpecification getWeight()
Returns the value of the 'Weight' containment reference. Number of tokens consumed from the source node on each traversal.- Returns:
- the value of the 'Weight' containment reference.
- See Also:
setWeight(ValueSpecification),UMLPackage.getActivityEdge_Weight()
-
setWeight
void setWeight(ValueSpecification value)
Sets the value of the 'Weight' containment reference.- Parameters:
value- the new value of the 'Weight' containment reference.- See Also:
getWeight()
-
createWeight
ValueSpecification createWeight(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Weight' containment reference.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getWeight()
-
getInterrupts
InterruptibleActivityRegion getInterrupts()
Returns the value of the 'Interrupts' reference. It is bidirectional and its opposite is 'Interrupting Edge'. Region that the edge can interrupt.- Returns:
- the value of the 'Interrupts' reference.
- See Also:
setInterrupts(InterruptibleActivityRegion),UMLPackage.getActivityEdge_Interrupts(),InterruptibleActivityRegion.getInterruptingEdges()
-
setInterrupts
void setInterrupts(InterruptibleActivityRegion value)
Sets the value of the 'Interrupts' reference.- Parameters:
value- the new value of the 'Interrupts' reference.- See Also:
getInterrupts()
-
getSource
ActivityNode getSource()
Returns the value of the 'Source' reference. It is bidirectional and its opposite is 'Outgoing'. Node from which tokens are taken when they traverse the edge.- Returns:
- the value of the 'Source' reference.
- See Also:
setSource(ActivityNode),UMLPackage.getActivityEdge_Source(),ActivityNode.getOutgoings()
-
setSource
void setSource(ActivityNode value)
Sets the value of the 'Source' reference.- Parameters:
value- the new value of the 'Source' reference.- See Also:
getSource()
-
validateSourceAndTarget
boolean validateSourceAndTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The source and target of an edge must be in the same activity as the edge. true
-
validateOwned
boolean validateOwned(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Activity edges may be owned only by activities or groups. true
-
validateStructuredNode
boolean validateStructuredNode(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Activity edges may be owned by at most one structured node. true
-
-