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.Classifiers.Collections;
51with AMF.UML.Constraints.Collections;
52with AMF.UML.Dependencies.Collections;
53with AMF.UML.Exception_Handlers.Collections;
54with AMF.UML.Input_Pins.Collections;
55with AMF.UML.Interruptible_Activity_Regions.Collections;
56with AMF.UML.Named_Elements;
57with AMF.UML.Namespaces;
58with AMF.UML.Output_Pins.Collections;
59with AMF.UML.Packages.Collections;
60with AMF.UML.Redefinable_Elements.Collections;
61with AMF.UML.String_Expressions;
62with AMF.UML.Structured_Activity_Nodes;
63with AMF.UML.Test_Identity_Actions;
64with AMF.Visitors;
65
66package AMF.Internals.UML_Test_Identity_Actions is
67
68   type UML_Test_Identity_Action_Proxy is
69     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
70       and AMF.UML.Test_Identity_Actions.UML_Test_Identity_Action with null record;
71
72   overriding function Get_First
73    (Self : not null access constant UML_Test_Identity_Action_Proxy)
74       return AMF.UML.Input_Pins.UML_Input_Pin_Access;
75   --  Getter of TestIdentityAction::first.
76   --
77   --  Gives the pin on which an object is placed.
78
79   overriding procedure Set_First
80    (Self : not null access UML_Test_Identity_Action_Proxy;
81     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access);
82   --  Setter of TestIdentityAction::first.
83   --
84   --  Gives the pin on which an object is placed.
85
86   overriding function Get_Result
87    (Self : not null access constant UML_Test_Identity_Action_Proxy)
88       return AMF.UML.Output_Pins.UML_Output_Pin_Access;
89   --  Getter of TestIdentityAction::result.
90   --
91   --  Tells whether the two input objects are identical.
92
93   overriding procedure Set_Result
94    (Self : not null access UML_Test_Identity_Action_Proxy;
95     To   : AMF.UML.Output_Pins.UML_Output_Pin_Access);
96   --  Setter of TestIdentityAction::result.
97   --
98   --  Tells whether the two input objects are identical.
99
100   overriding function Get_Second
101    (Self : not null access constant UML_Test_Identity_Action_Proxy)
102       return AMF.UML.Input_Pins.UML_Input_Pin_Access;
103   --  Getter of TestIdentityAction::second.
104   --
105   --  Gives the pin on which an object is placed.
106
107   overriding procedure Set_Second
108    (Self : not null access UML_Test_Identity_Action_Proxy;
109     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access);
110   --  Setter of TestIdentityAction::second.
111   --
112   --  Gives the pin on which an object is placed.
113
114   overriding function Get_Context
115    (Self : not null access constant UML_Test_Identity_Action_Proxy)
116       return AMF.UML.Classifiers.UML_Classifier_Access;
117   --  Getter of Action::context.
118   --
119   --  The classifier that owns the behavior of which this action is a part.
120
121   overriding function Get_Input
122    (Self : not null access constant UML_Test_Identity_Action_Proxy)
123       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin;
124   --  Getter of Action::input.
125   --
126   --  The ordered set of input pins connected to the Action. These are among
127   --  the total set of inputs.
128
129   overriding function Get_Is_Locally_Reentrant
130    (Self : not null access constant UML_Test_Identity_Action_Proxy)
131       return Boolean;
132   --  Getter of Action::isLocallyReentrant.
133   --
134   --  If true, the action can begin a new, concurrent execution, even if
135   --  there is already another execution of the action ongoing. If false, the
136   --  action cannot begin a new execution until any previous execution has
137   --  completed.
138
139   overriding procedure Set_Is_Locally_Reentrant
140    (Self : not null access UML_Test_Identity_Action_Proxy;
141     To   : Boolean);
142   --  Setter of Action::isLocallyReentrant.
143   --
144   --  If true, the action can begin a new, concurrent execution, even if
145   --  there is already another execution of the action ongoing. If false, the
146   --  action cannot begin a new execution until any previous execution has
147   --  completed.
148
149   overriding function Get_Local_Postcondition
150    (Self : not null access constant UML_Test_Identity_Action_Proxy)
151       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
152   --  Getter of Action::localPostcondition.
153   --
154   --  Constraint that must be satisfied when executed is completed.
155
156   overriding function Get_Local_Precondition
157    (Self : not null access constant UML_Test_Identity_Action_Proxy)
158       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
159   --  Getter of Action::localPrecondition.
160   --
161   --  Constraint that must be satisfied when execution is started.
162
163   overriding function Get_Output
164    (Self : not null access constant UML_Test_Identity_Action_Proxy)
165       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
166   --  Getter of Action::output.
167   --
168   --  The ordered set of output pins connected to the Action. The action
169   --  places its results onto pins in this set.
170
171   overriding function Get_Handler
172    (Self : not null access constant UML_Test_Identity_Action_Proxy)
173       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler;
174   --  Getter of ExecutableNode::handler.
175   --
176   --  A set of exception handlers that are examined if an uncaught exception
177   --  propagates to the outer level of the executable node.
178
179   overriding function Get_Activity
180    (Self : not null access constant UML_Test_Identity_Action_Proxy)
181       return AMF.UML.Activities.UML_Activity_Access;
182   --  Getter of ActivityNode::activity.
183   --
184   --  Activity containing the node.
185
186   overriding procedure Set_Activity
187    (Self : not null access UML_Test_Identity_Action_Proxy;
188     To   : AMF.UML.Activities.UML_Activity_Access);
189   --  Setter of ActivityNode::activity.
190   --
191   --  Activity containing the node.
192
193   overriding function Get_In_Group
194    (Self : not null access constant UML_Test_Identity_Action_Proxy)
195       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
196   --  Getter of ActivityNode::inGroup.
197   --
198   --  Groups containing the node.
199
200   overriding function Get_In_Interruptible_Region
201    (Self : not null access constant UML_Test_Identity_Action_Proxy)
202       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region;
203   --  Getter of ActivityNode::inInterruptibleRegion.
204   --
205   --  Interruptible regions containing the node.
206
207   overriding function Get_In_Partition
208    (Self : not null access constant UML_Test_Identity_Action_Proxy)
209       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
210   --  Getter of ActivityNode::inPartition.
211   --
212   --  Partitions containing the node.
213
214   overriding function Get_In_Structured_Node
215    (Self : not null access constant UML_Test_Identity_Action_Proxy)
216       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
217   --  Getter of ActivityNode::inStructuredNode.
218   --
219   --  Structured activity node containing the node.
220
221   overriding procedure Set_In_Structured_Node
222    (Self : not null access UML_Test_Identity_Action_Proxy;
223     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access);
224   --  Setter of ActivityNode::inStructuredNode.
225   --
226   --  Structured activity node containing the node.
227
228   overriding function Get_Incoming
229    (Self : not null access constant UML_Test_Identity_Action_Proxy)
230       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
231   --  Getter of ActivityNode::incoming.
232   --
233   --  Edges that have the node as target.
234
235   overriding function Get_Outgoing
236    (Self : not null access constant UML_Test_Identity_Action_Proxy)
237       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
238   --  Getter of ActivityNode::outgoing.
239   --
240   --  Edges that have the node as source.
241
242   overriding function Get_Redefined_Node
243    (Self : not null access constant UML_Test_Identity_Action_Proxy)
244       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
245   --  Getter of ActivityNode::redefinedNode.
246   --
247   --  Inherited nodes replaced by this node in a specialization of the
248   --  activity.
249
250   overriding function Get_Is_Leaf
251    (Self : not null access constant UML_Test_Identity_Action_Proxy)
252       return Boolean;
253   --  Getter of RedefinableElement::isLeaf.
254   --
255   --  Indicates whether it is possible to further redefine a
256   --  RedefinableElement. If the value is true, then it is not possible to
257   --  further redefine the RedefinableElement. Note that this property is
258   --  preserved through package merge operations; that is, the capability to
259   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
260   --  the resulting RedefinableElement of a package merge operation where a
261   --  RedefinableElement with isLeaf=false is merged with a matching
262   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
263   --  will have isLeaf=false. Default value is false.
264
265   overriding procedure Set_Is_Leaf
266    (Self : not null access UML_Test_Identity_Action_Proxy;
267     To   : Boolean);
268   --  Setter of RedefinableElement::isLeaf.
269   --
270   --  Indicates whether it is possible to further redefine a
271   --  RedefinableElement. If the value is true, then it is not possible to
272   --  further redefine the RedefinableElement. Note that this property is
273   --  preserved through package merge operations; that is, the capability to
274   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
275   --  the resulting RedefinableElement of a package merge operation where a
276   --  RedefinableElement with isLeaf=false is merged with a matching
277   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
278   --  will have isLeaf=false. Default value is false.
279
280   overriding function Get_Redefined_Element
281    (Self : not null access constant UML_Test_Identity_Action_Proxy)
282       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
283   --  Getter of RedefinableElement::redefinedElement.
284   --
285   --  The redefinable element that is being redefined by this element.
286
287   overriding function Get_Redefinition_Context
288    (Self : not null access constant UML_Test_Identity_Action_Proxy)
289       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
290   --  Getter of RedefinableElement::redefinitionContext.
291   --
292   --  References the contexts that this element may be redefined from.
293
294   overriding function Get_Client_Dependency
295    (Self : not null access constant UML_Test_Identity_Action_Proxy)
296       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
297   --  Getter of NamedElement::clientDependency.
298   --
299   --  Indicates the dependencies that reference the client.
300
301   overriding function Get_Name_Expression
302    (Self : not null access constant UML_Test_Identity_Action_Proxy)
303       return AMF.UML.String_Expressions.UML_String_Expression_Access;
304   --  Getter of NamedElement::nameExpression.
305   --
306   --  The string expression used to define the name of this named element.
307
308   overriding procedure Set_Name_Expression
309    (Self : not null access UML_Test_Identity_Action_Proxy;
310     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
311   --  Setter of NamedElement::nameExpression.
312   --
313   --  The string expression used to define the name of this named element.
314
315   overriding function Get_Namespace
316    (Self : not null access constant UML_Test_Identity_Action_Proxy)
317       return AMF.UML.Namespaces.UML_Namespace_Access;
318   --  Getter of NamedElement::namespace.
319   --
320   --  Specifies the namespace that owns the NamedElement.
321
322   overriding function Get_Qualified_Name
323    (Self : not null access constant UML_Test_Identity_Action_Proxy)
324       return AMF.Optional_String;
325   --  Getter of NamedElement::qualifiedName.
326   --
327   --  A name which allows the NamedElement to be identified within a
328   --  hierarchy of nested Namespaces. It is constructed from the names of the
329   --  containing namespaces starting at the root of the hierarchy and ending
330   --  with the name of the NamedElement itself.
331
332   overriding function Context
333    (Self : not null access constant UML_Test_Identity_Action_Proxy)
334       return AMF.UML.Classifiers.UML_Classifier_Access;
335   --  Operation Action::context.
336   --
337   --  Missing derivation for Action::/context : Classifier
338
339   overriding function Is_Consistent_With
340    (Self : not null access constant UML_Test_Identity_Action_Proxy;
341     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
342       return Boolean;
343   --  Operation RedefinableElement::isConsistentWith.
344   --
345   --  The query isConsistentWith() specifies, for any two RedefinableElements
346   --  in a context in which redefinition is possible, whether redefinition
347   --  would be logically consistent. By default, this is false; this
348   --  operation must be overridden for subclasses of RedefinableElement to
349   --  define the consistency conditions.
350
351   overriding function Is_Redefinition_Context_Valid
352    (Self : not null access constant UML_Test_Identity_Action_Proxy;
353     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
354       return Boolean;
355   --  Operation RedefinableElement::isRedefinitionContextValid.
356   --
357   --  The query isRedefinitionContextValid() specifies whether the
358   --  redefinition contexts of this RedefinableElement are properly related
359   --  to the redefinition contexts of the specified RedefinableElement to
360   --  allow this element to redefine the other. By default at least one of
361   --  the redefinition contexts of this element must be a specialization of
362   --  at least one of the redefinition contexts of the specified element.
363
364   overriding function All_Owning_Packages
365    (Self : not null access constant UML_Test_Identity_Action_Proxy)
366       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
367   --  Operation NamedElement::allOwningPackages.
368   --
369   --  The query allOwningPackages() returns all the directly or indirectly
370   --  owning packages.
371
372   overriding function Is_Distinguishable_From
373    (Self : not null access constant UML_Test_Identity_Action_Proxy;
374     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
375     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
376       return Boolean;
377   --  Operation NamedElement::isDistinguishableFrom.
378   --
379   --  The query isDistinguishableFrom() determines whether two NamedElements
380   --  may logically co-exist within a Namespace. By default, two named
381   --  elements are distinguishable if (a) they have unrelated types or (b)
382   --  they have related types but different names.
383
384   overriding function Namespace
385    (Self : not null access constant UML_Test_Identity_Action_Proxy)
386       return AMF.UML.Namespaces.UML_Namespace_Access;
387   --  Operation NamedElement::namespace.
388   --
389   --  Missing derivation for NamedElement::/namespace : Namespace
390
391   overriding procedure Enter_Element
392    (Self    : not null access constant UML_Test_Identity_Action_Proxy;
393     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
394     Control : in out AMF.Visitors.Traverse_Control);
395   --  Dispatch call to corresponding subprogram of visitor interface.
396
397   overriding procedure Leave_Element
398    (Self    : not null access constant UML_Test_Identity_Action_Proxy;
399     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
400     Control : in out AMF.Visitors.Traverse_Control);
401   --  Dispatch call to corresponding subprogram of visitor interface.
402
403   overriding procedure Visit_Element
404    (Self     : not null access constant UML_Test_Identity_Action_Proxy;
405     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
406     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
407     Control  : in out AMF.Visitors.Traverse_Control);
408   --  Dispatch call to corresponding subprogram of iterator interface.
409
410end AMF.Internals.UML_Test_Identity_Actions;
411