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