1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com>                --
12-- All rights reserved.                                                     --
13--                                                                          --
14-- Redistribution and use in source and binary forms, with or without       --
15-- modification, are permitted provided that the following conditions       --
16-- are met:                                                                 --
17--                                                                          --
18--  * Redistributions of source code must retain the above copyright        --
19--    notice, this list of conditions and the following disclaimer.         --
20--                                                                          --
21--  * Redistributions in binary form must reproduce the above copyright     --
22--    notice, this list of conditions and the following disclaimer in the   --
23--    documentation and/or other materials provided with the distribution.  --
24--                                                                          --
25--  * Neither the name of the Vadim Godunko, IE nor the names of its        --
26--    contributors may be used to endorse or promote products derived from  --
27--    this software without specific prior written permission.              --
28--                                                                          --
29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS      --
30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT        --
31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR    --
32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT     --
33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   --
34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR   --
36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF   --
37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING     --
38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS       --
39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.             --
40--                                                                          --
41------------------------------------------------------------------------------
42--  $Revision: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $
43------------------------------------------------------------------------------
44with AMF.Internals.UML_Named_Elements;
45with AMF.UML.Activities;
46with AMF.UML.Activity_Edges.Collections;
47with AMF.UML.Activity_Groups.Collections;
48with AMF.UML.Activity_Nodes.Collections;
49with AMF.UML.Activity_Partitions.Collections;
50with AMF.UML.Associations;
51with AMF.UML.Classifiers.Collections;
52with AMF.UML.Constraints.Collections;
53with AMF.UML.Create_Link_Object_Actions;
54with AMF.UML.Dependencies.Collections;
55with AMF.UML.Exception_Handlers.Collections;
56with AMF.UML.Input_Pins.Collections;
57with AMF.UML.Interruptible_Activity_Regions.Collections;
58with AMF.UML.Link_End_Creation_Datas.Collections;
59with AMF.UML.Link_End_Datas.Collections;
60with AMF.UML.Named_Elements;
61with AMF.UML.Namespaces;
62with AMF.UML.Output_Pins.Collections;
63with AMF.UML.Packages.Collections;
64with AMF.UML.Redefinable_Elements.Collections;
65with AMF.UML.String_Expressions;
66with AMF.UML.Structured_Activity_Nodes;
67with AMF.Visitors;
68
69package AMF.Internals.UML_Create_Link_Object_Actions is
70
71   type UML_Create_Link_Object_Action_Proxy is
72     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
73       and AMF.UML.Create_Link_Object_Actions.UML_Create_Link_Object_Action with null record;
74
75   overriding function Get_Result
76    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
77       return AMF.UML.Output_Pins.UML_Output_Pin_Access;
78   --  Getter of CreateLinkObjectAction::result.
79   --
80   --  Gives the output pin on which the result is put.
81
82   overriding procedure Set_Result
83    (Self : not null access UML_Create_Link_Object_Action_Proxy;
84     To   : AMF.UML.Output_Pins.UML_Output_Pin_Access);
85   --  Setter of CreateLinkObjectAction::result.
86   --
87   --  Gives the output pin on which the result is put.
88
89   overriding function Get_End_Data
90    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
91       return AMF.UML.Link_End_Creation_Datas.Collections.Set_Of_UML_Link_End_Creation_Data;
92   --  Getter of CreateLinkAction::endData.
93   --
94   --  Specifies ends of association and inputs.
95
96   overriding function Get_End_Data
97    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
98       return AMF.UML.Link_End_Datas.Collections.Set_Of_UML_Link_End_Data;
99   --  Getter of LinkAction::endData.
100   --
101   --  Data identifying one end of a link by the objects on its ends and
102   --  qualifiers.
103
104   overriding function Get_Input_Value
105    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
106       return AMF.UML.Input_Pins.Collections.Set_Of_UML_Input_Pin;
107   --  Getter of LinkAction::inputValue.
108   --
109   --  Pins taking end objects and qualifier values as input.
110
111   overriding function Get_Context
112    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
113       return AMF.UML.Classifiers.UML_Classifier_Access;
114   --  Getter of Action::context.
115   --
116   --  The classifier that owns the behavior of which this action is a part.
117
118   overriding function Get_Input
119    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
120       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin;
121   --  Getter of Action::input.
122   --
123   --  The ordered set of input pins connected to the Action. These are among
124   --  the total set of inputs.
125
126   overriding function Get_Is_Locally_Reentrant
127    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
128       return Boolean;
129   --  Getter of Action::isLocallyReentrant.
130   --
131   --  If true, the action can begin a new, concurrent execution, even if
132   --  there is already another execution of the action ongoing. If false, the
133   --  action cannot begin a new execution until any previous execution has
134   --  completed.
135
136   overriding procedure Set_Is_Locally_Reentrant
137    (Self : not null access UML_Create_Link_Object_Action_Proxy;
138     To   : Boolean);
139   --  Setter of Action::isLocallyReentrant.
140   --
141   --  If true, the action can begin a new, concurrent execution, even if
142   --  there is already another execution of the action ongoing. If false, the
143   --  action cannot begin a new execution until any previous execution has
144   --  completed.
145
146   overriding function Get_Local_Postcondition
147    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
148       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
149   --  Getter of Action::localPostcondition.
150   --
151   --  Constraint that must be satisfied when executed is completed.
152
153   overriding function Get_Local_Precondition
154    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
155       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
156   --  Getter of Action::localPrecondition.
157   --
158   --  Constraint that must be satisfied when execution is started.
159
160   overriding function Get_Output
161    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
162       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
163   --  Getter of Action::output.
164   --
165   --  The ordered set of output pins connected to the Action. The action
166   --  places its results onto pins in this set.
167
168   overriding function Get_Handler
169    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
170       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler;
171   --  Getter of ExecutableNode::handler.
172   --
173   --  A set of exception handlers that are examined if an uncaught exception
174   --  propagates to the outer level of the executable node.
175
176   overriding function Get_Activity
177    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
178       return AMF.UML.Activities.UML_Activity_Access;
179   --  Getter of ActivityNode::activity.
180   --
181   --  Activity containing the node.
182
183   overriding procedure Set_Activity
184    (Self : not null access UML_Create_Link_Object_Action_Proxy;
185     To   : AMF.UML.Activities.UML_Activity_Access);
186   --  Setter of ActivityNode::activity.
187   --
188   --  Activity containing the node.
189
190   overriding function Get_In_Group
191    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
192       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
193   --  Getter of ActivityNode::inGroup.
194   --
195   --  Groups containing the node.
196
197   overriding function Get_In_Interruptible_Region
198    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
199       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region;
200   --  Getter of ActivityNode::inInterruptibleRegion.
201   --
202   --  Interruptible regions containing the node.
203
204   overriding function Get_In_Partition
205    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
206       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
207   --  Getter of ActivityNode::inPartition.
208   --
209   --  Partitions containing the node.
210
211   overriding function Get_In_Structured_Node
212    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
213       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
214   --  Getter of ActivityNode::inStructuredNode.
215   --
216   --  Structured activity node containing the node.
217
218   overriding procedure Set_In_Structured_Node
219    (Self : not null access UML_Create_Link_Object_Action_Proxy;
220     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access);
221   --  Setter of ActivityNode::inStructuredNode.
222   --
223   --  Structured activity node containing the node.
224
225   overriding function Get_Incoming
226    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
227       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
228   --  Getter of ActivityNode::incoming.
229   --
230   --  Edges that have the node as target.
231
232   overriding function Get_Outgoing
233    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
234       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
235   --  Getter of ActivityNode::outgoing.
236   --
237   --  Edges that have the node as source.
238
239   overriding function Get_Redefined_Node
240    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
241       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
242   --  Getter of ActivityNode::redefinedNode.
243   --
244   --  Inherited nodes replaced by this node in a specialization of the
245   --  activity.
246
247   overriding function Get_Is_Leaf
248    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
249       return Boolean;
250   --  Getter of RedefinableElement::isLeaf.
251   --
252   --  Indicates whether it is possible to further redefine a
253   --  RedefinableElement. If the value is true, then it is not possible to
254   --  further redefine the RedefinableElement. Note that this property is
255   --  preserved through package merge operations; that is, the capability to
256   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
257   --  the resulting RedefinableElement of a package merge operation where a
258   --  RedefinableElement with isLeaf=false is merged with a matching
259   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
260   --  will have isLeaf=false. Default value is false.
261
262   overriding procedure Set_Is_Leaf
263    (Self : not null access UML_Create_Link_Object_Action_Proxy;
264     To   : Boolean);
265   --  Setter of RedefinableElement::isLeaf.
266   --
267   --  Indicates whether it is possible to further redefine a
268   --  RedefinableElement. If the value is true, then it is not possible to
269   --  further redefine the RedefinableElement. Note that this property is
270   --  preserved through package merge operations; that is, the capability to
271   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
272   --  the resulting RedefinableElement of a package merge operation where a
273   --  RedefinableElement with isLeaf=false is merged with a matching
274   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
275   --  will have isLeaf=false. Default value is false.
276
277   overriding function Get_Redefined_Element
278    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
279       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
280   --  Getter of RedefinableElement::redefinedElement.
281   --
282   --  The redefinable element that is being redefined by this element.
283
284   overriding function Get_Redefinition_Context
285    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
286       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
287   --  Getter of RedefinableElement::redefinitionContext.
288   --
289   --  References the contexts that this element may be redefined from.
290
291   overriding function Get_Client_Dependency
292    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
293       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
294   --  Getter of NamedElement::clientDependency.
295   --
296   --  Indicates the dependencies that reference the client.
297
298   overriding function Get_Name_Expression
299    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
300       return AMF.UML.String_Expressions.UML_String_Expression_Access;
301   --  Getter of NamedElement::nameExpression.
302   --
303   --  The string expression used to define the name of this named element.
304
305   overriding procedure Set_Name_Expression
306    (Self : not null access UML_Create_Link_Object_Action_Proxy;
307     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
308   --  Setter of NamedElement::nameExpression.
309   --
310   --  The string expression used to define the name of this named element.
311
312   overriding function Get_Namespace
313    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
314       return AMF.UML.Namespaces.UML_Namespace_Access;
315   --  Getter of NamedElement::namespace.
316   --
317   --  Specifies the namespace that owns the NamedElement.
318
319   overriding function Get_Qualified_Name
320    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
321       return AMF.Optional_String;
322   --  Getter of NamedElement::qualifiedName.
323   --
324   --  A name which allows the NamedElement to be identified within a
325   --  hierarchy of nested Namespaces. It is constructed from the names of the
326   --  containing namespaces starting at the root of the hierarchy and ending
327   --  with the name of the NamedElement itself.
328
329   overriding function Association
330    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
331       return AMF.UML.Associations.UML_Association_Access;
332   --  Operation LinkAction::association.
333   --
334   --  The association operates on LinkAction. It returns the association of
335   --  the action.
336
337   overriding function Context
338    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
339       return AMF.UML.Classifiers.UML_Classifier_Access;
340   --  Operation Action::context.
341   --
342   --  Missing derivation for Action::/context : Classifier
343
344   overriding function Is_Consistent_With
345    (Self : not null access constant UML_Create_Link_Object_Action_Proxy;
346     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
347       return Boolean;
348   --  Operation RedefinableElement::isConsistentWith.
349   --
350   --  The query isConsistentWith() specifies, for any two RedefinableElements
351   --  in a context in which redefinition is possible, whether redefinition
352   --  would be logically consistent. By default, this is false; this
353   --  operation must be overridden for subclasses of RedefinableElement to
354   --  define the consistency conditions.
355
356   overriding function Is_Redefinition_Context_Valid
357    (Self : not null access constant UML_Create_Link_Object_Action_Proxy;
358     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
359       return Boolean;
360   --  Operation RedefinableElement::isRedefinitionContextValid.
361   --
362   --  The query isRedefinitionContextValid() specifies whether the
363   --  redefinition contexts of this RedefinableElement are properly related
364   --  to the redefinition contexts of the specified RedefinableElement to
365   --  allow this element to redefine the other. By default at least one of
366   --  the redefinition contexts of this element must be a specialization of
367   --  at least one of the redefinition contexts of the specified element.
368
369   overriding function All_Owning_Packages
370    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
371       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
372   --  Operation NamedElement::allOwningPackages.
373   --
374   --  The query allOwningPackages() returns all the directly or indirectly
375   --  owning packages.
376
377   overriding function Is_Distinguishable_From
378    (Self : not null access constant UML_Create_Link_Object_Action_Proxy;
379     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
380     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
381       return Boolean;
382   --  Operation NamedElement::isDistinguishableFrom.
383   --
384   --  The query isDistinguishableFrom() determines whether two NamedElements
385   --  may logically co-exist within a Namespace. By default, two named
386   --  elements are distinguishable if (a) they have unrelated types or (b)
387   --  they have related types but different names.
388
389   overriding function Namespace
390    (Self : not null access constant UML_Create_Link_Object_Action_Proxy)
391       return AMF.UML.Namespaces.UML_Namespace_Access;
392   --  Operation NamedElement::namespace.
393   --
394   --  Missing derivation for NamedElement::/namespace : Namespace
395
396   overriding procedure Enter_Element
397    (Self    : not null access constant UML_Create_Link_Object_Action_Proxy;
398     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
399     Control : in out AMF.Visitors.Traverse_Control);
400   --  Dispatch call to corresponding subprogram of visitor interface.
401
402   overriding procedure Leave_Element
403    (Self    : not null access constant UML_Create_Link_Object_Action_Proxy;
404     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
405     Control : in out AMF.Visitors.Traverse_Control);
406   --  Dispatch call to corresponding subprogram of visitor interface.
407
408   overriding procedure Visit_Element
409    (Self     : not null access constant UML_Create_Link_Object_Action_Proxy;
410     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
411     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
412     Control  : in out AMF.Visitors.Traverse_Control);
413   --  Dispatch call to corresponding subprogram of iterator interface.
414
415end AMF.Internals.UML_Create_Link_Object_Actions;
416