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.Dependencies.Collections;
51with AMF.UML.Elements;
52with AMF.UML.Named_Elements;
53with AMF.UML.Namespaces;
54with AMF.UML.Packages.Collections;
55with AMF.UML.String_Expressions;
56with AMF.Visitors;
57
58package AMF.Internals.UML_Activity_Partitions is
59
60   type UML_Activity_Partition_Proxy is
61     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
62       and AMF.UML.Activity_Partitions.UML_Activity_Partition with null record;
63
64   overriding function Get_Edge
65    (Self : not null access constant UML_Activity_Partition_Proxy)
66       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
67   --  Getter of ActivityPartition::edge.
68   --
69   --  Edges immediately contained in the group.
70
71   overriding function Get_Is_Dimension
72    (Self : not null access constant UML_Activity_Partition_Proxy)
73       return Boolean;
74   --  Getter of ActivityPartition::isDimension.
75   --
76   --  Tells whether the partition groups other partitions along a dimension.
77
78   overriding procedure Set_Is_Dimension
79    (Self : not null access UML_Activity_Partition_Proxy;
80     To   : Boolean);
81   --  Setter of ActivityPartition::isDimension.
82   --
83   --  Tells whether the partition groups other partitions along a dimension.
84
85   overriding function Get_Is_External
86    (Self : not null access constant UML_Activity_Partition_Proxy)
87       return Boolean;
88   --  Getter of ActivityPartition::isExternal.
89   --
90   --  Tells whether the partition represents an entity to which the
91   --  partitioning structure does not apply.
92
93   overriding procedure Set_Is_External
94    (Self : not null access UML_Activity_Partition_Proxy;
95     To   : Boolean);
96   --  Setter of ActivityPartition::isExternal.
97   --
98   --  Tells whether the partition represents an entity to which the
99   --  partitioning structure does not apply.
100
101   overriding function Get_Node
102    (Self : not null access constant UML_Activity_Partition_Proxy)
103       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
104   --  Getter of ActivityPartition::node.
105   --
106   --  Nodes immediately contained in the group.
107
108   overriding function Get_Represents
109    (Self : not null access constant UML_Activity_Partition_Proxy)
110       return AMF.UML.Elements.UML_Element_Access;
111   --  Getter of ActivityPartition::represents.
112   --
113   --  An element constraining behaviors invoked by nodes in the partition.
114
115   overriding procedure Set_Represents
116    (Self : not null access UML_Activity_Partition_Proxy;
117     To   : AMF.UML.Elements.UML_Element_Access);
118   --  Setter of ActivityPartition::represents.
119   --
120   --  An element constraining behaviors invoked by nodes in the partition.
121
122   overriding function Get_Subpartition
123    (Self : not null access constant UML_Activity_Partition_Proxy)
124       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
125   --  Getter of ActivityPartition::subpartition.
126   --
127   --  Partitions immediately contained in the partition.
128
129   overriding function Get_Super_Partition
130    (Self : not null access constant UML_Activity_Partition_Proxy)
131       return AMF.UML.Activity_Partitions.UML_Activity_Partition_Access;
132   --  Getter of ActivityPartition::superPartition.
133   --
134   --  Partition immediately containing the partition.
135
136   overriding procedure Set_Super_Partition
137    (Self : not null access UML_Activity_Partition_Proxy;
138     To   : AMF.UML.Activity_Partitions.UML_Activity_Partition_Access);
139   --  Setter of ActivityPartition::superPartition.
140   --
141   --  Partition immediately containing the partition.
142
143   overriding function Get_Contained_Edge
144    (Self : not null access constant UML_Activity_Partition_Proxy)
145       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
146   --  Getter of ActivityGroup::containedEdge.
147   --
148   --  Edges immediately contained in the group.
149
150   overriding function Get_Contained_Node
151    (Self : not null access constant UML_Activity_Partition_Proxy)
152       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
153   --  Getter of ActivityGroup::containedNode.
154   --
155   --  Nodes immediately contained in the group.
156
157   overriding function Get_In_Activity
158    (Self : not null access constant UML_Activity_Partition_Proxy)
159       return AMF.UML.Activities.UML_Activity_Access;
160   --  Getter of ActivityGroup::inActivity.
161   --
162   --  Activity containing the group.
163
164   overriding procedure Set_In_Activity
165    (Self : not null access UML_Activity_Partition_Proxy;
166     To   : AMF.UML.Activities.UML_Activity_Access);
167   --  Setter of ActivityGroup::inActivity.
168   --
169   --  Activity containing the group.
170
171   overriding function Get_Subgroup
172    (Self : not null access constant UML_Activity_Partition_Proxy)
173       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
174   --  Getter of ActivityGroup::subgroup.
175   --
176   --  Groups immediately contained in the group.
177
178   overriding function Get_Super_Group
179    (Self : not null access constant UML_Activity_Partition_Proxy)
180       return AMF.UML.Activity_Groups.UML_Activity_Group_Access;
181   --  Getter of ActivityGroup::superGroup.
182   --
183   --  Group immediately containing the group.
184
185   overriding function Get_Client_Dependency
186    (Self : not null access constant UML_Activity_Partition_Proxy)
187       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
188   --  Getter of NamedElement::clientDependency.
189   --
190   --  Indicates the dependencies that reference the client.
191
192   overriding function Get_Name_Expression
193    (Self : not null access constant UML_Activity_Partition_Proxy)
194       return AMF.UML.String_Expressions.UML_String_Expression_Access;
195   --  Getter of NamedElement::nameExpression.
196   --
197   --  The string expression used to define the name of this named element.
198
199   overriding procedure Set_Name_Expression
200    (Self : not null access UML_Activity_Partition_Proxy;
201     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
202   --  Setter of NamedElement::nameExpression.
203   --
204   --  The string expression used to define the name of this named element.
205
206   overriding function Get_Namespace
207    (Self : not null access constant UML_Activity_Partition_Proxy)
208       return AMF.UML.Namespaces.UML_Namespace_Access;
209   --  Getter of NamedElement::namespace.
210   --
211   --  Specifies the namespace that owns the NamedElement.
212
213   overriding function Get_Qualified_Name
214    (Self : not null access constant UML_Activity_Partition_Proxy)
215       return AMF.Optional_String;
216   --  Getter of NamedElement::qualifiedName.
217   --
218   --  A name which allows the NamedElement to be identified within a
219   --  hierarchy of nested Namespaces. It is constructed from the names of the
220   --  containing namespaces starting at the root of the hierarchy and ending
221   --  with the name of the NamedElement itself.
222
223   overriding function All_Owning_Packages
224    (Self : not null access constant UML_Activity_Partition_Proxy)
225       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
226   --  Operation NamedElement::allOwningPackages.
227   --
228   --  The query allOwningPackages() returns all the directly or indirectly
229   --  owning packages.
230
231   overriding function Is_Distinguishable_From
232    (Self : not null access constant UML_Activity_Partition_Proxy;
233     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
234     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
235       return Boolean;
236   --  Operation NamedElement::isDistinguishableFrom.
237   --
238   --  The query isDistinguishableFrom() determines whether two NamedElements
239   --  may logically co-exist within a Namespace. By default, two named
240   --  elements are distinguishable if (a) they have unrelated types or (b)
241   --  they have related types but different names.
242
243   overriding function Namespace
244    (Self : not null access constant UML_Activity_Partition_Proxy)
245       return AMF.UML.Namespaces.UML_Namespace_Access;
246   --  Operation NamedElement::namespace.
247   --
248   --  Missing derivation for NamedElement::/namespace : Namespace
249
250   overriding procedure Enter_Element
251    (Self    : not null access constant UML_Activity_Partition_Proxy;
252     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
253     Control : in out AMF.Visitors.Traverse_Control);
254   --  Dispatch call to corresponding subprogram of visitor interface.
255
256   overriding procedure Leave_Element
257    (Self    : not null access constant UML_Activity_Partition_Proxy;
258     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
259     Control : in out AMF.Visitors.Traverse_Control);
260   --  Dispatch call to corresponding subprogram of visitor interface.
261
262   overriding procedure Visit_Element
263    (Self     : not null access constant UML_Activity_Partition_Proxy;
264     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
265     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
266     Control  : in out AMF.Visitors.Traverse_Control);
267   --  Dispatch call to corresponding subprogram of iterator interface.
268
269end AMF.Internals.UML_Activity_Partitions;
270