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.Activities; 46with AMF.UML.Activity_Edges.Collections; 47with AMF.UML.Activity_Groups.Collections; 48with AMF.UML.Activity_Nodes.Collections; 49with AMF.UML.Activity_Partitions.Collections; 50with AMF.UML.Classifiers.Collections; 51with AMF.UML.Constraints.Collections; 52with AMF.UML.Create_Object_Actions; 53with AMF.UML.Dependencies.Collections; 54with AMF.UML.Exception_Handlers.Collections; 55with AMF.UML.Input_Pins.Collections; 56with AMF.UML.Interruptible_Activity_Regions.Collections; 57with AMF.UML.Named_Elements; 58with AMF.UML.Namespaces; 59with AMF.UML.Output_Pins.Collections; 60with AMF.UML.Packages.Collections; 61with AMF.UML.Redefinable_Elements.Collections; 62with AMF.UML.String_Expressions; 63with AMF.UML.Structured_Activity_Nodes; 64with AMF.Visitors; 65 66package AMF.Internals.UML_Create_Object_Actions is 67 68 type UML_Create_Object_Action_Proxy is 69 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 70 and AMF.UML.Create_Object_Actions.UML_Create_Object_Action with null record; 71 72 overriding function Get_Classifier 73 (Self : not null access constant UML_Create_Object_Action_Proxy) 74 return AMF.UML.Classifiers.UML_Classifier_Access; 75 -- Getter of CreateObjectAction::classifier. 76 -- 77 -- Classifier to be instantiated. 78 79 overriding procedure Set_Classifier 80 (Self : not null access UML_Create_Object_Action_Proxy; 81 To : AMF.UML.Classifiers.UML_Classifier_Access); 82 -- Setter of CreateObjectAction::classifier. 83 -- 84 -- Classifier to be instantiated. 85 86 overriding function Get_Result 87 (Self : not null access constant UML_Create_Object_Action_Proxy) 88 return AMF.UML.Output_Pins.UML_Output_Pin_Access; 89 -- Getter of CreateObjectAction::result. 90 -- 91 -- Gives the output pin on which the result is put. 92 93 overriding procedure Set_Result 94 (Self : not null access UML_Create_Object_Action_Proxy; 95 To : AMF.UML.Output_Pins.UML_Output_Pin_Access); 96 -- Setter of CreateObjectAction::result. 97 -- 98 -- Gives the output pin on which the result is put. 99 100 overriding function Get_Context 101 (Self : not null access constant UML_Create_Object_Action_Proxy) 102 return AMF.UML.Classifiers.UML_Classifier_Access; 103 -- Getter of Action::context. 104 -- 105 -- The classifier that owns the behavior of which this action is a part. 106 107 overriding function Get_Input 108 (Self : not null access constant UML_Create_Object_Action_Proxy) 109 return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin; 110 -- Getter of Action::input. 111 -- 112 -- The ordered set of input pins connected to the Action. These are among 113 -- the total set of inputs. 114 115 overriding function Get_Is_Locally_Reentrant 116 (Self : not null access constant UML_Create_Object_Action_Proxy) 117 return Boolean; 118 -- Getter of Action::isLocallyReentrant. 119 -- 120 -- If true, the action can begin a new, concurrent execution, even if 121 -- there is already another execution of the action ongoing. If false, the 122 -- action cannot begin a new execution until any previous execution has 123 -- completed. 124 125 overriding procedure Set_Is_Locally_Reentrant 126 (Self : not null access UML_Create_Object_Action_Proxy; 127 To : Boolean); 128 -- Setter of Action::isLocallyReentrant. 129 -- 130 -- If true, the action can begin a new, concurrent execution, even if 131 -- there is already another execution of the action ongoing. If false, the 132 -- action cannot begin a new execution until any previous execution has 133 -- completed. 134 135 overriding function Get_Local_Postcondition 136 (Self : not null access constant UML_Create_Object_Action_Proxy) 137 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 138 -- Getter of Action::localPostcondition. 139 -- 140 -- Constraint that must be satisfied when executed is completed. 141 142 overriding function Get_Local_Precondition 143 (Self : not null access constant UML_Create_Object_Action_Proxy) 144 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 145 -- Getter of Action::localPrecondition. 146 -- 147 -- Constraint that must be satisfied when execution is started. 148 149 overriding function Get_Output 150 (Self : not null access constant UML_Create_Object_Action_Proxy) 151 return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin; 152 -- Getter of Action::output. 153 -- 154 -- The ordered set of output pins connected to the Action. The action 155 -- places its results onto pins in this set. 156 157 overriding function Get_Handler 158 (Self : not null access constant UML_Create_Object_Action_Proxy) 159 return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler; 160 -- Getter of ExecutableNode::handler. 161 -- 162 -- A set of exception handlers that are examined if an uncaught exception 163 -- propagates to the outer level of the executable node. 164 165 overriding function Get_Activity 166 (Self : not null access constant UML_Create_Object_Action_Proxy) 167 return AMF.UML.Activities.UML_Activity_Access; 168 -- Getter of ActivityNode::activity. 169 -- 170 -- Activity containing the node. 171 172 overriding procedure Set_Activity 173 (Self : not null access UML_Create_Object_Action_Proxy; 174 To : AMF.UML.Activities.UML_Activity_Access); 175 -- Setter of ActivityNode::activity. 176 -- 177 -- Activity containing the node. 178 179 overriding function Get_In_Group 180 (Self : not null access constant UML_Create_Object_Action_Proxy) 181 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group; 182 -- Getter of ActivityNode::inGroup. 183 -- 184 -- Groups containing the node. 185 186 overriding function Get_In_Interruptible_Region 187 (Self : not null access constant UML_Create_Object_Action_Proxy) 188 return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region; 189 -- Getter of ActivityNode::inInterruptibleRegion. 190 -- 191 -- Interruptible regions containing the node. 192 193 overriding function Get_In_Partition 194 (Self : not null access constant UML_Create_Object_Action_Proxy) 195 return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition; 196 -- Getter of ActivityNode::inPartition. 197 -- 198 -- Partitions containing the node. 199 200 overriding function Get_In_Structured_Node 201 (Self : not null access constant UML_Create_Object_Action_Proxy) 202 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access; 203 -- Getter of ActivityNode::inStructuredNode. 204 -- 205 -- Structured activity node containing the node. 206 207 overriding procedure Set_In_Structured_Node 208 (Self : not null access UML_Create_Object_Action_Proxy; 209 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access); 210 -- Setter of ActivityNode::inStructuredNode. 211 -- 212 -- Structured activity node containing the node. 213 214 overriding function Get_Incoming 215 (Self : not null access constant UML_Create_Object_Action_Proxy) 216 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 217 -- Getter of ActivityNode::incoming. 218 -- 219 -- Edges that have the node as target. 220 221 overriding function Get_Outgoing 222 (Self : not null access constant UML_Create_Object_Action_Proxy) 223 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 224 -- Getter of ActivityNode::outgoing. 225 -- 226 -- Edges that have the node as source. 227 228 overriding function Get_Redefined_Node 229 (Self : not null access constant UML_Create_Object_Action_Proxy) 230 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node; 231 -- Getter of ActivityNode::redefinedNode. 232 -- 233 -- Inherited nodes replaced by this node in a specialization of the 234 -- activity. 235 236 overriding function Get_Is_Leaf 237 (Self : not null access constant UML_Create_Object_Action_Proxy) 238 return Boolean; 239 -- Getter of RedefinableElement::isLeaf. 240 -- 241 -- Indicates whether it is possible to further redefine a 242 -- RedefinableElement. If the value is true, then it is not possible to 243 -- further redefine the RedefinableElement. Note that this property is 244 -- preserved through package merge operations; that is, the capability to 245 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 246 -- the resulting RedefinableElement of a package merge operation where a 247 -- RedefinableElement with isLeaf=false is merged with a matching 248 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 249 -- will have isLeaf=false. Default value is false. 250 251 overriding procedure Set_Is_Leaf 252 (Self : not null access UML_Create_Object_Action_Proxy; 253 To : Boolean); 254 -- Setter of RedefinableElement::isLeaf. 255 -- 256 -- Indicates whether it is possible to further redefine a 257 -- RedefinableElement. If the value is true, then it is not possible to 258 -- further redefine the RedefinableElement. Note that this property is 259 -- preserved through package merge operations; that is, the capability to 260 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 261 -- the resulting RedefinableElement of a package merge operation where a 262 -- RedefinableElement with isLeaf=false is merged with a matching 263 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 264 -- will have isLeaf=false. Default value is false. 265 266 overriding function Get_Redefined_Element 267 (Self : not null access constant UML_Create_Object_Action_Proxy) 268 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element; 269 -- Getter of RedefinableElement::redefinedElement. 270 -- 271 -- The redefinable element that is being redefined by this element. 272 273 overriding function Get_Redefinition_Context 274 (Self : not null access constant UML_Create_Object_Action_Proxy) 275 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; 276 -- Getter of RedefinableElement::redefinitionContext. 277 -- 278 -- References the contexts that this element may be redefined from. 279 280 overriding function Get_Client_Dependency 281 (Self : not null access constant UML_Create_Object_Action_Proxy) 282 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 283 -- Getter of NamedElement::clientDependency. 284 -- 285 -- Indicates the dependencies that reference the client. 286 287 overriding function Get_Name_Expression 288 (Self : not null access constant UML_Create_Object_Action_Proxy) 289 return AMF.UML.String_Expressions.UML_String_Expression_Access; 290 -- Getter of NamedElement::nameExpression. 291 -- 292 -- The string expression used to define the name of this named element. 293 294 overriding procedure Set_Name_Expression 295 (Self : not null access UML_Create_Object_Action_Proxy; 296 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 297 -- Setter of NamedElement::nameExpression. 298 -- 299 -- The string expression used to define the name of this named element. 300 301 overriding function Get_Namespace 302 (Self : not null access constant UML_Create_Object_Action_Proxy) 303 return AMF.UML.Namespaces.UML_Namespace_Access; 304 -- Getter of NamedElement::namespace. 305 -- 306 -- Specifies the namespace that owns the NamedElement. 307 308 overriding function Get_Qualified_Name 309 (Self : not null access constant UML_Create_Object_Action_Proxy) 310 return AMF.Optional_String; 311 -- Getter of NamedElement::qualifiedName. 312 -- 313 -- A name which allows the NamedElement to be identified within a 314 -- hierarchy of nested Namespaces. It is constructed from the names of the 315 -- containing namespaces starting at the root of the hierarchy and ending 316 -- with the name of the NamedElement itself. 317 318 overriding function Context 319 (Self : not null access constant UML_Create_Object_Action_Proxy) 320 return AMF.UML.Classifiers.UML_Classifier_Access; 321 -- Operation Action::context. 322 -- 323 -- Missing derivation for Action::/context : Classifier 324 325 overriding function Is_Consistent_With 326 (Self : not null access constant UML_Create_Object_Action_Proxy; 327 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 328 return Boolean; 329 -- Operation RedefinableElement::isConsistentWith. 330 -- 331 -- The query isConsistentWith() specifies, for any two RedefinableElements 332 -- in a context in which redefinition is possible, whether redefinition 333 -- would be logically consistent. By default, this is false; this 334 -- operation must be overridden for subclasses of RedefinableElement to 335 -- define the consistency conditions. 336 337 overriding function Is_Redefinition_Context_Valid 338 (Self : not null access constant UML_Create_Object_Action_Proxy; 339 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 340 return Boolean; 341 -- Operation RedefinableElement::isRedefinitionContextValid. 342 -- 343 -- The query isRedefinitionContextValid() specifies whether the 344 -- redefinition contexts of this RedefinableElement are properly related 345 -- to the redefinition contexts of the specified RedefinableElement to 346 -- allow this element to redefine the other. By default at least one of 347 -- the redefinition contexts of this element must be a specialization of 348 -- at least one of the redefinition contexts of the specified element. 349 350 overriding function All_Owning_Packages 351 (Self : not null access constant UML_Create_Object_Action_Proxy) 352 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 353 -- Operation NamedElement::allOwningPackages. 354 -- 355 -- The query allOwningPackages() returns all the directly or indirectly 356 -- owning packages. 357 358 overriding function Is_Distinguishable_From 359 (Self : not null access constant UML_Create_Object_Action_Proxy; 360 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 361 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 362 return Boolean; 363 -- Operation NamedElement::isDistinguishableFrom. 364 -- 365 -- The query isDistinguishableFrom() determines whether two NamedElements 366 -- may logically co-exist within a Namespace. By default, two named 367 -- elements are distinguishable if (a) they have unrelated types or (b) 368 -- they have related types but different names. 369 370 overriding function Namespace 371 (Self : not null access constant UML_Create_Object_Action_Proxy) 372 return AMF.UML.Namespaces.UML_Namespace_Access; 373 -- Operation NamedElement::namespace. 374 -- 375 -- Missing derivation for NamedElement::/namespace : Namespace 376 377 overriding procedure Enter_Element 378 (Self : not null access constant UML_Create_Object_Action_Proxy; 379 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 380 Control : in out AMF.Visitors.Traverse_Control); 381 -- Dispatch call to corresponding subprogram of visitor interface. 382 383 overriding procedure Leave_Element 384 (Self : not null access constant UML_Create_Object_Action_Proxy; 385 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 386 Control : in out AMF.Visitors.Traverse_Control); 387 -- Dispatch call to corresponding subprogram of visitor interface. 388 389 overriding procedure Visit_Element 390 (Self : not null access constant UML_Create_Object_Action_Proxy; 391 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 392 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 393 Control : in out AMF.Visitors.Traverse_Control); 394 -- Dispatch call to corresponding subprogram of iterator interface. 395 396end AMF.Internals.UML_Create_Object_Actions; 397