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