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.Combined_Fragments; 46with AMF.UML.Dependencies.Collections; 47with AMF.UML.Gates.Collections; 48with AMF.UML.General_Orderings.Collections; 49with AMF.UML.Interaction_Operands.Collections; 50with AMF.UML.Interactions; 51with AMF.UML.Lifelines.Collections; 52with AMF.UML.Named_Elements; 53with AMF.UML.Namespaces; 54with AMF.UML.Packages.Collections; 55with AMF.UML.String_Expressions; 56with AMF.Visitors; 57 58package AMF.Internals.UML_Combined_Fragments is 59 60 type UML_Combined_Fragment_Proxy is 61 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 62 and AMF.UML.Combined_Fragments.UML_Combined_Fragment with null record; 63 64 overriding function Get_Cfragment_Gate 65 (Self : not null access constant UML_Combined_Fragment_Proxy) 66 return AMF.UML.Gates.Collections.Set_Of_UML_Gate; 67 -- Getter of CombinedFragment::cfragmentGate. 68 -- 69 -- Specifies the gates that form the interface between this 70 -- CombinedFragment and its surroundings 71 72 overriding function Get_Interaction_Operator 73 (Self : not null access constant UML_Combined_Fragment_Proxy) 74 return AMF.UML.UML_Interaction_Operator_Kind; 75 -- Getter of CombinedFragment::interactionOperator. 76 -- 77 -- Specifies the operation which defines the semantics of this combination 78 -- of InteractionFragments. 79 80 overriding procedure Set_Interaction_Operator 81 (Self : not null access UML_Combined_Fragment_Proxy; 82 To : AMF.UML.UML_Interaction_Operator_Kind); 83 -- Setter of CombinedFragment::interactionOperator. 84 -- 85 -- Specifies the operation which defines the semantics of this combination 86 -- of InteractionFragments. 87 88 overriding function Get_Operand 89 (Self : not null access constant UML_Combined_Fragment_Proxy) 90 return AMF.UML.Interaction_Operands.Collections.Ordered_Set_Of_UML_Interaction_Operand; 91 -- Getter of CombinedFragment::operand. 92 -- 93 -- The set of operands of the combined fragment. 94 95 overriding function Get_Covered 96 (Self : not null access constant UML_Combined_Fragment_Proxy) 97 return AMF.UML.Lifelines.Collections.Set_Of_UML_Lifeline; 98 -- Getter of InteractionFragment::covered. 99 -- 100 -- References the Lifelines that the InteractionFragment involves. 101 102 overriding function Get_Enclosing_Interaction 103 (Self : not null access constant UML_Combined_Fragment_Proxy) 104 return AMF.UML.Interactions.UML_Interaction_Access; 105 -- Getter of InteractionFragment::enclosingInteraction. 106 -- 107 -- The Interaction enclosing this InteractionFragment. 108 109 overriding procedure Set_Enclosing_Interaction 110 (Self : not null access UML_Combined_Fragment_Proxy; 111 To : AMF.UML.Interactions.UML_Interaction_Access); 112 -- Setter of InteractionFragment::enclosingInteraction. 113 -- 114 -- The Interaction enclosing this InteractionFragment. 115 116 overriding function Get_Enclosing_Operand 117 (Self : not null access constant UML_Combined_Fragment_Proxy) 118 return AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access; 119 -- Getter of InteractionFragment::enclosingOperand. 120 -- 121 -- The operand enclosing this InteractionFragment (they may nest 122 -- recursively) 123 124 overriding procedure Set_Enclosing_Operand 125 (Self : not null access UML_Combined_Fragment_Proxy; 126 To : AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access); 127 -- Setter of InteractionFragment::enclosingOperand. 128 -- 129 -- The operand enclosing this InteractionFragment (they may nest 130 -- recursively) 131 132 overriding function Get_General_Ordering 133 (Self : not null access constant UML_Combined_Fragment_Proxy) 134 return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering; 135 -- Getter of InteractionFragment::generalOrdering. 136 -- 137 -- The general ordering relationships contained in this fragment. 138 139 overriding function Get_Client_Dependency 140 (Self : not null access constant UML_Combined_Fragment_Proxy) 141 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 142 -- Getter of NamedElement::clientDependency. 143 -- 144 -- Indicates the dependencies that reference the client. 145 146 overriding function Get_Name_Expression 147 (Self : not null access constant UML_Combined_Fragment_Proxy) 148 return AMF.UML.String_Expressions.UML_String_Expression_Access; 149 -- Getter of NamedElement::nameExpression. 150 -- 151 -- The string expression used to define the name of this named element. 152 153 overriding procedure Set_Name_Expression 154 (Self : not null access UML_Combined_Fragment_Proxy; 155 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 156 -- Setter of NamedElement::nameExpression. 157 -- 158 -- The string expression used to define the name of this named element. 159 160 overriding function Get_Namespace 161 (Self : not null access constant UML_Combined_Fragment_Proxy) 162 return AMF.UML.Namespaces.UML_Namespace_Access; 163 -- Getter of NamedElement::namespace. 164 -- 165 -- Specifies the namespace that owns the NamedElement. 166 167 overriding function Get_Qualified_Name 168 (Self : not null access constant UML_Combined_Fragment_Proxy) 169 return AMF.Optional_String; 170 -- Getter of NamedElement::qualifiedName. 171 -- 172 -- A name which allows the NamedElement to be identified within a 173 -- hierarchy of nested Namespaces. It is constructed from the names of the 174 -- containing namespaces starting at the root of the hierarchy and ending 175 -- with the name of the NamedElement itself. 176 177 overriding function All_Owning_Packages 178 (Self : not null access constant UML_Combined_Fragment_Proxy) 179 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 180 -- Operation NamedElement::allOwningPackages. 181 -- 182 -- The query allOwningPackages() returns all the directly or indirectly 183 -- owning packages. 184 185 overriding function Is_Distinguishable_From 186 (Self : not null access constant UML_Combined_Fragment_Proxy; 187 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 188 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 189 return Boolean; 190 -- Operation NamedElement::isDistinguishableFrom. 191 -- 192 -- The query isDistinguishableFrom() determines whether two NamedElements 193 -- may logically co-exist within a Namespace. By default, two named 194 -- elements are distinguishable if (a) they have unrelated types or (b) 195 -- they have related types but different names. 196 197 overriding function Namespace 198 (Self : not null access constant UML_Combined_Fragment_Proxy) 199 return AMF.UML.Namespaces.UML_Namespace_Access; 200 -- Operation NamedElement::namespace. 201 -- 202 -- Missing derivation for NamedElement::/namespace : Namespace 203 204 overriding procedure Enter_Element 205 (Self : not null access constant UML_Combined_Fragment_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_Combined_Fragment_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_Combined_Fragment_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_Combined_Fragments; 224