|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 classifier behavior is always a definition of behavior and not an illustration. It describes the sequence of state changes an instance of a classifier may undergo in the course of its lifetime. Its precise semantics depends on the kind of classifier. For example, the classifier behavior of a collaboration represents emergent behavior of all the parts, whereas the classifier behavior of a class is just the behavior of instances of the class separated from the behaviors of any of its parts. When a behavior is associated as the method of a behavioral feature, it defines the implementation of that feature; i.e., the computation that generates the effects of the behavioral feature. As a classifier, a behavior can be specialized. Instantiating a behavior is referred to as �invocating� the behavior, an instantiated behavior is also called a behavior �execution.� A behavior may be invoked directly or its invocation may be the result of invoking the behavioral feature that specifies this behavior. A behavior can also be instantiated as an object in virtue of it being a class. The specification of a behavior can take a number of forms, as described in the subclasses of Behavior. Behavior is an abstract metaclass factoring out the commonalities of these different specification mechanisms. When a behavior is invoked, its execution receives a set of input values that are used to affect the course of execution and as a result of its execution it produces a set of output values which are returned, as specified by its parameters. The observable effects of a behavior execution may include changes of values of various objects involved in the execution, the creation and destruction of objects, generation of communications between objects, as well as an explicit set of output values.
The following features are supported:
Is Reentrant
Context
Redefined Behavior
Specification
Parameter
Formal Parameter
Return Result
Precondition
Postcondition
Owned Parameter Set
UML2Package.getBehavior()
Field Summary | |
static String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
SEPARATOR |
Method Summary | |
ParameterSet |
createOwnedParameterSet(EClass eClass)
Creates a ParameterSet and appends it to the 'Owned Parameter Set' containment reference list |
Parameter |
createParameter(EClass eClass)
Creates a Parameter and appends it to the 'Parameter' containment reference list |
BehavioredClassifier |
getContext()
Returns the value of the 'Context' container reference. |
Parameter |
getFormalParameter(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Formal Parameter' reference list |
EList |
getFormalParameters()
Returns the value of the 'Formal Parameter' reference list. |
EList |
getOwnedMembers()
|
ParameterSet |
getOwnedParameterSet(String unqualifiedName)
Retrieves the ParameterSet with the specified name from the 'Owned Parameter Set' containment reference list |
EList |
getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list. |
EList |
getOwnedRules()
|
Parameter |
getParameter(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Parameter' containment reference list |
EList |
getParameters()
Returns the value of the 'Parameter' containment reference list. |
Constraint |
getPostcondition(String unqualifiedName)
Retrieves the Constraint with the specified name from the 'Postcondition' reference list |
EList |
getPostconditions()
Returns the value of the 'Postcondition' reference list. |
Constraint |
getPrecondition(String unqualifiedName)
Retrieves the Constraint with the specified name from the 'Precondition' reference list |
EList |
getPreconditions()
Returns the value of the 'Precondition' reference list. |
Behavior |
getRedefinedBehavior(String unqualifiedName)
Retrieves the Behavior with the specified name from the 'Redefined Behavior' reference list |
EList |
getRedefinedBehaviors()
Returns the value of the 'Redefined Behavior' reference list. |
EList |
getRedefinedElements()
|
Parameter |
getReturnResult(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Return Result' reference list |
EList |
getReturnResults()
Returns the value of the 'Return Result' reference list. |
BehavioralFeature |
getSpecification()
Returns the value of the 'Specification' reference. |
boolean |
isReentrant()
Returns the value of the 'Is Reentrant' attribute |
void |
setContext(BehavioredClassifier value)
Sets the value of the ' Context ' container reference |
void |
setIsReentrant(boolean value)
Sets the value of the ' Is Reentrant ' attribute |
void |
setSpecification(BehavioralFeature value)
Sets the value of the ' Specification ' reference |
Methods inherited from interface org.eclipse.uml2.Class |
createNestedClassifier, createOwnedOperation, createOwnedReception, getAttributes, getExtension, getExtensions, getFeatures, getGenerals, getNestedClassifier, getNestedClassifiers, getOwnedAttributes, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClasses, inherit, isAbstract, isActive, isMetaclass, setIsAbstract, setIsActive |
Methods inherited from interface org.eclipse.uml2.Namespace |
createElementImport, createOwnedRule, createPackageImport, excludeCollisions, getElementImports, getImportedMember, getImportedMembers, getImportedPackages, getMember, getNamesOfMember, getOwnedRule, getPackageImports, importedMember, importElement, importMembers, importPackage, membersAreDistinguishable, validateImportedMemberDerived, validateMembersAreDistinguishable |
Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createNameExpression, getClientDependency, getName, getNameExpression, getNamespace, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.TemplateableElement |
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, 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.Type |
conformsTo, createAssociation, getNamespace, getPackage |
Methods inherited from interface org.eclipse.uml2.PackageableElement |
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility |
Methods inherited from interface org.eclipse.uml2.ParameterableElement |
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.uml2.RedefinableElement |
getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.EncapsulatedClassifier |
createOwnedPort, getOwnedPort, getOwnedPorts |
Methods inherited from interface org.eclipse.uml2.StructuredClassifier |
createOwnedAttribute, createOwnedConnector, getMembers, getOwnedAttribute, getOwnedConnector, getOwnedConnectors, getPart, getParts, getRole, getRoles |
Field Detail |
public static final String copyright
Method Detail |
public boolean isReentrant()
If the meaning of the 'Is Reentrant' attribute isn't clear, there really should be more of a description here...
Tells whether the behavior can be invoked while it is still executing from a previous invocation.
setIsReentrant(boolean)
,
UML2Package.getBehavior_IsReentrant()
public void setIsReentrant(boolean value)
Is Reentrant
' attribute.
value
- the new value of the 'Is Reentrant' attribute.isReentrant()
public BehavioredClassifier getContext()
Owned Behavior
'.
If the meaning of the 'Context' reference isn't clear, there really should be more of a description here...
The classifier owning the behavior. The features of the context classifier as well as the elements visible to the context classifier are visible to the behavior.
setContext(BehavioredClassifier)
,
UML2Package.getBehavior_Context()
,
BehavioredClassifier.getOwnedBehaviors()
public void setContext(BehavioredClassifier value)
Context
' container reference.
value
- the new value of the 'Context' container reference.getContext()
public EList getRedefinedBehaviors()
Behavior
.
If the meaning of the 'Redefined Behavior' reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_RedefinedBehavior()
public Behavior getRedefinedBehavior(String unqualifiedName)
Behavior
with the specified name from the 'Redefined Behavior' reference list.
unqualifiedName
- The unqualified name of the Behavior
to retrieve.
Behavior
with the specified name, or null
.getRedefinedBehaviors()
public BehavioralFeature getSpecification()
Method
'.
If the meaning of the 'Specification' reference isn't clear, there really should be more of a description here...
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. If a behavior does not have a specification, it is directly associated with a classifier (i.e., it is the behavior of the classifier as a whole).
setSpecification(BehavioralFeature)
,
UML2Package.getBehavior_Specification()
,
BehavioralFeature.getMethods()
public void setSpecification(BehavioralFeature value)
Specification
' reference.
value
- the new value of the 'Specification' reference.getSpecification()
public EList getParameters()
Parameter
.
If the meaning of the 'Parameter' containment reference list isn't clear, there really should be more of a description here...
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. (Specializes Namespace.owned- Member.)
UML2Package.getBehavior_Parameter()
public Parameter getParameter(String unqualifiedName)
Parameter
with the specified name from the 'Parameter' containment reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getParameters()
public Parameter createParameter(EClass eClass)
Parameter
and appends it to the 'Parameter' containment reference list.
eClass
- The Ecore class of the Parameter
to create.
Parameter
.getParameters()
public EList getFormalParameters()
Parameter
.
If the meaning of the 'Formal Parameter' reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_FormalParameter()
public Parameter getFormalParameter(String unqualifiedName)
Parameter
with the specified name from the 'Formal Parameter' reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getFormalParameters()
public EList getReturnResults()
Parameter
.
If the meaning of the 'Return Result' reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_ReturnResult()
public Parameter getReturnResult(String unqualifiedName)
Parameter
with the specified name from the 'Return Result' reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getReturnResults()
public EList getPreconditions()
Constraint
.
If the meaning of the 'Precondition' reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_Precondition()
public Constraint getPrecondition(String unqualifiedName)
Constraint
with the specified name from the 'Precondition' reference list.
unqualifiedName
- The unqualified name of the Constraint
to retrieve.
Constraint
with the specified name, or null
.getPreconditions()
public EList getPostconditions()
Constraint
.
If the meaning of the 'Postcondition' reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_Postcondition()
public Constraint getPostcondition(String unqualifiedName)
Constraint
with the specified name from the 'Postcondition' reference list.
unqualifiedName
- The unqualified name of the Constraint
to retrieve.
Constraint
with the specified name, or null
.getPostconditions()
public EList getOwnedParameterSets()
ParameterSet
.
If the meaning of the 'Owned Parameter Set' containment reference list isn't clear, there really should be more of a description here...
UML2Package.getBehavior_OwnedParameterSet()
public ParameterSet getOwnedParameterSet(String unqualifiedName)
ParameterSet
with the specified name from the 'Owned Parameter Set' containment reference list.
unqualifiedName
- The unqualified name of the ParameterSet
to retrieve.
ParameterSet
with the specified name, or null
.getOwnedParameterSets()
public ParameterSet createOwnedParameterSet(EClass eClass)
ParameterSet
and appends it to the 'Owned Parameter Set' containment reference list.
eClass
- The Ecore class of the ParameterSet
to create.
ParameterSet
.getOwnedParameterSets()
public EList getRedefinedElements()
getRedefinedElements
in interface Classifier
public EList getOwnedMembers()
getOwnedMembers
in interface Class
public EList getOwnedRules()
getOwnedRules
in interface Namespace
UML2Package.getNamespace_OwnedRule()
,
Constraint.getNamespace()
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |