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.Dependencies.Collections;
46with AMF.UML.General_Orderings.Collections;
47with AMF.UML.Interaction_Operands;
48with AMF.UML.Interactions;
49with AMF.UML.Lifelines.Collections;
50with AMF.UML.Named_Elements;
51with AMF.UML.Namespaces;
52with AMF.UML.Occurrence_Specifications;
53with AMF.UML.Packages.Collections;
54with AMF.UML.String_Expressions;
55with AMF.Visitors;
56
57package AMF.Internals.UML_Occurrence_Specifications is
58
59   type UML_Occurrence_Specification_Proxy is
60     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
61       and AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification with null record;
62
63   overriding function Get_Covered
64    (Self : not null access constant UML_Occurrence_Specification_Proxy)
65       return AMF.UML.Lifelines.UML_Lifeline_Access;
66   --  Getter of OccurrenceSpecification::covered.
67   --
68   --  References the Lifeline on which the OccurrenceSpecification appears.
69
70   overriding procedure Set_Covered
71    (Self : not null access UML_Occurrence_Specification_Proxy;
72     To   : AMF.UML.Lifelines.UML_Lifeline_Access);
73   --  Setter of OccurrenceSpecification::covered.
74   --
75   --  References the Lifeline on which the OccurrenceSpecification appears.
76
77   overriding function Get_To_After
78    (Self : not null access constant UML_Occurrence_Specification_Proxy)
79       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
80   --  Getter of OccurrenceSpecification::toAfter.
81   --
82   --  References the GeneralOrderings that specify EventOcurrences that must
83   --  occur after this OccurrenceSpecification
84
85   overriding function Get_To_Before
86    (Self : not null access constant UML_Occurrence_Specification_Proxy)
87       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
88   --  Getter of OccurrenceSpecification::toBefore.
89   --
90   --  References the GeneralOrderings that specify EventOcurrences that must
91   --  occur before this OccurrenceSpecification
92
93   overriding function Get_Covered
94    (Self : not null access constant UML_Occurrence_Specification_Proxy)
95       return AMF.UML.Lifelines.Collections.Set_Of_UML_Lifeline;
96   --  Getter of InteractionFragment::covered.
97   --
98   --  References the Lifelines that the InteractionFragment involves.
99
100   overriding function Get_Enclosing_Interaction
101    (Self : not null access constant UML_Occurrence_Specification_Proxy)
102       return AMF.UML.Interactions.UML_Interaction_Access;
103   --  Getter of InteractionFragment::enclosingInteraction.
104   --
105   --  The Interaction enclosing this InteractionFragment.
106
107   overriding procedure Set_Enclosing_Interaction
108    (Self : not null access UML_Occurrence_Specification_Proxy;
109     To   : AMF.UML.Interactions.UML_Interaction_Access);
110   --  Setter of InteractionFragment::enclosingInteraction.
111   --
112   --  The Interaction enclosing this InteractionFragment.
113
114   overriding function Get_Enclosing_Operand
115    (Self : not null access constant UML_Occurrence_Specification_Proxy)
116       return AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access;
117   --  Getter of InteractionFragment::enclosingOperand.
118   --
119   --  The operand enclosing this InteractionFragment (they may nest
120   --  recursively)
121
122   overriding procedure Set_Enclosing_Operand
123    (Self : not null access UML_Occurrence_Specification_Proxy;
124     To   : AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access);
125   --  Setter of InteractionFragment::enclosingOperand.
126   --
127   --  The operand enclosing this InteractionFragment (they may nest
128   --  recursively)
129
130   overriding function Get_General_Ordering
131    (Self : not null access constant UML_Occurrence_Specification_Proxy)
132       return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering;
133   --  Getter of InteractionFragment::generalOrdering.
134   --
135   --  The general ordering relationships contained in this fragment.
136
137   overriding function Get_Client_Dependency
138    (Self : not null access constant UML_Occurrence_Specification_Proxy)
139       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
140   --  Getter of NamedElement::clientDependency.
141   --
142   --  Indicates the dependencies that reference the client.
143
144   overriding function Get_Name_Expression
145    (Self : not null access constant UML_Occurrence_Specification_Proxy)
146       return AMF.UML.String_Expressions.UML_String_Expression_Access;
147   --  Getter of NamedElement::nameExpression.
148   --
149   --  The string expression used to define the name of this named element.
150
151   overriding procedure Set_Name_Expression
152    (Self : not null access UML_Occurrence_Specification_Proxy;
153     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
154   --  Setter of NamedElement::nameExpression.
155   --
156   --  The string expression used to define the name of this named element.
157
158   overriding function Get_Namespace
159    (Self : not null access constant UML_Occurrence_Specification_Proxy)
160       return AMF.UML.Namespaces.UML_Namespace_Access;
161   --  Getter of NamedElement::namespace.
162   --
163   --  Specifies the namespace that owns the NamedElement.
164
165   overriding function Get_Qualified_Name
166    (Self : not null access constant UML_Occurrence_Specification_Proxy)
167       return AMF.Optional_String;
168   --  Getter of NamedElement::qualifiedName.
169   --
170   --  A name which allows the NamedElement to be identified within a
171   --  hierarchy of nested Namespaces. It is constructed from the names of the
172   --  containing namespaces starting at the root of the hierarchy and ending
173   --  with the name of the NamedElement itself.
174
175   overriding function All_Owning_Packages
176    (Self : not null access constant UML_Occurrence_Specification_Proxy)
177       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
178   --  Operation NamedElement::allOwningPackages.
179   --
180   --  The query allOwningPackages() returns all the directly or indirectly
181   --  owning packages.
182
183   overriding function Is_Distinguishable_From
184    (Self : not null access constant UML_Occurrence_Specification_Proxy;
185     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
186     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
187       return Boolean;
188   --  Operation NamedElement::isDistinguishableFrom.
189   --
190   --  The query isDistinguishableFrom() determines whether two NamedElements
191   --  may logically co-exist within a Namespace. By default, two named
192   --  elements are distinguishable if (a) they have unrelated types or (b)
193   --  they have related types but different names.
194
195   overriding function Namespace
196    (Self : not null access constant UML_Occurrence_Specification_Proxy)
197       return AMF.UML.Namespaces.UML_Namespace_Access;
198   --  Operation NamedElement::namespace.
199   --
200   --  Missing derivation for NamedElement::/namespace : Namespace
201
202   overriding procedure Enter_Element
203    (Self    : not null access constant UML_Occurrence_Specification_Proxy;
204     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
205     Control : in out AMF.Visitors.Traverse_Control);
206   --  Dispatch call to corresponding subprogram of visitor interface.
207
208   overriding procedure Leave_Element
209    (Self    : not null access constant UML_Occurrence_Specification_Proxy;
210     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
211     Control : in out AMF.Visitors.Traverse_Control);
212   --  Dispatch call to corresponding subprogram of visitor interface.
213
214   overriding procedure Visit_Element
215    (Self     : not null access constant UML_Occurrence_Specification_Proxy;
216     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
217     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
218     Control  : in out AMF.Visitors.Traverse_Control);
219   --  Dispatch call to corresponding subprogram of iterator interface.
220
221end AMF.Internals.UML_Occurrence_Specifications;
222