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_Packageable_Elements;
45with AMF.UML.Dependencies.Collections;
46with AMF.UML.Named_Elements;
47with AMF.UML.Namespaces;
48with AMF.UML.Packages.Collections;
49with AMF.UML.Parameterable_Elements;
50with AMF.UML.String_Expressions;
51with AMF.UML.Template_Parameters;
52with AMF.UML.Time_Events;
53with AMF.UML.Time_Expressions;
54with AMF.Visitors;
55
56package AMF.Internals.UML_Time_Events is
57
58   type UML_Time_Event_Proxy is
59     limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy
60       and AMF.UML.Time_Events.UML_Time_Event with null record;
61
62   overriding function Get_Is_Relative
63    (Self : not null access constant UML_Time_Event_Proxy)
64       return Boolean;
65   --  Getter of TimeEvent::isRelative.
66   --
67   --  Specifies whether it is relative or absolute time.
68
69   overriding procedure Set_Is_Relative
70    (Self : not null access UML_Time_Event_Proxy;
71     To   : Boolean);
72   --  Setter of TimeEvent::isRelative.
73   --
74   --  Specifies whether it is relative or absolute time.
75
76   overriding function Get_When
77    (Self : not null access constant UML_Time_Event_Proxy)
78       return AMF.UML.Time_Expressions.UML_Time_Expression_Access;
79   --  Getter of TimeEvent::when.
80   --
81   --  Specifies the corresponding time deadline.
82
83   overriding procedure Set_When
84    (Self : not null access UML_Time_Event_Proxy;
85     To   : AMF.UML.Time_Expressions.UML_Time_Expression_Access);
86   --  Setter of TimeEvent::when.
87   --
88   --  Specifies the corresponding time deadline.
89
90   overriding function Get_Client_Dependency
91    (Self : not null access constant UML_Time_Event_Proxy)
92       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
93   --  Getter of NamedElement::clientDependency.
94   --
95   --  Indicates the dependencies that reference the client.
96
97   overriding function Get_Name_Expression
98    (Self : not null access constant UML_Time_Event_Proxy)
99       return AMF.UML.String_Expressions.UML_String_Expression_Access;
100   --  Getter of NamedElement::nameExpression.
101   --
102   --  The string expression used to define the name of this named element.
103
104   overriding procedure Set_Name_Expression
105    (Self : not null access UML_Time_Event_Proxy;
106     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
107   --  Setter of NamedElement::nameExpression.
108   --
109   --  The string expression used to define the name of this named element.
110
111   overriding function Get_Namespace
112    (Self : not null access constant UML_Time_Event_Proxy)
113       return AMF.UML.Namespaces.UML_Namespace_Access;
114   --  Getter of NamedElement::namespace.
115   --
116   --  Specifies the namespace that owns the NamedElement.
117
118   overriding function Get_Qualified_Name
119    (Self : not null access constant UML_Time_Event_Proxy)
120       return AMF.Optional_String;
121   --  Getter of NamedElement::qualifiedName.
122   --
123   --  A name which allows the NamedElement to be identified within a
124   --  hierarchy of nested Namespaces. It is constructed from the names of the
125   --  containing namespaces starting at the root of the hierarchy and ending
126   --  with the name of the NamedElement itself.
127
128   overriding function Get_Owning_Template_Parameter
129    (Self : not null access constant UML_Time_Event_Proxy)
130       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
131   --  Getter of ParameterableElement::owningTemplateParameter.
132   --
133   --  The formal template parameter that owns this element.
134
135   overriding procedure Set_Owning_Template_Parameter
136    (Self : not null access UML_Time_Event_Proxy;
137     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
138   --  Setter of ParameterableElement::owningTemplateParameter.
139   --
140   --  The formal template parameter that owns this element.
141
142   overriding function Get_Template_Parameter
143    (Self : not null access constant UML_Time_Event_Proxy)
144       return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
145   --  Getter of ParameterableElement::templateParameter.
146   --
147   --  The template parameter that exposes this element as a formal parameter.
148
149   overriding procedure Set_Template_Parameter
150    (Self : not null access UML_Time_Event_Proxy;
151     To   : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
152   --  Setter of ParameterableElement::templateParameter.
153   --
154   --  The template parameter that exposes this element as a formal parameter.
155
156   overriding function All_Owning_Packages
157    (Self : not null access constant UML_Time_Event_Proxy)
158       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
159   --  Operation NamedElement::allOwningPackages.
160   --
161   --  The query allOwningPackages() returns all the directly or indirectly
162   --  owning packages.
163
164   overriding function Is_Distinguishable_From
165    (Self : not null access constant UML_Time_Event_Proxy;
166     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
167     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
168       return Boolean;
169   --  Operation NamedElement::isDistinguishableFrom.
170   --
171   --  The query isDistinguishableFrom() determines whether two NamedElements
172   --  may logically co-exist within a Namespace. By default, two named
173   --  elements are distinguishable if (a) they have unrelated types or (b)
174   --  they have related types but different names.
175
176   overriding function Namespace
177    (Self : not null access constant UML_Time_Event_Proxy)
178       return AMF.UML.Namespaces.UML_Namespace_Access;
179   --  Operation NamedElement::namespace.
180   --
181   --  Missing derivation for NamedElement::/namespace : Namespace
182
183   overriding function Is_Compatible_With
184    (Self : not null access constant UML_Time_Event_Proxy;
185     P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
186       return Boolean;
187   --  Operation ParameterableElement::isCompatibleWith.
188   --
189   --  The query isCompatibleWith() determines if this parameterable element
190   --  is compatible with the specified parameterable element. By default
191   --  parameterable element P is compatible with parameterable element Q if
192   --  the kind of P is the same or a subtype as the kind of Q. Subclasses
193   --  should override this operation to specify different compatibility
194   --  constraints.
195
196   overriding function Is_Template_Parameter
197    (Self : not null access constant UML_Time_Event_Proxy)
198       return Boolean;
199   --  Operation ParameterableElement::isTemplateParameter.
200   --
201   --  The query isTemplateParameter() determines if this parameterable
202   --  element is exposed as a formal template parameter.
203
204   overriding procedure Enter_Element
205    (Self    : not null access constant UML_Time_Event_Proxy;
206     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
207     Control : in out AMF.Visitors.Traverse_Control);
208   --  Dispatch call to corresponding subprogram of visitor interface.
209
210   overriding procedure Leave_Element
211    (Self    : not null access constant UML_Time_Event_Proxy;
212     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
213     Control : in out AMF.Visitors.Traverse_Control);
214   --  Dispatch call to corresponding subprogram of visitor interface.
215
216   overriding procedure Visit_Element
217    (Self     : not null access constant UML_Time_Event_Proxy;
218     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
219     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
220     Control  : in out AMF.Visitors.Traverse_Control);
221   --  Dispatch call to corresponding subprogram of iterator interface.
222
223end AMF.Internals.UML_Time_Events;
224