|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Behavior
A representation of the model object 'Behavior'. Behavior is a specification of how its context classifier changes state over time. This specification may be either a definition of possible behavior execution or emergent behavior, or a selective illustration of an interesting subset of possible executions. The latter form is typically used for capturing examples, such as a trace of a particular execution. A behavior owns zero or more parameter sets.
The following features are supported:
Is Reentrant
Redefined Behavior
Owned Parameter
Context
Precondition
Postcondition
Owned Parameter Set
Specification
UMLPackage.getBehavior()
Method Summary | |
---|---|
Parameter |
createOwnedParameter(java.lang.String name,
Type type)
Creates a new Parameter , with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list |
ParameterSet |
createOwnedParameterSet(java.lang.String name)
Creates a new ParameterSet , with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list |
Constraint |
createPostcondition(java.lang.String name)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Postcondition' reference list |
Constraint |
createPostcondition(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Postcondition' reference list |
Constraint |
createPrecondition(java.lang.String name)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Precondition' reference list |
Constraint |
createPrecondition(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Precondition' reference list |
BehavioredClassifier |
getContext()
Returns the value of the 'Context' reference. |
Parameter |
getOwnedParameter(java.lang.String name,
Type type)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list |
Parameter |
getOwnedParameter(java.lang.String name,
Type type,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list |
org.eclipse.emf.common.util.EList<Parameter> |
getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. |
ParameterSet |
getOwnedParameterSet(java.lang.String name)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list |
ParameterSet |
getOwnedParameterSet(java.lang.String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list |
org.eclipse.emf.common.util.EList<ParameterSet> |
getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list. |
Constraint |
getPostcondition(java.lang.String name)
Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list |
Constraint |
getPostcondition(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list |
org.eclipse.emf.common.util.EList<Constraint> |
getPostconditions()
Returns the value of the 'Postcondition' reference list. |
Constraint |
getPrecondition(java.lang.String name)
Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list |
Constraint |
getPrecondition(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list |
org.eclipse.emf.common.util.EList<Constraint> |
getPreconditions()
Returns the value of the 'Precondition' reference list. |
Behavior |
getRedefinedBehavior(java.lang.String name)
Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list |
Behavior |
getRedefinedBehavior(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list |
org.eclipse.emf.common.util.EList<Behavior> |
getRedefinedBehaviors()
Returns the value of the 'Redefined Behavior' reference list. |
BehavioralFeature |
getSpecification()
Returns the value of the 'Specification' reference. |
boolean |
isReentrant()
Returns the value of the 'Is Reentrant' attribute. |
void |
setIsReentrant(boolean value)
Sets the value of the ' Is Reentrant ' attribute |
void |
setSpecification(BehavioralFeature value)
Sets the value of the ' Specification ' reference |
boolean |
validateFeatureOfContextClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The implemented behavioral feature must be a feature (possibly inherited) of the context classifier of the behavior. |
boolean |
validateMostOneBehaviour(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
There may be at most one behavior for a given pairing of classifier (as owner of the behavior) and behavioral feature (as specification of the behavior). |
boolean |
validateMustRealize(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If the implemented behavioral feature has been redefined in the ancestors of the owner of the behavior, then the behavior must realize the latest redefining behavioral feature. |
boolean |
validateParametersMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The parameters of the behavior must match the parameters of the implemented behavioral feature. |
Methods inherited from interface org.eclipse.uml2.uml.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 org.eclipse.uml2.uml.EncapsulatedClassifier |
---|
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts |
Methods inherited from interface org.eclipse.uml2.uml.StructuredClassifier |
---|
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities |
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 |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
---|
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
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 |
Methods inherited from interface org.eclipse.uml2.uml.Type |
---|
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
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 |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
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 |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Method Detail |
---|
boolean isReentrant()
"false"
.
Tells whether the behavior can be invoked while it is still executing from a previous invocation.
setIsReentrant(boolean)
,
UMLPackage.getBehavior_IsReentrant()
void setIsReentrant(boolean value)
Is Reentrant
' attribute.
value
- the new value of the 'Is Reentrant' attribute.isReentrant()
org.eclipse.emf.common.util.EList<Behavior> getRedefinedBehaviors()
Behavior
.
This feature subsets the following features:
References a behavior that this behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the behavior implements a behavioral feature, it replaces the redefined behavior. If the behavior is a classifier behavior, it extends the redefined behavior.
UMLPackage.getBehavior_RedefinedBehavior()
Behavior getRedefinedBehavior(java.lang.String name)
Behavior
with the specified 'Name' from the 'Redefined Behavior' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.
Behavior
with the specified 'Name', or null
.getRedefinedBehaviors()
Behavior getRedefinedBehavior(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Behavior
with the specified 'Name' from the 'Redefined Behavior' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Behavior
to retrieve, or null
.
Behavior
with the specified 'Name', or null
.getRedefinedBehaviors()
org.eclipse.emf.common.util.EList<Parameter> getOwnedParameters()
Parameter
.
This feature subsets the following features:
References a list of parameters to the behavior which describes the order and type of arguments that can be given when the behavior is invoked and of the values which will be returned when the behavior completes its execution.
UMLPackage.getBehavior_OwnedParameter()
Parameter createOwnedParameter(java.lang.String name, Type type)
Parameter
, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.
name
- The 'Name' for the new Parameter
, or null
.type
- The 'Type' for the new Parameter
, or null
.
Parameter
.getOwnedParameters()
Parameter getOwnedParameter(java.lang.String name, Type type)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve, or null
.type
- The 'Type' of the Parameter
to retrieve, or null
.
Parameter
with the specified 'Name', and 'Type', or null
.getOwnedParameters()
Parameter getOwnedParameter(java.lang.String name, Type type, boolean ignoreCase, boolean createOnDemand)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve, or null
.type
- The 'Type' of the Parameter
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Parameter
on demand if not found.
Parameter
with the specified 'Name', and 'Type', or null
.getOwnedParameters()
BehavioredClassifier getContext()
This feature subsets the following features:
The classifier that is the context for the execution of the behavior. If the behavior is owned by a BehavioredClassifier, that classifier is the context. Otherwise, the context is the first BehavioredClassifier reached by following the chain of owner relationships. For example, following this algorithm, the context of an entry action in a state machine is the classifier that owns the state machine. The features of the context classifier as well as the elements visible to the context classifier are visible to the behavior.
UMLPackage.getBehavior_Context()
org.eclipse.emf.common.util.EList<Constraint> getPreconditions()
Constraint
.
This feature subsets the following features:
An optional set of Constraints specifying what must be fulfilled when the behavior is invoked.
UMLPackage.getBehavior_Precondition()
Constraint createPrecondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
Constraint
, with the specified 'Name', and appends it to the 'Precondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.
Constraint
.getPreconditions()
Constraint createPrecondition(java.lang.String name)
Constraint
, with the specified 'Name', and appends it to the 'Precondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.
Constraint
.getPreconditions()
Constraint getPrecondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Precondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.
Constraint
with the specified 'Name', or null
.getPreconditions()
Constraint getPrecondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the 'Precondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Constraint
to retrieve, or null
.createOnDemand
- Whether to create a Constraint
on demand if not found.
Constraint
with the specified 'Name', or null
.getPreconditions()
org.eclipse.emf.common.util.EList<Constraint> getPostconditions()
Constraint
.
This feature subsets the following features:
An optional set of Constraints specifying what is fulfilled after the execution of the behavior is completed, if its precondition was fulfilled before its invocation.
UMLPackage.getBehavior_Postcondition()
Constraint createPostcondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
Constraint
, with the specified 'Name', and appends it to the 'Postcondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.
Constraint
.getPostconditions()
Constraint createPostcondition(java.lang.String name)
Constraint
, with the specified 'Name', and appends it to the 'Postcondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.
Constraint
.getPostconditions()
Constraint getPostcondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Postcondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.
Constraint
with the specified 'Name', or null
.getPostconditions()
Constraint getPostcondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the 'Postcondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Constraint
to retrieve, or null
.createOnDemand
- Whether to create a Constraint
on demand if not found.
Constraint
with the specified 'Name', or null
.getPostconditions()
org.eclipse.emf.common.util.EList<ParameterSet> getOwnedParameterSets()
ParameterSet
.
This feature subsets the following features:
The ParameterSets owned by this Behavior.
UMLPackage.getBehavior_OwnedParameterSet()
ParameterSet createOwnedParameterSet(java.lang.String name)
ParameterSet
, with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list.
name
- The 'Name' for the new ParameterSet
, or null
.
ParameterSet
.getOwnedParameterSets()
ParameterSet getOwnedParameterSet(java.lang.String name)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.
ParameterSet
with the specified 'Name', or null
.getOwnedParameterSets()
ParameterSet getOwnedParameterSet(java.lang.String name, boolean ignoreCase, boolean createOnDemand)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a ParameterSet
on demand if not found.
ParameterSet
with the specified 'Name', or null
.getOwnedParameterSets()
BehavioralFeature getSpecification()
Method
'.
Designates a behavioral feature that the behavior implements. The behavioral feature must be owned by the classifier that owns the behavior or be inherited by it. The parameters of the behavioral feature and the implementing behavior must match. A behavior does not need to have a specification, in which case it either is the classifer behavior of a BehavioredClassifier or it can only be invoked by another behavior of the classifier.
setSpecification(BehavioralFeature)
,
UMLPackage.getBehavior_Specification()
,
BehavioralFeature.getMethods()
void setSpecification(BehavioralFeature value)
Specification
' reference.
value
- the new value of the 'Specification' reference.getSpecification()
boolean validateParametersMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateFeatureOfContextClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateMustRealize(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateMostOneBehaviour(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |