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_Packageable_Elements; 45with AMF.UML.Dependencies.Collections; 46with AMF.UML.Deployed_Artifacts.Collections; 47with AMF.UML.Deployment_Specifications.Collections; 48with AMF.UML.Deployment_Targets; 49with AMF.UML.Deployments; 50with AMF.UML.Elements.Collections; 51with AMF.UML.Named_Elements.Collections; 52with AMF.UML.Namespaces; 53with AMF.UML.Packages.Collections; 54with AMF.UML.Parameterable_Elements; 55with AMF.UML.String_Expressions; 56with AMF.UML.Template_Parameters; 57with AMF.Visitors; 58 59package AMF.Internals.UML_Deployments is 60 61 type UML_Deployment_Proxy is 62 limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy 63 and AMF.UML.Deployments.UML_Deployment with null record; 64 65 overriding function Get_Configuration 66 (Self : not null access constant UML_Deployment_Proxy) 67 return AMF.UML.Deployment_Specifications.Collections.Set_Of_UML_Deployment_Specification; 68 -- Getter of Deployment::configuration. 69 -- 70 -- The specification of properties that parameterize the deployment and 71 -- execution of one or more Artifacts. 72 73 overriding function Get_Deployed_Artifact 74 (Self : not null access constant UML_Deployment_Proxy) 75 return AMF.UML.Deployed_Artifacts.Collections.Set_Of_UML_Deployed_Artifact; 76 -- Getter of Deployment::deployedArtifact. 77 -- 78 -- The Artifacts that are deployed onto a Node. This association 79 -- specializes the supplier association. 80 81 overriding function Get_Location 82 (Self : not null access constant UML_Deployment_Proxy) 83 return AMF.UML.Deployment_Targets.UML_Deployment_Target_Access; 84 -- Getter of Deployment::location. 85 -- 86 -- The DeployedTarget which is the target of a Deployment. 87 88 overriding procedure Set_Location 89 (Self : not null access UML_Deployment_Proxy; 90 To : AMF.UML.Deployment_Targets.UML_Deployment_Target_Access); 91 -- Setter of Deployment::location. 92 -- 93 -- The DeployedTarget which is the target of a Deployment. 94 95 overriding function Get_Client 96 (Self : not null access constant UML_Deployment_Proxy) 97 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; 98 -- Getter of Dependency::client. 99 -- 100 -- The element(s) dependent on the supplier element(s). In some cases 101 -- (such as a Trace Abstraction) the assignment of direction (that is, the 102 -- designation of the client element) is at the discretion of the modeler, 103 -- and is a stipulation. 104 105 overriding function Get_Supplier 106 (Self : not null access constant UML_Deployment_Proxy) 107 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; 108 -- Getter of Dependency::supplier. 109 -- 110 -- The element(s) independent of the client element(s), in the same 111 -- respect and the same dependency relationship. In some directed 112 -- dependency relationships (such as Refinement Abstractions), a common 113 -- convention in the domain of class-based OO software is to put the more 114 -- abstract element in this role. Despite this convention, users of UML 115 -- may stipulate a sense of dependency suitable for their domain, which 116 -- makes a more abstract element dependent on that which is more specific. 117 118 overriding function Get_Source 119 (Self : not null access constant UML_Deployment_Proxy) 120 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 121 -- Getter of DirectedRelationship::source. 122 -- 123 -- Specifies the sources of the DirectedRelationship. 124 125 overriding function Get_Target 126 (Self : not null access constant UML_Deployment_Proxy) 127 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 128 -- Getter of DirectedRelationship::target. 129 -- 130 -- Specifies the targets of the DirectedRelationship. 131 132 overriding function Get_Related_Element 133 (Self : not null access constant UML_Deployment_Proxy) 134 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 135 -- Getter of Relationship::relatedElement. 136 -- 137 -- Specifies the elements related by the Relationship. 138 139 overriding function Get_Client_Dependency 140 (Self : not null access constant UML_Deployment_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_Deployment_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_Deployment_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_Deployment_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_Deployment_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 Get_Owning_Template_Parameter 178 (Self : not null access constant UML_Deployment_Proxy) 179 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 180 -- Getter of ParameterableElement::owningTemplateParameter. 181 -- 182 -- The formal template parameter that owns this element. 183 184 overriding procedure Set_Owning_Template_Parameter 185 (Self : not null access UML_Deployment_Proxy; 186 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 187 -- Setter of ParameterableElement::owningTemplateParameter. 188 -- 189 -- The formal template parameter that owns this element. 190 191 overriding function Get_Template_Parameter 192 (Self : not null access constant UML_Deployment_Proxy) 193 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 194 -- Getter of ParameterableElement::templateParameter. 195 -- 196 -- The template parameter that exposes this element as a formal parameter. 197 198 overriding procedure Set_Template_Parameter 199 (Self : not null access UML_Deployment_Proxy; 200 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 201 -- Setter of ParameterableElement::templateParameter. 202 -- 203 -- The template parameter that exposes this element as a formal parameter. 204 205 overriding function All_Owning_Packages 206 (Self : not null access constant UML_Deployment_Proxy) 207 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 208 -- Operation NamedElement::allOwningPackages. 209 -- 210 -- The query allOwningPackages() returns all the directly or indirectly 211 -- owning packages. 212 213 overriding function Is_Distinguishable_From 214 (Self : not null access constant UML_Deployment_Proxy; 215 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 216 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 217 return Boolean; 218 -- Operation NamedElement::isDistinguishableFrom. 219 -- 220 -- The query isDistinguishableFrom() determines whether two NamedElements 221 -- may logically co-exist within a Namespace. By default, two named 222 -- elements are distinguishable if (a) they have unrelated types or (b) 223 -- they have related types but different names. 224 225 overriding function Namespace 226 (Self : not null access constant UML_Deployment_Proxy) 227 return AMF.UML.Namespaces.UML_Namespace_Access; 228 -- Operation NamedElement::namespace. 229 -- 230 -- Missing derivation for NamedElement::/namespace : Namespace 231 232 overriding function Is_Compatible_With 233 (Self : not null access constant UML_Deployment_Proxy; 234 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 235 return Boolean; 236 -- Operation ParameterableElement::isCompatibleWith. 237 -- 238 -- The query isCompatibleWith() determines if this parameterable element 239 -- is compatible with the specified parameterable element. By default 240 -- parameterable element P is compatible with parameterable element Q if 241 -- the kind of P is the same or a subtype as the kind of Q. Subclasses 242 -- should override this operation to specify different compatibility 243 -- constraints. 244 245 overriding function Is_Template_Parameter 246 (Self : not null access constant UML_Deployment_Proxy) 247 return Boolean; 248 -- Operation ParameterableElement::isTemplateParameter. 249 -- 250 -- The query isTemplateParameter() determines if this parameterable 251 -- element is exposed as a formal template parameter. 252 253 overriding procedure Enter_Element 254 (Self : not null access constant UML_Deployment_Proxy; 255 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 256 Control : in out AMF.Visitors.Traverse_Control); 257 -- Dispatch call to corresponding subprogram of visitor interface. 258 259 overriding procedure Leave_Element 260 (Self : not null access constant UML_Deployment_Proxy; 261 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 262 Control : in out AMF.Visitors.Traverse_Control); 263 -- Dispatch call to corresponding subprogram of visitor interface. 264 265 overriding procedure Visit_Element 266 (Self : not null access constant UML_Deployment_Proxy; 267 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 268 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 269 Control : in out AMF.Visitors.Traverse_Control); 270 -- Dispatch call to corresponding subprogram of iterator interface. 271 272end AMF.Internals.UML_Deployments; 273