All Superinterfaces:
BaseElement, BehavioredClassifier, Class, Classifier, Cloneable, Comparable, Element, EncapsulatedClassifier, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement, RedefinableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, StructuredClassifier, TemplateableElement, Type
All Known Subinterfaces:
Activity, FunctionBehavior, Interaction, OpaqueBehavior, ProtocolStateMachine, StateMachine

public interface Behavior extends Class
A representation of the model object 'Behavior'.

Behavior is a specification of how its context BehavioredClassifier 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.

The following features are supported:

See Also:
Model:
abstract="true" annotation="MOF package='commonbehaviors.mdbasicbehaviors'"
Generated:
  • Method Details

    • getEvent

      Collection<Event> getEvent()
      Returns the value of the 'Event' containment reference list. The list contents are of type Event. It is bidirectional and its opposite is 'Behavior'.

      If the meaning of the 'Event' containment reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Event' containment reference list.
      See Also:
      Model:
      opposite="behavior" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • getObservation

      Collection<Observation> getObservation()
      Returns the value of the 'Observation' containment reference list. The list contents are of type Observation. It is bidirectional and its opposite is 'Behavior'.

      If the meaning of the 'Observation' containment reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Observation' containment reference list.
      See Also:
      Model:
      opposite="behavior" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • get_behavioredClassifierOfOwnedBehavior

      @CheckForNull BehavioredClassifier get_behavioredClassifierOfOwnedBehavior()
      Returns the value of the 'behaviored Classifier Of Owned Behavior' container reference. It is bidirectional and its opposite is 'Owned Behavior'.

      If the meaning of the 'behaviored Classifier Of Owned Behavior' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'behaviored Classifier Of Owned Behavior' container reference.
      See Also:
      Model:
      opposite="ownedBehavior" transient="false" ordered="false"
      Generated:
    • set_behavioredClassifierOfOwnedBehavior

      void set_behavioredClassifierOfOwnedBehavior(@CheckForNull BehavioredClassifier value)
      Sets the value of the 'behaviored Classifier Of Owned Behavior' container reference.
      Parameters:
      value - the new value of the 'behaviored Classifier Of Owned Behavior' container reference.
      See Also:
      Generated:
    • get_behavioredClassifierOfClassifierBehavior

      @CheckForNull BehavioredClassifier get_behavioredClassifierOfClassifierBehavior()
      Returns the value of the 'behaviored Classifier Of Classifier Behavior' reference. It is bidirectional and its opposite is 'Classifier Behavior'.

      If the meaning of the 'behaviored Classifier Of Classifier Behavior' reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'behaviored Classifier Of Classifier Behavior' reference.
      See Also:
      Model:
      opposite="classifierBehavior" ordered="false"
      Generated:
    • set_behavioredClassifierOfClassifierBehavior

      void set_behavioredClassifierOfClassifierBehavior(@CheckForNull BehavioredClassifier value)
      Sets the value of the 'behaviored Classifier Of Classifier Behavior' reference.
      Parameters:
      value - the new value of the 'behaviored Classifier Of Classifier Behavior' reference.
      See Also:
      Generated:
    • getContext

      @CheckForNull BehavioredClassifier getContext()
      Returns the value of the 'Context' reference. It is bidirectional and its opposite is 'behavior Of Context'. The BehavioredClassifier that is the context for the execution of the Behavior. A Behavior that is directly owned as a nestedClassifier does not have a context. Otherwise, to determine the context of a Behavior, find the first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any. If there is such a BehavioredClassifier, then it is the context, unless it is itself a Behavior with a non-empty context, in which case that is also the context for the original Behavior. For example, following this algorithm, the context of an entry Behavior in a StateMachine is the BehavioredClassifier that owns the StateMachine. The features of the context BehavioredClassifier as well as the Elements visible to the context Classifier are visible to the Behavior.
      Returns:
      the value of the 'Context' reference.
      See Also:
      Model:
      opposite="_behaviorOfContext" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • isReentrant

      boolean isReentrant()
      Returns the value of the 'Reentrant' attribute. The default value is "true". Tells whether the Behavior can be invoked while it is still executing from a previous invocation.
      Returns:
      the value of the 'Reentrant' attribute.
      See Also:
      Model:
      default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setReentrant

      void setReentrant(boolean value)
      Sets the value of the 'Reentrant' attribute.
      Parameters:
      value - the new value of the 'Reentrant' attribute.
      See Also:
      Generated:
    • get_decisionNodeOfDecisionInput

      Collection<DecisionNode> get_decisionNodeOfDecisionInput()
      Returns the value of the 'decision Node Of Decision Input' reference list. The list contents are of type DecisionNode. It is bidirectional and its opposite is 'Decision Input'.

      If the meaning of the 'decision Node Of Decision Input' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'decision Node Of Decision Input' reference list.
      See Also:
      Model:
      opposite="decisionInput" ordered="false"
      Generated:
    • get_objectFlowOfTransformation

      Collection<ObjectFlow> get_objectFlowOfTransformation()
      Returns the value of the 'object Flow Of Transformation' reference list. The list contents are of type ObjectFlow. It is bidirectional and its opposite is 'Transformation'.

      If the meaning of the 'object Flow Of Transformation' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'object Flow Of Transformation' reference list.
      See Also:
      Model:
      opposite="transformation" ordered="false"
      Generated:
    • get_objectFlowOfSelection

      Collection<ObjectFlow> get_objectFlowOfSelection()
      Returns the value of the 'object Flow Of Selection' reference list. The list contents are of type ObjectFlow. It is bidirectional and its opposite is 'Selection'.

      If the meaning of the 'object Flow Of Selection' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'object Flow Of Selection' reference list.
      See Also:
      Model:
      opposite="selection" ordered="false"
      Generated:
    • getOwnedParameterSet

      Collection<ParameterSet> getOwnedParameterSet()
      Returns the value of the 'Owned Parameter Set' containment reference list. The list contents are of type ParameterSet. It is bidirectional and its opposite is 'behavior Of Owned Parameter Set'. The ParameterSets owned by this Behavior.
      Returns:
      the value of the 'Owned Parameter Set' containment reference list.
      See Also:
      Model:
      opposite="_behaviorOfOwnedParameterSet" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • get_reduceActionOfReducer

      Collection<ReduceAction> get_reduceActionOfReducer()
      Returns the value of the 'reduce Action Of Reducer' reference list. The list contents are of type ReduceAction. It is bidirectional and its opposite is 'Reducer'.

      If the meaning of the 'reduce Action Of Reducer' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'reduce Action Of Reducer' reference list.
      See Also:
      Model:
      opposite="reducer" ordered="false"
      Generated:
    • get_behaviorExecutionSpecificationOfBehavior

      Collection<BehaviorExecutionSpecification> get_behaviorExecutionSpecificationOfBehavior()
      Returns the value of the 'behavior Execution Specification Of Behavior' reference list. The list contents are of type BehaviorExecutionSpecification. It is bidirectional and its opposite is 'Behavior'.

      If the meaning of the 'behavior Execution Specification Of Behavior' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'behavior Execution Specification Of Behavior' reference list.
      See Also:
      Model:
      opposite="behavior" ordered="false"
      Generated:
    • get_transitionOfEffect

      @CheckForNull Transition get_transitionOfEffect()
      Returns the value of the 'transition Of Effect' container reference. It is bidirectional and its opposite is 'Effect'.

      If the meaning of the 'transition Of Effect' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'transition Of Effect' container reference.
      See Also:
      Model:
      opposite="effect" transient="false" ordered="false"
      Generated:
    • set_transitionOfEffect

      void set_transitionOfEffect(@CheckForNull Transition value)
      Sets the value of the 'transition Of Effect' container reference.
      Parameters:
      value - the new value of the 'transition Of Effect' container reference.
      See Also:
      Generated:
    • get_stateOfEntry

      @CheckForNull State get_stateOfEntry()
      Returns the value of the 'state Of Entry' container reference. It is bidirectional and its opposite is 'Entry'.

      If the meaning of the 'state Of Entry' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'state Of Entry' container reference.
      See Also:
      Model:
      opposite="entry" transient="false" ordered="false"
      Generated:
    • set_stateOfEntry

      void set_stateOfEntry(@CheckForNull State value)
      Sets the value of the 'state Of Entry' container reference.
      Parameters:
      value - the new value of the 'state Of Entry' container reference.
      See Also:
      Generated:
    • get_stateOfExit

      @CheckForNull State get_stateOfExit()
      Returns the value of the 'state Of Exit' container reference. It is bidirectional and its opposite is 'Exit'.

      If the meaning of the 'state Of Exit' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'state Of Exit' container reference.
      See Also:
      Model:
      opposite="exit" transient="false" ordered="false"
      Generated:
    • set_stateOfExit

      void set_stateOfExit(@CheckForNull State value)
      Sets the value of the 'state Of Exit' container reference.
      Parameters:
      value - the new value of the 'state Of Exit' container reference.
      See Also:
      Generated:
    • get_stateOfDoActivity

      @CheckForNull State get_stateOfDoActivity()
      Returns the value of the 'state Of Do Activity' container reference. It is bidirectional and its opposite is 'Do Activity'.

      If the meaning of the 'state Of Do Activity' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'state Of Do Activity' container reference.
      See Also:
      Model:
      opposite="doActivity" transient="false" ordered="false"
      Generated:
    • set_stateOfDoActivity

      void set_stateOfDoActivity(@CheckForNull State value)
      Sets the value of the 'state Of Do Activity' container reference.
      Parameters:
      value - the new value of the 'state Of Do Activity' container reference.
      See Also:
      Generated:
    • getRedefinedBehavior

      Collection<Behavior> getRedefinedBehavior()
      Returns the value of the 'Redefined Behavior' reference list. The list contents are of type Behavior. It is bidirectional and its opposite is 'behavior Of Redefined Behavior'. References the Behavior that this Behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the Behavior implements a BehavioralFeature, it replaces the redefined Behavior. If the Behavior is a classifierBehavior, it extends the redefined Behavior.
      Returns:
      the value of the 'Redefined Behavior' reference list.
      See Also:
      Model:
      opposite="_behaviorOfRedefinedBehavior" ordered="false"
      Generated:
    • get_behaviorOfRedefinedBehavior

      Collection<Behavior> get_behaviorOfRedefinedBehavior()
      Returns the value of the 'behavior Of Redefined Behavior' reference list. The list contents are of type Behavior. It is bidirectional and its opposite is 'Redefined Behavior'.

      If the meaning of the 'behavior Of Redefined Behavior' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'behavior Of Redefined Behavior' reference list.
      See Also:
      Model:
      opposite="redefinedBehavior" ordered="false"
      Generated:
    • getSpecification

      @CheckForNull BehavioralFeature getSpecification()
      Returns the value of the 'Specification' reference. It is bidirectional and its opposite is 'Method'. Designates a BehavioralFeature that the Behavior implements. The BehavioralFeature must be owned by the BehavioredClassifier that owns the Behavior or be inherited by it. The Parameters of the BehavioralFeature and the implementing Behavior must match. A Behavior does not need to have a specification, in which case it either is the classifierBehavior of a BehavioredClassifier or it can only be invoked by another Behavior of the Classifier.
      Returns:
      the value of the 'Specification' reference.
      See Also:
      Model:
      opposite="method" ordered="false"
      Generated:
    • setSpecification

      void setSpecification(@CheckForNull BehavioralFeature value)
      Sets the value of the 'Specification' reference.
      Parameters:
      value - the new value of the 'Specification' reference.
      See Also:
      Generated:
    • getOwnedParameter

      List<Parameter> getOwnedParameter()
      Returns the value of the 'Owned Parameter' containment reference list. The list contents are of type Parameter. It is bidirectional and its opposite is 'behavior Of Owned Parameter'. 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.
      Returns:
      the value of the 'Owned Parameter' containment reference list.
      See Also:
      Model:
      opposite="_behaviorOfOwnedParameter" containment="true" resolveProxies="true"
      Generated:
    • getPrecondition

      Collection<Constraint> getPrecondition()
      Returns the value of the 'Precondition' reference list. The list contents are of type Constraint. It is bidirectional and its opposite is 'behavior Of Precondition'. An optional set of Constraints specifying what must be fulfilled before the Behavior is invoked.
      Returns:
      the value of the 'Precondition' reference list.
      See Also:
      Model:
      opposite="_behaviorOfPrecondition" ordered="false"
      Generated:
    • getPostcondition

      Collection<Constraint> getPostcondition()
      Returns the value of the 'Postcondition' reference list. The list contents are of type Constraint. It is bidirectional and its opposite is 'behavior Of Postcondition'. 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.
      Returns:
      the value of the 'Postcondition' reference list.
      See Also:
      Model:
      opposite="_behaviorOfPostcondition" ordered="false"
      Generated:
    • get_callBehaviorActionOfBehavior

      Collection<CallBehaviorAction> get_callBehaviorActionOfBehavior()
      Returns the value of the 'call Behavior Action Of Behavior' reference list. The list contents are of type CallBehaviorAction. It is bidirectional and its opposite is 'Behavior'.

      If the meaning of the 'call Behavior Action Of Behavior' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'call Behavior Action Of Behavior' reference list.
      See Also:
      Model:
      opposite="behavior" ordered="false"
      Generated:
    • get_connectorOfContract

      Collection<Connector> get_connectorOfContract()
      Returns the value of the 'connector Of Contract' reference list. The list contents are of type Connector. It is bidirectional and its opposite is 'Contract'.

      If the meaning of the 'connector Of Contract' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'connector Of Contract' reference list.
      See Also:
      Model:
      opposite="contract" ordered="false"
      Generated:
    • get_objectNodeOfSelection

      Collection<ObjectNode> get_objectNodeOfSelection()
      Returns the value of the 'object Node Of Selection' reference list. The list contents are of type ObjectNode. It is bidirectional and its opposite is 'Selection'.

      If the meaning of the 'object Node Of Selection' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'object Node Of Selection' reference list.
      See Also:
      Model:
      opposite="selection" ordered="false"
      Generated:
    • get_opaqueExpressionOfBehavior

      Collection<OpaqueExpression> get_opaqueExpressionOfBehavior()
      Returns the value of the 'opaque Expression Of Behavior' reference list. The list contents are of type OpaqueExpression. It is bidirectional and its opposite is 'Behavior'.

      If the meaning of the 'opaque Expression Of Behavior' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'opaque Expression Of Behavior' reference list.
      See Also:
      Model:
      opposite="behavior" ordered="false"
      Generated:
    • hasEvent

      boolean hasEvent() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasObservation

      boolean hasObservation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_decisionNodeOfDecisionInput

      boolean has_decisionNodeOfDecisionInput() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_objectFlowOfTransformation

      boolean has_objectFlowOfTransformation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_objectFlowOfSelection

      boolean has_objectFlowOfSelection() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasOwnedParameterSet

      boolean hasOwnedParameterSet() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_reduceActionOfReducer

      boolean has_reduceActionOfReducer() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_behaviorExecutionSpecificationOfBehavior

      boolean has_behaviorExecutionSpecificationOfBehavior() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasRedefinedBehavior

      boolean hasRedefinedBehavior() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_behaviorOfRedefinedBehavior

      boolean has_behaviorOfRedefinedBehavior() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasOwnedParameter

      boolean hasOwnedParameter() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPrecondition

      boolean hasPrecondition() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPostcondition

      boolean hasPostcondition() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_callBehaviorActionOfBehavior

      boolean has_callBehaviorActionOfBehavior() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_connectorOfContract

      boolean has_connectorOfContract() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_objectNodeOfSelection

      boolean has_objectNodeOfSelection() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_opaqueExpressionOfBehavior

      boolean has_opaqueExpressionOfBehavior() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: