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.Connectable_Elements; 46with AMF.UML.Dependencies.Collections; 47with AMF.UML.Interaction_Fragments.Collections; 48with AMF.UML.Interactions; 49with AMF.UML.Lifelines; 50with AMF.UML.Named_Elements; 51with AMF.UML.Namespaces; 52with AMF.UML.Packages.Collections; 53with AMF.UML.Part_Decompositions; 54with AMF.UML.String_Expressions; 55with AMF.UML.Value_Specifications; 56with AMF.Visitors; 57 58package AMF.Internals.UML_Lifelines is 59 60 type UML_Lifeline_Proxy is 61 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 62 and AMF.UML.Lifelines.UML_Lifeline with null record; 63 64 overriding function Get_Covered_By 65 (Self : not null access constant UML_Lifeline_Proxy) 66 return AMF.UML.Interaction_Fragments.Collections.Set_Of_UML_Interaction_Fragment; 67 -- Getter of Lifeline::coveredBy. 68 -- 69 -- References the InteractionFragments in which this Lifeline takes part. 70 71 overriding function Get_Decomposed_As 72 (Self : not null access constant UML_Lifeline_Proxy) 73 return AMF.UML.Part_Decompositions.UML_Part_Decomposition_Access; 74 -- Getter of Lifeline::decomposedAs. 75 -- 76 -- References the Interaction that represents the decomposition. 77 78 overriding procedure Set_Decomposed_As 79 (Self : not null access UML_Lifeline_Proxy; 80 To : AMF.UML.Part_Decompositions.UML_Part_Decomposition_Access); 81 -- Setter of Lifeline::decomposedAs. 82 -- 83 -- References the Interaction that represents the decomposition. 84 85 overriding function Get_Interaction 86 (Self : not null access constant UML_Lifeline_Proxy) 87 return AMF.UML.Interactions.UML_Interaction_Access; 88 -- Getter of Lifeline::interaction. 89 -- 90 -- References the Interaction enclosing this Lifeline. 91 92 overriding procedure Set_Interaction 93 (Self : not null access UML_Lifeline_Proxy; 94 To : AMF.UML.Interactions.UML_Interaction_Access); 95 -- Setter of Lifeline::interaction. 96 -- 97 -- References the Interaction enclosing this Lifeline. 98 99 overriding function Get_Represents 100 (Self : not null access constant UML_Lifeline_Proxy) 101 return AMF.UML.Connectable_Elements.UML_Connectable_Element_Access; 102 -- Getter of Lifeline::represents. 103 -- 104 -- References the ConnectableElement within the classifier that contains 105 -- the enclosing interaction. 106 107 overriding procedure Set_Represents 108 (Self : not null access UML_Lifeline_Proxy; 109 To : AMF.UML.Connectable_Elements.UML_Connectable_Element_Access); 110 -- Setter of Lifeline::represents. 111 -- 112 -- References the ConnectableElement within the classifier that contains 113 -- the enclosing interaction. 114 115 overriding function Get_Selector 116 (Self : not null access constant UML_Lifeline_Proxy) 117 return AMF.UML.Value_Specifications.UML_Value_Specification_Access; 118 -- Getter of Lifeline::selector. 119 -- 120 -- If the referenced ConnectableElement is multivalued, then this 121 -- specifies the specific individual part within that set. 122 123 overriding procedure Set_Selector 124 (Self : not null access UML_Lifeline_Proxy; 125 To : AMF.UML.Value_Specifications.UML_Value_Specification_Access); 126 -- Setter of Lifeline::selector. 127 -- 128 -- If the referenced ConnectableElement is multivalued, then this 129 -- specifies the specific individual part within that set. 130 131 overriding function Get_Client_Dependency 132 (Self : not null access constant UML_Lifeline_Proxy) 133 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 134 -- Getter of NamedElement::clientDependency. 135 -- 136 -- Indicates the dependencies that reference the client. 137 138 overriding function Get_Name_Expression 139 (Self : not null access constant UML_Lifeline_Proxy) 140 return AMF.UML.String_Expressions.UML_String_Expression_Access; 141 -- Getter of NamedElement::nameExpression. 142 -- 143 -- The string expression used to define the name of this named element. 144 145 overriding procedure Set_Name_Expression 146 (Self : not null access UML_Lifeline_Proxy; 147 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 148 -- Setter of NamedElement::nameExpression. 149 -- 150 -- The string expression used to define the name of this named element. 151 152 overriding function Get_Namespace 153 (Self : not null access constant UML_Lifeline_Proxy) 154 return AMF.UML.Namespaces.UML_Namespace_Access; 155 -- Getter of NamedElement::namespace. 156 -- 157 -- Specifies the namespace that owns the NamedElement. 158 159 overriding function Get_Qualified_Name 160 (Self : not null access constant UML_Lifeline_Proxy) 161 return AMF.Optional_String; 162 -- Getter of NamedElement::qualifiedName. 163 -- 164 -- A name which allows the NamedElement to be identified within a 165 -- hierarchy of nested Namespaces. It is constructed from the names of the 166 -- containing namespaces starting at the root of the hierarchy and ending 167 -- with the name of the NamedElement itself. 168 169 overriding function All_Owning_Packages 170 (Self : not null access constant UML_Lifeline_Proxy) 171 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 172 -- Operation NamedElement::allOwningPackages. 173 -- 174 -- The query allOwningPackages() returns all the directly or indirectly 175 -- owning packages. 176 177 overriding function Is_Distinguishable_From 178 (Self : not null access constant UML_Lifeline_Proxy; 179 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 180 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 181 return Boolean; 182 -- Operation NamedElement::isDistinguishableFrom. 183 -- 184 -- The query isDistinguishableFrom() determines whether two NamedElements 185 -- may logically co-exist within a Namespace. By default, two named 186 -- elements are distinguishable if (a) they have unrelated types or (b) 187 -- they have related types but different names. 188 189 overriding function Namespace 190 (Self : not null access constant UML_Lifeline_Proxy) 191 return AMF.UML.Namespaces.UML_Namespace_Access; 192 -- Operation NamedElement::namespace. 193 -- 194 -- Missing derivation for NamedElement::/namespace : Namespace 195 196 overriding procedure Enter_Element 197 (Self : not null access constant UML_Lifeline_Proxy; 198 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 199 Control : in out AMF.Visitors.Traverse_Control); 200 -- Dispatch call to corresponding subprogram of visitor interface. 201 202 overriding procedure Leave_Element 203 (Self : not null access constant UML_Lifeline_Proxy; 204 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 205 Control : in out AMF.Visitors.Traverse_Control); 206 -- Dispatch call to corresponding subprogram of visitor interface. 207 208 overriding procedure Visit_Element 209 (Self : not null access constant UML_Lifeline_Proxy; 210 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 211 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 212 Control : in out AMF.Visitors.Traverse_Control); 213 -- Dispatch call to corresponding subprogram of iterator interface. 214 215end AMF.Internals.UML_Lifelines; 216