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: 2864 $ $Date: 2012-04-13 14:08:07 +0400 (Fri, 13 Apr 2012) $
43------------------------------------------------------------------------------
44with AMF.Internals.UML_Elements;
45with AMF.UML.Elements.Collections;
46with AMF.UML.Protocol_Conformances;
47with AMF.UML.Protocol_State_Machines;
48with AMF.Visitors;
49
50package AMF.Internals.UML_Protocol_Conformances is
51
52   type UML_Protocol_Conformance_Proxy is
53     limited new AMF.Internals.UML_Elements.UML_Element_Proxy
54       and AMF.UML.Protocol_Conformances.UML_Protocol_Conformance with null record;
55
56   overriding function Get_General_Machine
57    (Self : not null access constant UML_Protocol_Conformance_Proxy)
58       return AMF.UML.Protocol_State_Machines.UML_Protocol_State_Machine_Access;
59   --  Getter of ProtocolConformance::generalMachine.
60   --
61   --  Specifies the protocol state machine to which the specific state
62   --  machine conforms.
63
64   overriding procedure Set_General_Machine
65    (Self : not null access UML_Protocol_Conformance_Proxy;
66     To   : AMF.UML.Protocol_State_Machines.UML_Protocol_State_Machine_Access);
67   --  Setter of ProtocolConformance::generalMachine.
68   --
69   --  Specifies the protocol state machine to which the specific state
70   --  machine conforms.
71
72   overriding function Get_Specific_Machine
73    (Self : not null access constant UML_Protocol_Conformance_Proxy)
74       return AMF.UML.Protocol_State_Machines.UML_Protocol_State_Machine_Access;
75   --  Getter of ProtocolConformance::specificMachine.
76   --
77   --  Specifies the state machine which conforms to the general state machine.
78
79   overriding procedure Set_Specific_Machine
80    (Self : not null access UML_Protocol_Conformance_Proxy;
81     To   : AMF.UML.Protocol_State_Machines.UML_Protocol_State_Machine_Access);
82   --  Setter of ProtocolConformance::specificMachine.
83   --
84   --  Specifies the state machine which conforms to the general state machine.
85
86   overriding function Get_Source
87    (Self : not null access constant UML_Protocol_Conformance_Proxy)
88       return AMF.UML.Elements.Collections.Set_Of_UML_Element;
89   --  Getter of DirectedRelationship::source.
90   --
91   --  Specifies the sources of the DirectedRelationship.
92
93   overriding function Get_Target
94    (Self : not null access constant UML_Protocol_Conformance_Proxy)
95       return AMF.UML.Elements.Collections.Set_Of_UML_Element;
96   --  Getter of DirectedRelationship::target.
97   --
98   --  Specifies the targets of the DirectedRelationship.
99
100   overriding function Get_Related_Element
101    (Self : not null access constant UML_Protocol_Conformance_Proxy)
102       return AMF.UML.Elements.Collections.Set_Of_UML_Element;
103   --  Getter of Relationship::relatedElement.
104   --
105   --  Specifies the elements related by the Relationship.
106
107   overriding procedure Enter_Element
108    (Self    : not null access constant UML_Protocol_Conformance_Proxy;
109     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
110     Control : in out AMF.Visitors.Traverse_Control);
111   --  Dispatch call to corresponding subprogram of visitor interface.
112
113   overriding procedure Leave_Element
114    (Self    : not null access constant UML_Protocol_Conformance_Proxy;
115     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
116     Control : in out AMF.Visitors.Traverse_Control);
117   --  Dispatch call to corresponding subprogram of visitor interface.
118
119   overriding procedure Visit_Element
120    (Self     : not null access constant UML_Protocol_Conformance_Proxy;
121     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
122     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
123     Control  : in out AMF.Visitors.Traverse_Control);
124   --  Dispatch call to corresponding subprogram of iterator interface.
125
126end AMF.Internals.UML_Protocol_Conformances;
127