Previous | UML Classes | Table of Contents | UML Packages | Next |
TestIdentifyAction is an action that tests if two values are identical objects.
•
Action (from BasicActions ) on page 247
This action returns true if the two input values are the same identity, false if they are not.
No additional attributes
• first: InputPin [1..1] Gives the pin on which an object is placed. (Subsets Action::input)
• result: OutputPin [1..1] ) Tells whether the two input objects are identical. (Subsets Action::output)
• second: InputPin [1..1] Gives the pin on which an object is placed. (Subsets Action::input)
[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)
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.
No specific notation
TestIdentityAction is introduced to tell when two values refer to the same object.
TestIdentityAction is unchanged from UML 1.5.