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.String_Collections;
46with AMF.UML.Activities;
47with AMF.UML.Activity_Edges.Collections;
48with AMF.UML.Activity_Groups.Collections;
49with AMF.UML.Activity_Nodes.Collections;
50with AMF.UML.Activity_Partitions.Collections;
51with AMF.UML.Classifiers.Collections;
52with AMF.UML.Clauses.Collections;
53with AMF.UML.Conditional_Nodes;
54with AMF.UML.Constraints.Collections;
55with AMF.UML.Dependencies.Collections;
56with AMF.UML.Element_Imports.Collections;
57with AMF.UML.Exception_Handlers.Collections;
58with AMF.UML.Input_Pins.Collections;
59with AMF.UML.Interruptible_Activity_Regions.Collections;
60with AMF.UML.Named_Elements.Collections;
61with AMF.UML.Namespaces;
62with AMF.UML.Output_Pins.Collections;
63with AMF.UML.Package_Imports.Collections;
64with AMF.UML.Packageable_Elements.Collections;
65with AMF.UML.Packages.Collections;
66with AMF.UML.Redefinable_Elements.Collections;
67with AMF.UML.String_Expressions;
68with AMF.UML.Structured_Activity_Nodes;
69with AMF.UML.Variables.Collections;
70with AMF.Visitors;
71
72package AMF.Internals.UML_Conditional_Nodes is
73
74   type UML_Conditional_Node_Proxy is
75     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
76       and AMF.UML.Conditional_Nodes.UML_Conditional_Node with null record;
77
78   overriding function Get_Clause
79    (Self : not null access constant UML_Conditional_Node_Proxy)
80       return AMF.UML.Clauses.Collections.Set_Of_UML_Clause;
81   --  Getter of ConditionalNode::clause.
82   --
83   --  Set of clauses composing the conditional.
84
85   overriding function Get_Is_Assured
86    (Self : not null access constant UML_Conditional_Node_Proxy)
87       return Boolean;
88   --  Getter of ConditionalNode::isAssured.
89   --
90   --  If true, the modeler asserts that at least one test will succeed.
91
92   overriding procedure Set_Is_Assured
93    (Self : not null access UML_Conditional_Node_Proxy;
94     To   : Boolean);
95   --  Setter of ConditionalNode::isAssured.
96   --
97   --  If true, the modeler asserts that at least one test will succeed.
98
99   overriding function Get_Is_Determinate
100    (Self : not null access constant UML_Conditional_Node_Proxy)
101       return Boolean;
102   --  Getter of ConditionalNode::isDeterminate.
103   --
104   --  If true, the modeler asserts that at most one test will succeed.
105
106   overriding procedure Set_Is_Determinate
107    (Self : not null access UML_Conditional_Node_Proxy;
108     To   : Boolean);
109   --  Setter of ConditionalNode::isDeterminate.
110   --
111   --  If true, the modeler asserts that at most one test will succeed.
112
113   overriding function Get_Result
114    (Self : not null access constant UML_Conditional_Node_Proxy)
115       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
116   --  Getter of ConditionalNode::result.
117   --
118   --  A list of output pins that constitute the data flow outputs of the
119   --  conditional.
120
121   overriding function Get_Activity
122    (Self : not null access constant UML_Conditional_Node_Proxy)
123       return AMF.UML.Activities.UML_Activity_Access;
124   --  Getter of StructuredActivityNode::activity.
125   --
126   --  Activity immediately containing the node.
127
128   overriding procedure Set_Activity
129    (Self : not null access UML_Conditional_Node_Proxy;
130     To   : AMF.UML.Activities.UML_Activity_Access);
131   --  Setter of StructuredActivityNode::activity.
132   --
133   --  Activity immediately containing the node.
134
135   overriding function Get_Edge
136    (Self : not null access constant UML_Conditional_Node_Proxy)
137       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
138   --  Getter of StructuredActivityNode::edge.
139   --
140   --  Edges immediately contained in the structured node.
141
142   overriding function Get_Must_Isolate
143    (Self : not null access constant UML_Conditional_Node_Proxy)
144       return Boolean;
145   --  Getter of StructuredActivityNode::mustIsolate.
146   --
147   --  If true, then the actions in the node execute in isolation from actions
148   --  outside the node.
149
150   overriding procedure Set_Must_Isolate
151    (Self : not null access UML_Conditional_Node_Proxy;
152     To   : Boolean);
153   --  Setter of StructuredActivityNode::mustIsolate.
154   --
155   --  If true, then the actions in the node execute in isolation from actions
156   --  outside the node.
157
158   overriding function Get_Node
159    (Self : not null access constant UML_Conditional_Node_Proxy)
160       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
161   --  Getter of StructuredActivityNode::node.
162   --
163   --  Nodes immediately contained in the group.
164
165   overriding function Get_Structured_Node_Input
166    (Self : not null access constant UML_Conditional_Node_Proxy)
167       return AMF.UML.Input_Pins.Collections.Set_Of_UML_Input_Pin;
168   --  Getter of StructuredActivityNode::structuredNodeInput.
169   --
170
171   overriding function Get_Structured_Node_Output
172    (Self : not null access constant UML_Conditional_Node_Proxy)
173       return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin;
174   --  Getter of StructuredActivityNode::structuredNodeOutput.
175   --
176
177   overriding function Get_Variable
178    (Self : not null access constant UML_Conditional_Node_Proxy)
179       return AMF.UML.Variables.Collections.Set_Of_UML_Variable;
180   --  Getter of StructuredActivityNode::variable.
181   --
182   --  A variable defined in the scope of the structured activity node. It has
183   --  no value and may not be accessed
184
185   overriding function Get_Element_Import
186    (Self : not null access constant UML_Conditional_Node_Proxy)
187       return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import;
188   --  Getter of Namespace::elementImport.
189   --
190   --  References the ElementImports owned by the Namespace.
191
192   overriding function Get_Imported_Member
193    (Self : not null access constant UML_Conditional_Node_Proxy)
194       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
195   --  Getter of Namespace::importedMember.
196   --
197   --  References the PackageableElements that are members of this Namespace
198   --  as a result of either PackageImports or ElementImports.
199
200   overriding function Get_Member
201    (Self : not null access constant UML_Conditional_Node_Proxy)
202       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
203   --  Getter of Namespace::member.
204   --
205   --  A collection of NamedElements identifiable within the Namespace, either
206   --  by being owned or by being introduced by importing or inheritance.
207
208   overriding function Get_Owned_Member
209    (Self : not null access constant UML_Conditional_Node_Proxy)
210       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
211   --  Getter of Namespace::ownedMember.
212   --
213   --  A collection of NamedElements owned by the Namespace.
214
215   overriding function Get_Owned_Rule
216    (Self : not null access constant UML_Conditional_Node_Proxy)
217       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
218   --  Getter of Namespace::ownedRule.
219   --
220   --  Specifies a set of Constraints owned by this Namespace.
221
222   overriding function Get_Package_Import
223    (Self : not null access constant UML_Conditional_Node_Proxy)
224       return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import;
225   --  Getter of Namespace::packageImport.
226   --
227   --  References the PackageImports owned by the Namespace.
228
229   overriding function Get_Client_Dependency
230    (Self : not null access constant UML_Conditional_Node_Proxy)
231       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
232   --  Getter of NamedElement::clientDependency.
233   --
234   --  Indicates the dependencies that reference the client.
235
236   overriding function Get_Name_Expression
237    (Self : not null access constant UML_Conditional_Node_Proxy)
238       return AMF.UML.String_Expressions.UML_String_Expression_Access;
239   --  Getter of NamedElement::nameExpression.
240   --
241   --  The string expression used to define the name of this named element.
242
243   overriding procedure Set_Name_Expression
244    (Self : not null access UML_Conditional_Node_Proxy;
245     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
246   --  Setter of NamedElement::nameExpression.
247   --
248   --  The string expression used to define the name of this named element.
249
250   overriding function Get_Namespace
251    (Self : not null access constant UML_Conditional_Node_Proxy)
252       return AMF.UML.Namespaces.UML_Namespace_Access;
253   --  Getter of NamedElement::namespace.
254   --
255   --  Specifies the namespace that owns the NamedElement.
256
257   overriding function Get_Qualified_Name
258    (Self : not null access constant UML_Conditional_Node_Proxy)
259       return AMF.Optional_String;
260   --  Getter of NamedElement::qualifiedName.
261   --
262   --  A name which allows the NamedElement to be identified within a
263   --  hierarchy of nested Namespaces. It is constructed from the names of the
264   --  containing namespaces starting at the root of the hierarchy and ending
265   --  with the name of the NamedElement itself.
266
267   overriding function Get_Contained_Edge
268    (Self : not null access constant UML_Conditional_Node_Proxy)
269       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
270   --  Getter of ActivityGroup::containedEdge.
271   --
272   --  Edges immediately contained in the group.
273
274   overriding function Get_Contained_Node
275    (Self : not null access constant UML_Conditional_Node_Proxy)
276       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
277   --  Getter of ActivityGroup::containedNode.
278   --
279   --  Nodes immediately contained in the group.
280
281   overriding function Get_In_Activity
282    (Self : not null access constant UML_Conditional_Node_Proxy)
283       return AMF.UML.Activities.UML_Activity_Access;
284   --  Getter of ActivityGroup::inActivity.
285   --
286   --  Activity containing the group.
287
288   overriding procedure Set_In_Activity
289    (Self : not null access UML_Conditional_Node_Proxy;
290     To   : AMF.UML.Activities.UML_Activity_Access);
291   --  Setter of ActivityGroup::inActivity.
292   --
293   --  Activity containing the group.
294
295   overriding function Get_Subgroup
296    (Self : not null access constant UML_Conditional_Node_Proxy)
297       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
298   --  Getter of ActivityGroup::subgroup.
299   --
300   --  Groups immediately contained in the group.
301
302   overriding function Get_Super_Group
303    (Self : not null access constant UML_Conditional_Node_Proxy)
304       return AMF.UML.Activity_Groups.UML_Activity_Group_Access;
305   --  Getter of ActivityGroup::superGroup.
306   --
307   --  Group immediately containing the group.
308
309   overriding function Get_Context
310    (Self : not null access constant UML_Conditional_Node_Proxy)
311       return AMF.UML.Classifiers.UML_Classifier_Access;
312   --  Getter of Action::context.
313   --
314   --  The classifier that owns the behavior of which this action is a part.
315
316   overriding function Get_Input
317    (Self : not null access constant UML_Conditional_Node_Proxy)
318       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin;
319   --  Getter of Action::input.
320   --
321   --  The ordered set of input pins connected to the Action. These are among
322   --  the total set of inputs.
323
324   overriding function Get_Is_Locally_Reentrant
325    (Self : not null access constant UML_Conditional_Node_Proxy)
326       return Boolean;
327   --  Getter of Action::isLocallyReentrant.
328   --
329   --  If true, the action can begin a new, concurrent execution, even if
330   --  there is already another execution of the action ongoing. If false, the
331   --  action cannot begin a new execution until any previous execution has
332   --  completed.
333
334   overriding procedure Set_Is_Locally_Reentrant
335    (Self : not null access UML_Conditional_Node_Proxy;
336     To   : Boolean);
337   --  Setter of Action::isLocallyReentrant.
338   --
339   --  If true, the action can begin a new, concurrent execution, even if
340   --  there is already another execution of the action ongoing. If false, the
341   --  action cannot begin a new execution until any previous execution has
342   --  completed.
343
344   overriding function Get_Local_Postcondition
345    (Self : not null access constant UML_Conditional_Node_Proxy)
346       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
347   --  Getter of Action::localPostcondition.
348   --
349   --  Constraint that must be satisfied when executed is completed.
350
351   overriding function Get_Local_Precondition
352    (Self : not null access constant UML_Conditional_Node_Proxy)
353       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
354   --  Getter of Action::localPrecondition.
355   --
356   --  Constraint that must be satisfied when execution is started.
357
358   overriding function Get_Output
359    (Self : not null access constant UML_Conditional_Node_Proxy)
360       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
361   --  Getter of Action::output.
362   --
363   --  The ordered set of output pins connected to the Action. The action
364   --  places its results onto pins in this set.
365
366   overriding function Get_Handler
367    (Self : not null access constant UML_Conditional_Node_Proxy)
368       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler;
369   --  Getter of ExecutableNode::handler.
370   --
371   --  A set of exception handlers that are examined if an uncaught exception
372   --  propagates to the outer level of the executable node.
373
374   overriding function Get_In_Group
375    (Self : not null access constant UML_Conditional_Node_Proxy)
376       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
377   --  Getter of ActivityNode::inGroup.
378   --
379   --  Groups containing the node.
380
381   overriding function Get_In_Interruptible_Region
382    (Self : not null access constant UML_Conditional_Node_Proxy)
383       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region;
384   --  Getter of ActivityNode::inInterruptibleRegion.
385   --
386   --  Interruptible regions containing the node.
387
388   overriding function Get_In_Partition
389    (Self : not null access constant UML_Conditional_Node_Proxy)
390       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
391   --  Getter of ActivityNode::inPartition.
392   --
393   --  Partitions containing the node.
394
395   overriding function Get_In_Structured_Node
396    (Self : not null access constant UML_Conditional_Node_Proxy)
397       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
398   --  Getter of ActivityNode::inStructuredNode.
399   --
400   --  Structured activity node containing the node.
401
402   overriding procedure Set_In_Structured_Node
403    (Self : not null access UML_Conditional_Node_Proxy;
404     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access);
405   --  Setter of ActivityNode::inStructuredNode.
406   --
407   --  Structured activity node containing the node.
408
409   overriding function Get_Incoming
410    (Self : not null access constant UML_Conditional_Node_Proxy)
411       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
412   --  Getter of ActivityNode::incoming.
413   --
414   --  Edges that have the node as target.
415
416   overriding function Get_Outgoing
417    (Self : not null access constant UML_Conditional_Node_Proxy)
418       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
419   --  Getter of ActivityNode::outgoing.
420   --
421   --  Edges that have the node as source.
422
423   overriding function Get_Redefined_Node
424    (Self : not null access constant UML_Conditional_Node_Proxy)
425       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
426   --  Getter of ActivityNode::redefinedNode.
427   --
428   --  Inherited nodes replaced by this node in a specialization of the
429   --  activity.
430
431   overriding function Get_Is_Leaf
432    (Self : not null access constant UML_Conditional_Node_Proxy)
433       return Boolean;
434   --  Getter of RedefinableElement::isLeaf.
435   --
436   --  Indicates whether it is possible to further redefine a
437   --  RedefinableElement. If the value is true, then it is not possible to
438   --  further redefine the RedefinableElement. Note that this property is
439   --  preserved through package merge operations; that is, the capability to
440   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
441   --  the resulting RedefinableElement of a package merge operation where a
442   --  RedefinableElement with isLeaf=false is merged with a matching
443   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
444   --  will have isLeaf=false. Default value is false.
445
446   overriding procedure Set_Is_Leaf
447    (Self : not null access UML_Conditional_Node_Proxy;
448     To   : Boolean);
449   --  Setter of RedefinableElement::isLeaf.
450   --
451   --  Indicates whether it is possible to further redefine a
452   --  RedefinableElement. If the value is true, then it is not possible to
453   --  further redefine the RedefinableElement. Note that this property is
454   --  preserved through package merge operations; that is, the capability to
455   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
456   --  the resulting RedefinableElement of a package merge operation where a
457   --  RedefinableElement with isLeaf=false is merged with a matching
458   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
459   --  will have isLeaf=false. Default value is false.
460
461   overriding function Get_Redefined_Element
462    (Self : not null access constant UML_Conditional_Node_Proxy)
463       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
464   --  Getter of RedefinableElement::redefinedElement.
465   --
466   --  The redefinable element that is being redefined by this element.
467
468   overriding function Get_Redefinition_Context
469    (Self : not null access constant UML_Conditional_Node_Proxy)
470       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
471   --  Getter of RedefinableElement::redefinitionContext.
472   --
473   --  References the contexts that this element may be redefined from.
474
475   overriding function Exclude_Collisions
476    (Self : not null access constant UML_Conditional_Node_Proxy;
477     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
478       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
479   --  Operation Namespace::excludeCollisions.
480   --
481   --  The query excludeCollisions() excludes from a set of
482   --  PackageableElements any that would not be distinguishable from each
483   --  other in this namespace.
484
485   overriding function Get_Names_Of_Member
486    (Self : not null access constant UML_Conditional_Node_Proxy;
487     Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
488       return AMF.String_Collections.Set_Of_String;
489   --  Operation Namespace::getNamesOfMember.
490   --
491   --  The query getNamesOfMember() takes importing into account. It gives
492   --  back the set of names that an element would have in an importing
493   --  namespace, either because it is owned, or if not owned then imported
494   --  individually, or if not individually then from a package.
495   --  The query getNamesOfMember() gives a set of all of the names that a
496   --  member would have in a Namespace. In general a member can have multiple
497   --  names in a Namespace if it is imported more than once with different
498   --  aliases. The query takes account of importing. It gives back the set of
499   --  names that an element would have in an importing namespace, either
500   --  because it is owned, or if not owned then imported individually, or if
501   --  not individually then from a package.
502
503   overriding function Import_Members
504    (Self : not null access constant UML_Conditional_Node_Proxy;
505     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
506       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
507   --  Operation Namespace::importMembers.
508   --
509   --  The query importMembers() defines which of a set of PackageableElements
510   --  are actually imported into the namespace. This excludes hidden ones,
511   --  i.e., those which have names that conflict with names of owned members,
512   --  and also excludes elements which would have the same name when imported.
513
514   overriding function Imported_Member
515    (Self : not null access constant UML_Conditional_Node_Proxy)
516       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
517   --  Operation Namespace::importedMember.
518   --
519   --  The importedMember property is derived from the ElementImports and the
520   --  PackageImports. References the PackageableElements that are members of
521   --  this Namespace as a result of either PackageImports or ElementImports.
522
523   overriding function Members_Are_Distinguishable
524    (Self : not null access constant UML_Conditional_Node_Proxy)
525       return Boolean;
526   --  Operation Namespace::membersAreDistinguishable.
527   --
528   --  The Boolean query membersAreDistinguishable() determines whether all of
529   --  the namespace's members are distinguishable within it.
530
531   overriding function Owned_Member
532    (Self : not null access constant UML_Conditional_Node_Proxy)
533       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
534   --  Operation Namespace::ownedMember.
535   --
536   --  Missing derivation for Namespace::/ownedMember : NamedElement
537
538   overriding function All_Owning_Packages
539    (Self : not null access constant UML_Conditional_Node_Proxy)
540       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
541   --  Operation NamedElement::allOwningPackages.
542   --
543   --  The query allOwningPackages() returns all the directly or indirectly
544   --  owning packages.
545
546   overriding function Is_Distinguishable_From
547    (Self : not null access constant UML_Conditional_Node_Proxy;
548     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
549     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
550       return Boolean;
551   --  Operation NamedElement::isDistinguishableFrom.
552   --
553   --  The query isDistinguishableFrom() determines whether two NamedElements
554   --  may logically co-exist within a Namespace. By default, two named
555   --  elements are distinguishable if (a) they have unrelated types or (b)
556   --  they have related types but different names.
557
558   overriding function Namespace
559    (Self : not null access constant UML_Conditional_Node_Proxy)
560       return AMF.UML.Namespaces.UML_Namespace_Access;
561   --  Operation NamedElement::namespace.
562   --
563   --  Missing derivation for NamedElement::/namespace : Namespace
564
565   overriding function Context
566    (Self : not null access constant UML_Conditional_Node_Proxy)
567       return AMF.UML.Classifiers.UML_Classifier_Access;
568   --  Operation Action::context.
569   --
570   --  Missing derivation for Action::/context : Classifier
571
572   overriding function Is_Consistent_With
573    (Self : not null access constant UML_Conditional_Node_Proxy;
574     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
575       return Boolean;
576   --  Operation RedefinableElement::isConsistentWith.
577   --
578   --  The query isConsistentWith() specifies, for any two RedefinableElements
579   --  in a context in which redefinition is possible, whether redefinition
580   --  would be logically consistent. By default, this is false; this
581   --  operation must be overridden for subclasses of RedefinableElement to
582   --  define the consistency conditions.
583
584   overriding function Is_Redefinition_Context_Valid
585    (Self : not null access constant UML_Conditional_Node_Proxy;
586     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
587       return Boolean;
588   --  Operation RedefinableElement::isRedefinitionContextValid.
589   --
590   --  The query isRedefinitionContextValid() specifies whether the
591   --  redefinition contexts of this RedefinableElement are properly related
592   --  to the redefinition contexts of the specified RedefinableElement to
593   --  allow this element to redefine the other. By default at least one of
594   --  the redefinition contexts of this element must be a specialization of
595   --  at least one of the redefinition contexts of the specified element.
596
597   overriding procedure Enter_Element
598    (Self    : not null access constant UML_Conditional_Node_Proxy;
599     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
600     Control : in out AMF.Visitors.Traverse_Control);
601   --  Dispatch call to corresponding subprogram of visitor interface.
602
603   overriding procedure Leave_Element
604    (Self    : not null access constant UML_Conditional_Node_Proxy;
605     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
606     Control : in out AMF.Visitors.Traverse_Control);
607   --  Dispatch call to corresponding subprogram of visitor interface.
608
609   overriding procedure Visit_Element
610    (Self     : not null access constant UML_Conditional_Node_Proxy;
611     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
612     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
613     Control  : in out AMF.Visitors.Traverse_Control);
614   --  Dispatch call to corresponding subprogram of iterator interface.
615
616end AMF.Internals.UML_Conditional_Nodes;
617