Previous UML Classes Table of Contents UML Packages Next


11.3.48 TestIdentityAction

IntermediateActions


   TestIdentifyAction is an action that tests if two values are identical objects.

*Generalizations

   

    Action (from BasicActions ) on page 247

*Description

   This action returns true if the two input values are the same identity, false if they are not.

*Attributes

   No additional attributes

*Associations

*Constraints

   [1] The input pins have no type.

   self.first.type->size() = 0

   and self.second.type->size() = 0

   [2] The multiplicity of the input pins is 1..1.

   self.first.multiplicity.is(1,1)

   and self.second.multiplicity.is(1,1)

   [3] The type of the result is Boolean.

   self.result.type.oclIsTypeOf(Boolean)

*Semantics

   When all the prerequisites of the action have been satisfied, the input values are obtained from the input pins and made available to the computation. If the two input values represent the same object (regardless of any implementation-level encoding), the value true is placed on the output pin of the action execution, otherwise the value false is placed on the output pin. The execution of the action is complete.

*Notation

   No specific notation

   TestIdentityAction is introduced to tell when two values refer to the same object.

*Changes from previous UML

   TestIdentityAction is unchanged from UML 1.5.