|Previous||UML Classes||Table of Contents||UML Packages||Next|
CreateObjectAction is an action that creates an object that conforms to a statically specified classifier and puts it on an
output pin at runtime.
Action (from BasicActions ) on page 247
This action instantiates a classifier.
No additional attributes
• classifier : Classifier [1..1] Classifier to be instantiated.
• result : OutputPin [1..1] Gives the output pin on which the result is put. (Subsets Action::output)
 The classifier cannot be abstract.
not (self.classifier.isAbstract = #true)
 The classifier cannot be an association class.
 The type of the result pin must be the same as the classifier of the action.
self.result.type = self.classifier
 The multiplicity of the output pin is 1..1.
The new object is created, and the classifier of the object is set to the given classifier. The new object is returned as
the value of the action. The action has no other effect. In particular, no behaviors are executed, no initial expressions
are evaluated, and no state machine transitions are triggered. The new object has no structural feature values and participates
in no links.
No specific notation
CreateObjectAction is introduced for creating new objects.
Same as UML 1.5