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