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: 2714 $ $Date: 2012-03-24 10:29:08 +0400 (Sat, 24 Mar 2012) $
43------------------------------------------------------------------------------
44--  This file is generated, don't edit it.
45------------------------------------------------------------------------------
46--  A delegation connector is a connector that links the external contract of
47--  a component (as specified by its ports) to the realization of that
48--  behavior. It represents the forwarding of events (operation requests and
49--  events): a signal that arrives at a port that has a delegation connector
50--  to one or more parts or ports on parts will be passed on to those targets
51--  for handling. An assembly connector is a connector between two or more
52--  parts or ports on parts that defines that one or more parts provide the
53--  services that other parts use.
54--
55--  Specifies a link that enables communication between two or more instances.
56--  This link may be an instance of an association, or it may represent the
57--  possibility of the instances being able to communicate because their
58--  identities are known by virtue of being passed in as parameters, held in
59--  variables or slots, or because the communicating instances are the same
60--  instance. The link may be realized by something as simple as a pointer or
61--  by something as complex as a network connection. In contrast to
62--  associations, which specify links between any instance of the associated
63--  classifiers, connectors specify links between instances playing the
64--  connected parts only.
65------------------------------------------------------------------------------
66limited with AMF.UML.Associations;
67limited with AMF.UML.Behaviors.Collections;
68limited with AMF.UML.Connector_Ends.Collections;
69limited with AMF.UML.Connectors.Collections;
70with AMF.UML.Features;
71
72package AMF.UML.Connectors is
73
74   pragma Preelaborate;
75
76   type UML_Connector is limited interface
77     and AMF.UML.Features.UML_Feature;
78
79   type UML_Connector_Access is
80     access all UML_Connector'Class;
81   for UML_Connector_Access'Storage_Size use 0;
82
83   not overriding function Get_Contract
84    (Self : not null access constant UML_Connector)
85       return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior is abstract;
86   --  Getter of Connector::contract.
87   --
88   --  The set of Behaviors that specify the valid interaction patterns across
89   --  the connector.
90
91   not overriding function Get_End
92    (Self : not null access constant UML_Connector)
93       return AMF.UML.Connector_Ends.Collections.Ordered_Set_Of_UML_Connector_End is abstract;
94   --  Getter of Connector::end.
95   --
96   --  A connector consists of at least two connector ends, each representing
97   --  the participation of instances of the classifiers typing the
98   --  connectable elements attached to this end. The set of connector ends is
99   --  ordered.
100
101   not overriding function Get_Kind
102    (Self : not null access constant UML_Connector)
103       return AMF.UML.UML_Connector_Kind is abstract;
104   --  Getter of Connector::kind.
105   --
106   --  Indicates the kind of connector. This is derived: a connector with one
107   --  or more ends connected to a Port which is not on a Part and which is
108   --  not a behavior port is a delegation; otherwise it is an assembly.
109
110   not overriding function Get_Redefined_Connector
111    (Self : not null access constant UML_Connector)
112       return AMF.UML.Connectors.Collections.Set_Of_UML_Connector is abstract;
113   --  Getter of Connector::redefinedConnector.
114   --
115   --  A connector may be redefined when its containing classifier is
116   --  specialized. The redefining connector may have a type that specializes
117   --  the type of the redefined connector. The types of the connector ends of
118   --  the redefining connector may specialize the types of the connector ends
119   --  of the redefined connector. The properties of the connector ends of the
120   --  redefining connector may be replaced.
121
122   not overriding function Get_Type
123    (Self : not null access constant UML_Connector)
124       return AMF.UML.Associations.UML_Association_Access is abstract;
125   --  Getter of Connector::type.
126   --
127   --  An optional association that specifies the link corresponding to this
128   --  connector.
129
130   not overriding procedure Set_Type
131    (Self : not null access UML_Connector;
132     To   : AMF.UML.Associations.UML_Association_Access) is abstract;
133   --  Setter of Connector::type.
134   --
135   --  An optional association that specifies the link corresponding to this
136   --  connector.
137
138   not overriding function Kind
139    (Self : not null access constant UML_Connector)
140       return AMF.UML.UML_Connector_Kind is abstract;
141   --  Operation Connector::kind.
142   --
143   --  Missing derivation for Connector::/kind : ConnectorKind
144
145end AMF.UML.Connectors;
146