Package com.sodius.mdw.metamodel.uml21
Interface Activity
-
- All Superinterfaces:
Behavior,BehavioredClassifier,Class,Classifier,Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,EncapsulatedClassifier,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,RedefinableElement,StructuredClassifier,TemplateableElement,Type
public interface Activity extends Behavior
A representation of the model object 'Activity'. An activity is the specification of parameterized behavior as the coordinated sequencing of subordinate units whose individual elements are actions.The following features are supported:
- See Also:
UMLPackage.getActivity()
-
-
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 ActivityEdgecreateEdge(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newActivityEdge, with the specified 'Name', and appends it to the ' Edge' containment reference list.ActivityGroupcreateGroup(org.eclipse.emf.ecore.EClass eClass)Creates a newActivityGroupand appends it to the 'Group' containment reference list.ActivityNodecreateNode(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newActivityNode, with the specified 'Name', and appends it to the ' Node' containment reference list.ActivityPartitioncreatePartition(String name)Creates a newActivityPartition, with the specified 'Name', and appends it to the ' Partition' reference list.VariablecreateVariable(String name, Type type)Creates a newVariable, with the specified 'Name', and 'Type', and appends it to the 'Variable' containment reference list.ActivityEdgegetEdge(String name)Retrieves the firstActivityEdgewith the specified 'Name' from the ' Edge' containment reference list.ActivityEdgegetEdge(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstActivityEdgewith the specified 'Name' from the ' Edge' containment reference list.MDWEList<ActivityEdge>getEdges()Returns the value of the 'Edge' containment reference list.MDWEList<ActivityGroup>getGroups()Returns the value of the 'Group' containment reference list.ActivityNodegetNode(String name)Retrieves the firstActivityNodewith the specified 'Name' from the ' Node' containment reference list.ActivityNodegetNode(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstActivityNodewith the specified 'Name' from the ' Node' containment reference list.MDWEList<ActivityNode>getNodes()Returns the value of the 'Node' containment reference list.ActivityPartitiongetPartition(String name)Retrieves the firstActivityPartitionwith the specified 'Name' from the ' Partition' reference list.ActivityPartitiongetPartition(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstActivityPartitionwith the specified 'Name' from the ' Partition' reference list.MDWEList<ActivityPartition>getPartitions()Returns the value of the 'Partition' reference list.StructuredActivityNodegetStructuredNode(String name)Retrieves the firstStructuredActivityNodewith the specified 'Name' from the ' Structured Node' reference list.StructuredActivityNodegetStructuredNode(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstStructuredActivityNodewith the specified 'Name' from the ' Structured Node' reference list.MDWEList<StructuredActivityNode>getStructuredNodes()Returns the value of the 'Structured Node' reference list.VariablegetVariable(String name, Type type)Retrieves the firstVariablewith the specified 'Name', and 'Type' from the 'Variable' containment reference list.VariablegetVariable(String name, Type type, boolean ignoreCase, boolean createOnDemand)Retrieves the firstVariablewith the specified 'Name', and 'Type' from the 'Variable' containment reference list.MDWEList<Variable>getVariables()Returns the value of the 'Variable' containment reference list.booleanisReadOnly()Returns the value of the 'Is Read Only' attribute.booleanisSingleExecution()Returns the value of the 'Is Single Execution' attribute.voidsetIsReadOnly(boolean value)Sets the value of the 'Is Read Only' attribute.voidsetIsSingleExecution(boolean value)Sets the value of the 'Is Single Execution' attribute.booleanvalidateActivityParameterNode(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The nodes of the activity must include one ActivityParameterNode for each parameter.booleanvalidateAutonomous(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An activity cannot be autonomous and have a classifier or behavioral feature context at the same time.booleanvalidateNoSupergroups(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The groups of an activity have no supergroups.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Behavior
createOwnedParameter, createOwnedParameterSet, createPostcondition, createPostcondition, createPrecondition, createPrecondition, getContext, getOwnedParameter, getOwnedParameter, getOwnedParameters, getOwnedParameterSet, getOwnedParameterSet, getOwnedParameterSets, getPostcondition, getPostcondition, getPostconditions, getPrecondition, getPrecondition, getPreconditions, getRedefinedBehavior, getRedefinedBehavior, getRedefinedBehaviors, getSpecification, isReentrant, setIsReentrant, setSpecification, validateFeatureOfContextClassifier, validateMostOneBehaviour, validateMustRealize, validateParametersMatch
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.BehavioredClassifier
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Class
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Classifier
allFeatures, allParents, conformsTo, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, getAllAttributes, getAllOperations, getAllUsedInterfaces, getAttribute, getAttribute, getAttributes, getCollaborationUse, getCollaborationUse, getCollaborationUses, getFeature, getFeature, getFeatures, getGeneral, getGeneral, getGeneralization, getGeneralization, getGeneralizations, getGenerals, getInheritedMember, getInheritedMember, getInheritedMembers, getOperation, getOperation, getOperations, getOwnedUseCase, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitution, getSubstitutions, getUseCase, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, isAbstract, isFinalSpecialization, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateGeneralizationHierarchies, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateSpecializeType
-
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 com.sodius.mdw.metamodel.uml21.EncapsulatedClassifier
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
-
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 com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.StructuredClassifier
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Type
conformsTo, createAssociation, getAssociations, getPackage, setPackage
-
-
-
-
Method Detail
-
isReadOnly
boolean isReadOnly()
Returns the value of the 'Is Read Only' attribute. The default value is"false". If true, this activity must not make any changes to variables outside the activity or to objects. (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the action, then the model is ill-formed.) The default is false (an activity may make nonlocal changes).- Returns:
- the value of the 'Is Read Only' attribute.
- See Also:
setIsReadOnly(boolean),UMLPackage.getActivity_IsReadOnly()
-
setIsReadOnly
void setIsReadOnly(boolean value)
Sets the value of the 'Is Read Only' attribute.- Parameters:
value- the new value of the 'Is Read Only' attribute.- See Also:
isReadOnly()
-
getGroups
MDWEList<ActivityGroup> getGroups()
Returns the value of the 'Group' containment reference list. The list contents are of typeActivityGroup. It is bidirectional and its opposite is 'In Activity'. Top-level groups in the activity.- Returns:
- the value of the 'Group' containment reference list.
- See Also:
UMLPackage.getActivity_Group(),ActivityGroup.getInActivity()
-
createGroup
ActivityGroup createGroup(org.eclipse.emf.ecore.EClass eClass)
Creates a newActivityGroupand appends it to the 'Group' containment reference list.- Parameters:
eClass- The Ecore class of theActivityGroupto create.- Returns:
- The new
ActivityGroup. - See Also:
getGroups()
-
isSingleExecution
boolean isSingleExecution()
Returns the value of the 'Is Single Execution' attribute. The default value is"false". If true, all invocations of the activity are handled by the same execution.- Returns:
- the value of the 'Is Single Execution' attribute.
- See Also:
setIsSingleExecution(boolean),UMLPackage.getActivity_IsSingleExecution()
-
setIsSingleExecution
void setIsSingleExecution(boolean value)
Sets the value of the 'Is Single Execution' attribute.- Parameters:
value- the new value of the 'Is Single Execution' attribute.- See Also:
isSingleExecution()
-
getStructuredNodes
MDWEList<StructuredActivityNode> getStructuredNodes()
Returns the value of the 'Structured Node' reference list. The list contents are of typeStructuredActivityNode. Top-level structured nodes in the activity.- Returns:
- the value of the 'Structured Node' reference list.
- See Also:
UMLPackage.getActivity_StructuredNode()
-
getStructuredNode
StructuredActivityNode getStructuredNode(String name)
Retrieves the firstStructuredActivityNodewith the specified 'Name' from the ' Structured Node' reference list.- Parameters:
name- The 'Name' of theStructuredActivityNodeto retrieve, ornull.- Returns:
- The first
StructuredActivityNodewith the specified 'Name', ornull. - See Also:
getStructuredNodes()
-
getStructuredNode
StructuredActivityNode getStructuredNode(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstStructuredActivityNodewith the specified 'Name' from the ' Structured Node' reference list.- Parameters:
name- The 'Name' of theStructuredActivityNodeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theStructuredActivityNodeto retrieve, ornull.- Returns:
- The first
StructuredActivityNodewith the specified 'Name', ornull. - See Also:
getStructuredNodes()
-
getVariables
MDWEList<Variable> getVariables()
Returns the value of the 'Variable' containment reference list. The list contents are of typeVariable. It is bidirectional and its opposite is 'Activity Scope'. Top-level variables in the activity.- Returns:
- the value of the 'Variable' containment reference list.
- See Also:
UMLPackage.getActivity_Variable(),Variable.getActivityScope()
-
createVariable
Variable createVariable(String name, Type type)
Creates a newVariable, with the specified 'Name', and 'Type', and appends it to the 'Variable' containment reference list.- Parameters:
name- The 'Name' for the newVariable, ornull.type- The 'Type' for the newVariable, ornull.- Returns:
- The new
Variable. - See Also:
getVariables()
-
getVariable
Variable getVariable(String name, Type type)
Retrieves the firstVariablewith the specified 'Name', and 'Type' from the 'Variable' containment reference list.- Parameters:
name- The 'Name' of theVariableto retrieve, ornull.type- The 'Type' of theVariableto retrieve, ornull.- Returns:
- The first
Variablewith the specified 'Name', and 'Type', ornull. - See Also:
getVariables()
-
getVariable
Variable getVariable(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstVariablewith the specified 'Name', and 'Type' from the 'Variable' containment reference list.- Parameters:
name- The 'Name' of theVariableto retrieve, ornull.type- The 'Type' of theVariableto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aVariableon demand if not found.- Returns:
- The first
Variablewith the specified 'Name', and 'Type', ornull. - See Also:
getVariables()
-
getNodes
MDWEList<ActivityNode> getNodes()
Returns the value of the 'Node' containment reference list. The list contents are of typeActivityNode. It is bidirectional and its opposite is 'Activity'. Nodes coordinated by the activity.- Returns:
- the value of the 'Node' containment reference list.
- See Also:
UMLPackage.getActivity_Node(),ActivityNode.getActivity()
-
createNode
ActivityNode createNode(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newActivityNode, with the specified 'Name', and appends it to the ' Node' containment reference list.- Parameters:
name- The 'Name' for the newActivityNode, ornull.eClass- The Ecore class of theActivityNodeto create.- Returns:
- The new
ActivityNode. - See Also:
getNodes()
-
getNode
ActivityNode getNode(String name)
Retrieves the firstActivityNodewith the specified 'Name' from the ' Node' containment reference list.- Parameters:
name- The 'Name' of theActivityNodeto retrieve, ornull.- Returns:
- The first
ActivityNodewith the specified 'Name', ornull. - See Also:
getNodes()
-
getNode
ActivityNode getNode(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstActivityNodewith the specified 'Name' from the ' Node' containment reference list.- Parameters:
name- The 'Name' of theActivityNodeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theActivityNodeto retrieve, ornull.createOnDemand- Whether to create aActivityNodeon demand if not found.- Returns:
- The first
ActivityNodewith the specified 'Name', ornull. - See Also:
getNodes()
-
getEdges
MDWEList<ActivityEdge> getEdges()
Returns the value of the 'Edge' containment reference list. The list contents are of typeActivityEdge. It is bidirectional and its opposite is 'Activity'. Edges expressing flow between nodes of the activity.- Returns:
- the value of the 'Edge' containment reference list.
- See Also:
UMLPackage.getActivity_Edge(),ActivityEdge.getActivity()
-
createEdge
ActivityEdge createEdge(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newActivityEdge, with the specified 'Name', and appends it to the ' Edge' containment reference list.- Parameters:
name- The 'Name' for the newActivityEdge, ornull.eClass- The Ecore class of theActivityEdgeto create.- Returns:
- The new
ActivityEdge. - See Also:
getEdges()
-
getEdge
ActivityEdge getEdge(String name)
Retrieves the firstActivityEdgewith the specified 'Name' from the ' Edge' containment reference list.- Parameters:
name- The 'Name' of theActivityEdgeto retrieve, ornull.- Returns:
- The first
ActivityEdgewith the specified 'Name', ornull. - See Also:
getEdges()
-
getEdge
ActivityEdge getEdge(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstActivityEdgewith the specified 'Name' from the ' Edge' containment reference list.- Parameters:
name- The 'Name' of theActivityEdgeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theActivityEdgeto retrieve, ornull.createOnDemand- Whether to create aActivityEdgeon demand if not found.- Returns:
- The first
ActivityEdgewith the specified 'Name', ornull. - See Also:
getEdges()
-
getPartitions
MDWEList<ActivityPartition> getPartitions()
Returns the value of the 'Partition' reference list. The list contents are of typeActivityPartition. Top-level partitions in the activity.- Returns:
- the value of the 'Partition' reference list.
- See Also:
UMLPackage.getActivity_Partition()
-
createPartition
ActivityPartition createPartition(String name)
Creates a newActivityPartition, with the specified 'Name', and appends it to the ' Partition' reference list.- Parameters:
name- The 'Name' for the newActivityPartition, ornull.- Returns:
- The new
ActivityPartition. - See Also:
getPartitions()
-
getPartition
ActivityPartition getPartition(String name)
Retrieves the firstActivityPartitionwith the specified 'Name' from the ' Partition' reference list.- Parameters:
name- The 'Name' of theActivityPartitionto retrieve, ornull.- Returns:
- The first
ActivityPartitionwith the specified 'Name', ornull. - See Also:
getPartitions()
-
getPartition
ActivityPartition getPartition(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstActivityPartitionwith the specified 'Name' from the ' Partition' reference list.- Parameters:
name- The 'Name' of theActivityPartitionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aActivityPartitionon demand if not found.- Returns:
- The first
ActivityPartitionwith the specified 'Name', ornull. - See Also:
getPartitions()
-
validateNoSupergroups
boolean validateNoSupergroups(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The groups of an activity have no supergroups. true
-
validateActivityParameterNode
boolean validateActivityParameterNode(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The nodes of the activity must include one ActivityParameterNode for each parameter. true
-
validateAutonomous
boolean validateAutonomous(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An activity cannot be autonomous and have a classifier or behavioral feature context at the same time. true
-
-