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.Dependencies.Collections;
50with AMF.UML.Interruptible_Activity_Regions;
51with AMF.UML.Named_Elements;
52with AMF.UML.Namespaces;
53with AMF.UML.Packages.Collections;
54with AMF.UML.String_Expressions;
55with AMF.Visitors;
56
57package AMF.Internals.UML_Interruptible_Activity_Regions is
58
59   type UML_Interruptible_Activity_Region_Proxy is
60     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
61       and AMF.UML.Interruptible_Activity_Regions.UML_Interruptible_Activity_Region with null record;
62
63   overriding function Get_Interrupting_Edge
64    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
65       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
66   --  Getter of InterruptibleActivityRegion::interruptingEdge.
67   --
68   --  The edges leaving the region that will abort other tokens flowing in
69   --  the region.
70
71   overriding function Get_Node
72    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
73       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
74   --  Getter of InterruptibleActivityRegion::node.
75   --
76   --  Nodes immediately contained in the group.
77
78   overriding function Get_Contained_Edge
79    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
80       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
81   --  Getter of ActivityGroup::containedEdge.
82   --
83   --  Edges immediately contained in the group.
84
85   overriding function Get_Contained_Node
86    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
87       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
88   --  Getter of ActivityGroup::containedNode.
89   --
90   --  Nodes immediately contained in the group.
91
92   overriding function Get_In_Activity
93    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
94       return AMF.UML.Activities.UML_Activity_Access;
95   --  Getter of ActivityGroup::inActivity.
96   --
97   --  Activity containing the group.
98
99   overriding procedure Set_In_Activity
100    (Self : not null access UML_Interruptible_Activity_Region_Proxy;
101     To   : AMF.UML.Activities.UML_Activity_Access);
102   --  Setter of ActivityGroup::inActivity.
103   --
104   --  Activity containing the group.
105
106   overriding function Get_Subgroup
107    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
108       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
109   --  Getter of ActivityGroup::subgroup.
110   --
111   --  Groups immediately contained in the group.
112
113   overriding function Get_Super_Group
114    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
115       return AMF.UML.Activity_Groups.UML_Activity_Group_Access;
116   --  Getter of ActivityGroup::superGroup.
117   --
118   --  Group immediately containing the group.
119
120   overriding function Get_Client_Dependency
121    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
122       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
123   --  Getter of NamedElement::clientDependency.
124   --
125   --  Indicates the dependencies that reference the client.
126
127   overriding function Get_Name_Expression
128    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
129       return AMF.UML.String_Expressions.UML_String_Expression_Access;
130   --  Getter of NamedElement::nameExpression.
131   --
132   --  The string expression used to define the name of this named element.
133
134   overriding procedure Set_Name_Expression
135    (Self : not null access UML_Interruptible_Activity_Region_Proxy;
136     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
137   --  Setter of NamedElement::nameExpression.
138   --
139   --  The string expression used to define the name of this named element.
140
141   overriding function Get_Namespace
142    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
143       return AMF.UML.Namespaces.UML_Namespace_Access;
144   --  Getter of NamedElement::namespace.
145   --
146   --  Specifies the namespace that owns the NamedElement.
147
148   overriding function Get_Qualified_Name
149    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
150       return AMF.Optional_String;
151   --  Getter of NamedElement::qualifiedName.
152   --
153   --  A name which allows the NamedElement to be identified within a
154   --  hierarchy of nested Namespaces. It is constructed from the names of the
155   --  containing namespaces starting at the root of the hierarchy and ending
156   --  with the name of the NamedElement itself.
157
158   overriding function All_Owning_Packages
159    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
160       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
161   --  Operation NamedElement::allOwningPackages.
162   --
163   --  The query allOwningPackages() returns all the directly or indirectly
164   --  owning packages.
165
166   overriding function Is_Distinguishable_From
167    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy;
168     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
169     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
170       return Boolean;
171   --  Operation NamedElement::isDistinguishableFrom.
172   --
173   --  The query isDistinguishableFrom() determines whether two NamedElements
174   --  may logically co-exist within a Namespace. By default, two named
175   --  elements are distinguishable if (a) they have unrelated types or (b)
176   --  they have related types but different names.
177
178   overriding function Namespace
179    (Self : not null access constant UML_Interruptible_Activity_Region_Proxy)
180       return AMF.UML.Namespaces.UML_Namespace_Access;
181   --  Operation NamedElement::namespace.
182   --
183   --  Missing derivation for NamedElement::/namespace : Namespace
184
185   overriding procedure Enter_Element
186    (Self    : not null access constant UML_Interruptible_Activity_Region_Proxy;
187     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
188     Control : in out AMF.Visitors.Traverse_Control);
189   --  Dispatch call to corresponding subprogram of visitor interface.
190
191   overriding procedure Leave_Element
192    (Self    : not null access constant UML_Interruptible_Activity_Region_Proxy;
193     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
194     Control : in out AMF.Visitors.Traverse_Control);
195   --  Dispatch call to corresponding subprogram of visitor interface.
196
197   overriding procedure Visit_Element
198    (Self     : not null access constant UML_Interruptible_Activity_Region_Proxy;
199     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
200     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
201     Control  : in out AMF.Visitors.Traverse_Control);
202   --  Dispatch call to corresponding subprogram of iterator interface.
203
204end AMF.Internals.UML_Interruptible_Activity_Regions;
205