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.Accept_Call_Actions;
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.Constraints.Collections;
53with AMF.UML.Dependencies.Collections;
54with AMF.UML.Exception_Handlers.Collections;
55with AMF.UML.Input_Pins.Collections;
56with AMF.UML.Interruptible_Activity_Regions.Collections;
57with AMF.UML.Named_Elements;
58with AMF.UML.Namespaces;
59with AMF.UML.Output_Pins.Collections;
60with AMF.UML.Packages.Collections;
61with AMF.UML.Redefinable_Elements.Collections;
62with AMF.UML.String_Expressions;
63with AMF.UML.Structured_Activity_Nodes;
64with AMF.UML.Triggers.Collections;
65with AMF.Visitors;
66
67package AMF.Internals.UML_Accept_Call_Actions is
68
69   type UML_Accept_Call_Action_Proxy is
70     limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
71       and AMF.UML.Accept_Call_Actions.UML_Accept_Call_Action with null record;
72
73   overriding function Get_Return_Information
74    (Self : not null access constant UML_Accept_Call_Action_Proxy)
75       return AMF.UML.Output_Pins.UML_Output_Pin_Access;
76   --  Getter of AcceptCallAction::returnInformation.
77   --
78   --  Pin where a value is placed containing sufficient information to
79   --  perform a subsequent reply and return control to the caller. The
80   --  contents of this value are opaque. It can be passed and copied but it
81   --  cannot be manipulated by the model.
82
83   overriding procedure Set_Return_Information
84    (Self : not null access UML_Accept_Call_Action_Proxy;
85     To   : AMF.UML.Output_Pins.UML_Output_Pin_Access);
86   --  Setter of AcceptCallAction::returnInformation.
87   --
88   --  Pin where a value is placed containing sufficient information to
89   --  perform a subsequent reply and return control to the caller. The
90   --  contents of this value are opaque. It can be passed and copied but it
91   --  cannot be manipulated by the model.
92
93   overriding function Get_Is_Unmarshall
94    (Self : not null access constant UML_Accept_Call_Action_Proxy)
95       return Boolean;
96   --  Getter of AcceptEventAction::isUnmarshall.
97   --
98   --  Indicates whether there is a single output pin for the event, or
99   --  multiple output pins for attributes of the event.
100
101   overriding procedure Set_Is_Unmarshall
102    (Self : not null access UML_Accept_Call_Action_Proxy;
103     To   : Boolean);
104   --  Setter of AcceptEventAction::isUnmarshall.
105   --
106   --  Indicates whether there is a single output pin for the event, or
107   --  multiple output pins for attributes of the event.
108
109   overriding function Get_Result
110    (Self : not null access constant UML_Accept_Call_Action_Proxy)
111       return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin;
112   --  Getter of AcceptEventAction::result.
113   --
114   --  Pins holding the received event objects or their attributes. Event
115   --  objects may be copied in transmission, so identity might not be
116   --  preserved.
117
118   overriding function Get_Trigger
119    (Self : not null access constant UML_Accept_Call_Action_Proxy)
120       return AMF.UML.Triggers.Collections.Set_Of_UML_Trigger;
121   --  Getter of AcceptEventAction::trigger.
122   --
123   --  The type of events accepted by the action, as specified by triggers.
124   --  For triggers with signal events, a signal of the specified type or any
125   --  subtype of the specified signal type is accepted.
126
127   overriding function Get_Context
128    (Self : not null access constant UML_Accept_Call_Action_Proxy)
129       return AMF.UML.Classifiers.UML_Classifier_Access;
130   --  Getter of Action::context.
131   --
132   --  The classifier that owns the behavior of which this action is a part.
133
134   overriding function Get_Input
135    (Self : not null access constant UML_Accept_Call_Action_Proxy)
136       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin;
137   --  Getter of Action::input.
138   --
139   --  The ordered set of input pins connected to the Action. These are among
140   --  the total set of inputs.
141
142   overriding function Get_Is_Locally_Reentrant
143    (Self : not null access constant UML_Accept_Call_Action_Proxy)
144       return Boolean;
145   --  Getter of Action::isLocallyReentrant.
146   --
147   --  If true, the action can begin a new, concurrent execution, even if
148   --  there is already another execution of the action ongoing. If false, the
149   --  action cannot begin a new execution until any previous execution has
150   --  completed.
151
152   overriding procedure Set_Is_Locally_Reentrant
153    (Self : not null access UML_Accept_Call_Action_Proxy;
154     To   : Boolean);
155   --  Setter of Action::isLocallyReentrant.
156   --
157   --  If true, the action can begin a new, concurrent execution, even if
158   --  there is already another execution of the action ongoing. If false, the
159   --  action cannot begin a new execution until any previous execution has
160   --  completed.
161
162   overriding function Get_Local_Postcondition
163    (Self : not null access constant UML_Accept_Call_Action_Proxy)
164       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
165   --  Getter of Action::localPostcondition.
166   --
167   --  Constraint that must be satisfied when executed is completed.
168
169   overriding function Get_Local_Precondition
170    (Self : not null access constant UML_Accept_Call_Action_Proxy)
171       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
172   --  Getter of Action::localPrecondition.
173   --
174   --  Constraint that must be satisfied when execution is started.
175
176   overriding function Get_Output
177    (Self : not null access constant UML_Accept_Call_Action_Proxy)
178       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin;
179   --  Getter of Action::output.
180   --
181   --  The ordered set of output pins connected to the Action. The action
182   --  places its results onto pins in this set.
183
184   overriding function Get_Handler
185    (Self : not null access constant UML_Accept_Call_Action_Proxy)
186       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler;
187   --  Getter of ExecutableNode::handler.
188   --
189   --  A set of exception handlers that are examined if an uncaught exception
190   --  propagates to the outer level of the executable node.
191
192   overriding function Get_Activity
193    (Self : not null access constant UML_Accept_Call_Action_Proxy)
194       return AMF.UML.Activities.UML_Activity_Access;
195   --  Getter of ActivityNode::activity.
196   --
197   --  Activity containing the node.
198
199   overriding procedure Set_Activity
200    (Self : not null access UML_Accept_Call_Action_Proxy;
201     To   : AMF.UML.Activities.UML_Activity_Access);
202   --  Setter of ActivityNode::activity.
203   --
204   --  Activity containing the node.
205
206   overriding function Get_In_Group
207    (Self : not null access constant UML_Accept_Call_Action_Proxy)
208       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group;
209   --  Getter of ActivityNode::inGroup.
210   --
211   --  Groups containing the node.
212
213   overriding function Get_In_Interruptible_Region
214    (Self : not null access constant UML_Accept_Call_Action_Proxy)
215       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region;
216   --  Getter of ActivityNode::inInterruptibleRegion.
217   --
218   --  Interruptible regions containing the node.
219
220   overriding function Get_In_Partition
221    (Self : not null access constant UML_Accept_Call_Action_Proxy)
222       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition;
223   --  Getter of ActivityNode::inPartition.
224   --
225   --  Partitions containing the node.
226
227   overriding function Get_In_Structured_Node
228    (Self : not null access constant UML_Accept_Call_Action_Proxy)
229       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
230   --  Getter of ActivityNode::inStructuredNode.
231   --
232   --  Structured activity node containing the node.
233
234   overriding procedure Set_In_Structured_Node
235    (Self : not null access UML_Accept_Call_Action_Proxy;
236     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access);
237   --  Setter of ActivityNode::inStructuredNode.
238   --
239   --  Structured activity node containing the node.
240
241   overriding function Get_Incoming
242    (Self : not null access constant UML_Accept_Call_Action_Proxy)
243       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
244   --  Getter of ActivityNode::incoming.
245   --
246   --  Edges that have the node as target.
247
248   overriding function Get_Outgoing
249    (Self : not null access constant UML_Accept_Call_Action_Proxy)
250       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge;
251   --  Getter of ActivityNode::outgoing.
252   --
253   --  Edges that have the node as source.
254
255   overriding function Get_Redefined_Node
256    (Self : not null access constant UML_Accept_Call_Action_Proxy)
257       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node;
258   --  Getter of ActivityNode::redefinedNode.
259   --
260   --  Inherited nodes replaced by this node in a specialization of the
261   --  activity.
262
263   overriding function Get_Is_Leaf
264    (Self : not null access constant UML_Accept_Call_Action_Proxy)
265       return Boolean;
266   --  Getter of RedefinableElement::isLeaf.
267   --
268   --  Indicates whether it is possible to further redefine a
269   --  RedefinableElement. If the value is true, then it is not possible to
270   --  further redefine the RedefinableElement. Note that this property is
271   --  preserved through package merge operations; that is, the capability to
272   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
273   --  the resulting RedefinableElement of a package merge operation where a
274   --  RedefinableElement with isLeaf=false is merged with a matching
275   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
276   --  will have isLeaf=false. Default value is false.
277
278   overriding procedure Set_Is_Leaf
279    (Self : not null access UML_Accept_Call_Action_Proxy;
280     To   : Boolean);
281   --  Setter of RedefinableElement::isLeaf.
282   --
283   --  Indicates whether it is possible to further redefine a
284   --  RedefinableElement. If the value is true, then it is not possible to
285   --  further redefine the RedefinableElement. Note that this property is
286   --  preserved through package merge operations; that is, the capability to
287   --  redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
288   --  the resulting RedefinableElement of a package merge operation where a
289   --  RedefinableElement with isLeaf=false is merged with a matching
290   --  RedefinableElement with isLeaf=true: the resulting RedefinableElement
291   --  will have isLeaf=false. Default value is false.
292
293   overriding function Get_Redefined_Element
294    (Self : not null access constant UML_Accept_Call_Action_Proxy)
295       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
296   --  Getter of RedefinableElement::redefinedElement.
297   --
298   --  The redefinable element that is being redefined by this element.
299
300   overriding function Get_Redefinition_Context
301    (Self : not null access constant UML_Accept_Call_Action_Proxy)
302       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
303   --  Getter of RedefinableElement::redefinitionContext.
304   --
305   --  References the contexts that this element may be redefined from.
306
307   overriding function Get_Client_Dependency
308    (Self : not null access constant UML_Accept_Call_Action_Proxy)
309       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
310   --  Getter of NamedElement::clientDependency.
311   --
312   --  Indicates the dependencies that reference the client.
313
314   overriding function Get_Name_Expression
315    (Self : not null access constant UML_Accept_Call_Action_Proxy)
316       return AMF.UML.String_Expressions.UML_String_Expression_Access;
317   --  Getter of NamedElement::nameExpression.
318   --
319   --  The string expression used to define the name of this named element.
320
321   overriding procedure Set_Name_Expression
322    (Self : not null access UML_Accept_Call_Action_Proxy;
323     To   : AMF.UML.String_Expressions.UML_String_Expression_Access);
324   --  Setter of NamedElement::nameExpression.
325   --
326   --  The string expression used to define the name of this named element.
327
328   overriding function Get_Namespace
329    (Self : not null access constant UML_Accept_Call_Action_Proxy)
330       return AMF.UML.Namespaces.UML_Namespace_Access;
331   --  Getter of NamedElement::namespace.
332   --
333   --  Specifies the namespace that owns the NamedElement.
334
335   overriding function Get_Qualified_Name
336    (Self : not null access constant UML_Accept_Call_Action_Proxy)
337       return AMF.Optional_String;
338   --  Getter of NamedElement::qualifiedName.
339   --
340   --  A name which allows the NamedElement to be identified within a
341   --  hierarchy of nested Namespaces. It is constructed from the names of the
342   --  containing namespaces starting at the root of the hierarchy and ending
343   --  with the name of the NamedElement itself.
344
345   overriding function Context
346    (Self : not null access constant UML_Accept_Call_Action_Proxy)
347       return AMF.UML.Classifiers.UML_Classifier_Access;
348   --  Operation Action::context.
349   --
350   --  Missing derivation for Action::/context : Classifier
351
352   overriding function Is_Consistent_With
353    (Self : not null access constant UML_Accept_Call_Action_Proxy;
354     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
355       return Boolean;
356   --  Operation RedefinableElement::isConsistentWith.
357   --
358   --  The query isConsistentWith() specifies, for any two RedefinableElements
359   --  in a context in which redefinition is possible, whether redefinition
360   --  would be logically consistent. By default, this is false; this
361   --  operation must be overridden for subclasses of RedefinableElement to
362   --  define the consistency conditions.
363
364   overriding function Is_Redefinition_Context_Valid
365    (Self : not null access constant UML_Accept_Call_Action_Proxy;
366     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
367       return Boolean;
368   --  Operation RedefinableElement::isRedefinitionContextValid.
369   --
370   --  The query isRedefinitionContextValid() specifies whether the
371   --  redefinition contexts of this RedefinableElement are properly related
372   --  to the redefinition contexts of the specified RedefinableElement to
373   --  allow this element to redefine the other. By default at least one of
374   --  the redefinition contexts of this element must be a specialization of
375   --  at least one of the redefinition contexts of the specified element.
376
377   overriding function All_Owning_Packages
378    (Self : not null access constant UML_Accept_Call_Action_Proxy)
379       return AMF.UML.Packages.Collections.Set_Of_UML_Package;
380   --  Operation NamedElement::allOwningPackages.
381   --
382   --  The query allOwningPackages() returns all the directly or indirectly
383   --  owning packages.
384
385   overriding function Is_Distinguishable_From
386    (Self : not null access constant UML_Accept_Call_Action_Proxy;
387     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
388     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
389       return Boolean;
390   --  Operation NamedElement::isDistinguishableFrom.
391   --
392   --  The query isDistinguishableFrom() determines whether two NamedElements
393   --  may logically co-exist within a Namespace. By default, two named
394   --  elements are distinguishable if (a) they have unrelated types or (b)
395   --  they have related types but different names.
396
397   overriding function Namespace
398    (Self : not null access constant UML_Accept_Call_Action_Proxy)
399       return AMF.UML.Namespaces.UML_Namespace_Access;
400   --  Operation NamedElement::namespace.
401   --
402   --  Missing derivation for NamedElement::/namespace : Namespace
403
404   overriding procedure Enter_Element
405    (Self    : not null access constant UML_Accept_Call_Action_Proxy;
406     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
407     Control : in out AMF.Visitors.Traverse_Control);
408   --  Dispatch call to corresponding subprogram of visitor interface.
409
410   overriding procedure Leave_Element
411    (Self    : not null access constant UML_Accept_Call_Action_Proxy;
412     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
413     Control : in out AMF.Visitors.Traverse_Control);
414   --  Dispatch call to corresponding subprogram of visitor interface.
415
416   overriding procedure Visit_Element
417    (Self     : not null access constant UML_Accept_Call_Action_Proxy;
418     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
419     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
420     Control  : in out AMF.Visitors.Traverse_Control);
421   --  Dispatch call to corresponding subprogram of iterator interface.
422
423end AMF.Internals.UML_Accept_Call_Actions;
424