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