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