public interface Activity extends Behavior
The following features are supported:
UMLPackage.getActivity()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ActivityEdge |
createEdge(String name,
EClass eClass)
Creates a new
ActivityEdge , with the specified 'Name', and appends it to the '
Edge' containment reference list |
ActivityGroup |
createGroup(EClass eClass)
Creates a new
ActivityGroup and appends it to the 'Group' containment reference list |
ActivityNode |
createNode(String name,
EClass eClass)
Creates a new
ActivityNode , with the specified 'Name', and appends it to the '
Node' containment reference list |
ActivityPartition |
createPartition(String name)
Creates a new
ActivityPartition , with the specified 'Name', and appends it to the '
Partition' reference list |
Variable |
createVariable(String name,
Type type)
Creates a new
Variable , with the specified 'Name', and 'Type', and
appends it to the 'Variable' containment reference list |
ActivityEdge |
getEdge(String name)
Retrieves the first
ActivityEdge with the specified 'Name' from the '
Edge' containment reference list |
ActivityEdge |
getEdge(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
ActivityEdge with 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.
|
ActivityNode |
getNode(String name)
Retrieves the first
ActivityNode with the specified 'Name' from the '
Node' containment reference list |
ActivityNode |
getNode(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
ActivityNode with the specified 'Name' from the '
Node' containment reference list |
MDWEList<ActivityNode> |
getNodes()
Returns the value of the 'Node' containment reference list.
|
ActivityPartition |
getPartition(String name)
Retrieves the first
ActivityPartition with the specified 'Name' from the '
Partition' reference list |
ActivityPartition |
getPartition(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
ActivityPartition with the specified 'Name' from the '
Partition' reference list |
MDWEList<ActivityPartition> |
getPartitions()
Returns the value of the 'Partition' reference list.
|
StructuredActivityNode |
getStructuredNode(String name)
Retrieves the first
StructuredActivityNode with the specified 'Name' from the '
Structured Node' reference list |
StructuredActivityNode |
getStructuredNode(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
StructuredActivityNode with the specified 'Name' from the '
Structured Node' reference list |
MDWEList<StructuredActivityNode> |
getStructuredNodes()
Returns the value of the 'Structured Node' reference list.
|
Variable |
getVariable(String name,
Type type)
Retrieves the first
Variable with the specified 'Name', and 'Type' from
the 'Variable' containment reference list |
Variable |
getVariable(String name,
Type type,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
Variable with the specified 'Name', and 'Type' from
the 'Variable' containment reference list |
MDWEList<Variable> |
getVariables()
Returns the value of the 'Variable' containment reference list.
|
boolean |
isReadOnly()
Returns the value of the 'Is Read Only' attribute.
|
boolean |
isSingleExecution()
Returns the value of the 'Is Single Execution' attribute.
|
void |
setIsReadOnly(boolean value)
Sets the value of the '
Is Read Only ' attribute |
void |
setIsSingleExecution(boolean value)
Sets the value of the '
Is Single Execution ' attribute |
boolean |
validateActivityParameterNode(DiagnosticChain diagnostics,
Map context)
The nodes of the activity must include one ActivityParameterNode for each parameter.
|
boolean |
validateAutonomous(DiagnosticChain diagnostics,
Map context)
An activity cannot be autonomous and have a classifier or behavioral feature context at the same time.
|
boolean |
validateNoSupergroups(DiagnosticChain diagnostics,
Map context)
The groups of an activity have no supergroups.
|
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
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities
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
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
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
conformsTo, createAssociation, getAssociations, getPackage, setPackage
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
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
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
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
boolean isReadOnly()
"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).
setIsReadOnly(boolean)
,
UMLPackage.getActivity_IsReadOnly()
void setIsReadOnly(boolean value)
Is Read Only
' attribute.
value
- the new value of the 'Is Read Only' attribute.isReadOnly()
MDWEList<ActivityGroup> getGroups()
ActivityGroup
.
It is bidirectional and its opposite is 'In Activity
'.
Top-level groups in the activity.
UMLPackage.getActivity_Group()
,
ActivityGroup.getInActivity()
ActivityGroup createGroup(EClass eClass)
ActivityGroup
and appends it to the 'Group' containment reference list.
eClass
- The Ecore class of the ActivityGroup
to create.ActivityGroup
.getGroups()
boolean isSingleExecution()
"false"
.
If true, all invocations of the activity are handled by the same execution.
setIsSingleExecution(boolean)
,
UMLPackage.getActivity_IsSingleExecution()
void setIsSingleExecution(boolean value)
Is Single Execution
' attribute.
value
- the new value of the 'Is Single Execution' attribute.isSingleExecution()
MDWEList<StructuredActivityNode> getStructuredNodes()
StructuredActivityNode
.
Top-level structured nodes in the activity.
UMLPackage.getActivity_StructuredNode()
StructuredActivityNode getStructuredNode(String name)
StructuredActivityNode
with the specified 'Name' from the '
Structured Node' reference list.
name
- The 'Name' of the StructuredActivityNode
to retrieve, or null
.StructuredActivityNode
with the specified 'Name', or null
.getStructuredNodes()
StructuredActivityNode getStructuredNode(String name, boolean ignoreCase, EClass eClass)
StructuredActivityNode
with the specified 'Name' from the '
Structured Node' reference list.
name
- The 'Name' of the StructuredActivityNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the StructuredActivityNode
to retrieve, or null
.StructuredActivityNode
with the specified 'Name', or null
.getStructuredNodes()
MDWEList<Variable> getVariables()
Variable
.
It is bidirectional and its opposite is 'Activity Scope
'.
Top-level variables in the activity.
UMLPackage.getActivity_Variable()
,
Variable.getActivityScope()
Variable createVariable(String name, Type type)
Variable
, with the specified 'Name', and 'Type', and
appends it to the 'Variable' containment reference list.
name
- The 'Name' for the new Variable
, or null
.type
- The 'Type' for the new Variable
, or null
.Variable
.getVariables()
Variable getVariable(String name, Type type)
Variable
with the specified 'Name', and 'Type' from
the 'Variable' containment reference list.
name
- The 'Name' of the Variable
to retrieve, or null
.type
- The 'Type' of the Variable
to retrieve, or null
.Variable
with the specified 'Name', and 'Type', or
null
.getVariables()
Variable getVariable(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Variable
with the specified 'Name', and 'Type' from
the 'Variable' containment reference list.
name
- The 'Name' of the Variable
to retrieve, or null
.type
- The 'Type' of the Variable
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Variable
on demand if not found.Variable
with the specified 'Name', and 'Type', or
null
.getVariables()
MDWEList<ActivityNode> getNodes()
ActivityNode
.
It is bidirectional and its opposite is 'Activity
'.
Nodes coordinated by the activity.
UMLPackage.getActivity_Node()
,
ActivityNode.getActivity()
ActivityNode createNode(String name, EClass eClass)
ActivityNode
, with the specified 'Name', and appends it to the '
Node' containment reference list.
name
- The 'Name' for the new ActivityNode
, or null
.eClass
- The Ecore class of the ActivityNode
to create.ActivityNode
.getNodes()
ActivityNode getNode(String name)
ActivityNode
with the specified 'Name' from the '
Node' containment reference list.
name
- The 'Name' of the ActivityNode
to retrieve, or null
.ActivityNode
with the specified 'Name', or null
.getNodes()
ActivityNode getNode(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
ActivityNode
with the specified 'Name' from the '
Node' containment reference list.
name
- The 'Name' of the ActivityNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ActivityNode
to retrieve, or null
.createOnDemand
- Whether to create a ActivityNode
on demand if not found.ActivityNode
with the specified 'Name', or null
.getNodes()
MDWEList<ActivityEdge> getEdges()
ActivityEdge
.
It is bidirectional and its opposite is 'Activity
'.
Edges expressing flow between nodes of the activity.
UMLPackage.getActivity_Edge()
,
ActivityEdge.getActivity()
ActivityEdge createEdge(String name, EClass eClass)
ActivityEdge
, with the specified 'Name', and appends it to the '
Edge' containment reference list.
name
- The 'Name' for the new ActivityEdge
, or null
.eClass
- The Ecore class of the ActivityEdge
to create.ActivityEdge
.getEdges()
ActivityEdge getEdge(String name)
ActivityEdge
with the specified 'Name' from the '
Edge' containment reference list.
name
- The 'Name' of the ActivityEdge
to retrieve, or null
.ActivityEdge
with the specified 'Name', or null
.getEdges()
ActivityEdge getEdge(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
ActivityEdge
with the specified 'Name' from the '
Edge' containment reference list.
name
- The 'Name' of the ActivityEdge
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ActivityEdge
to retrieve, or null
.createOnDemand
- Whether to create a ActivityEdge
on demand if not found.ActivityEdge
with the specified 'Name', or null
.getEdges()
MDWEList<ActivityPartition> getPartitions()
ActivityPartition
.
Top-level partitions in the activity.
UMLPackage.getActivity_Partition()
ActivityPartition createPartition(String name)
ActivityPartition
, with the specified 'Name', and appends it to the '
Partition' reference list.
name
- The 'Name' for the new ActivityPartition
, or null
.ActivityPartition
.getPartitions()
ActivityPartition getPartition(String name)
ActivityPartition
with the specified 'Name' from the '
Partition' reference list.
name
- The 'Name' of the ActivityPartition
to retrieve, or null
.ActivityPartition
with the specified 'Name', or null
.getPartitions()
ActivityPartition getPartition(String name, boolean ignoreCase, boolean createOnDemand)
ActivityPartition
with the specified 'Name' from the '
Partition' reference list.
name
- The 'Name' of the ActivityPartition
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a ActivityPartition
on demand if not found.ActivityPartition
with the specified 'Name', or null
.getPartitions()
boolean validateNoSupergroups(DiagnosticChain diagnostics, Map context)
boolean validateActivityParameterNode(DiagnosticChain diagnostics, Map context)
boolean validateAutonomous(DiagnosticChain diagnostics, Map context)